Ok so I got a fresh copy of sfml2 from svn.
audio and system compile fine
however window and graphics do not.
for window
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-window$ ruby extconf.rb
checking for main() in -lsfml-window... no
checking for main.hpp in ../sfml-system/system... yes
creating Makefile
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-window$ make
g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../sfml-system/system -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c window/Window.cpp
window/Window.cpp: In function ‘VALUE Window_SetTitle(VALUE, VALUE)’:
window/Window.cpp:482: error: ‘class sf::Window’ has no member named ‘SetTitle’
make: *** [Window.o] Error 1
for graphics
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-graphics$ ruby extconf.rb
checking for main() in -lsfml-graphics... no
checking for main.hpp in ../sfml-system/system... yes
creating Makefile
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-graphics$ make
g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../sfml-system/system -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c graphics/Shape.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../sfml-system/system -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c graphics/View.cpp
graphics/View.cpp: In function ‘VALUE View_Initialize(int, VALUE*, VALUE)’:
graphics/View.cpp:74: error: ‘class sf::FloatRect’ has no member named ‘Width’
graphics/View.cpp:75: error: ‘class sf::FloatRect’ has no member named ‘Height’
graphics/View.cpp: In function ‘VALUE View_GetViewport(VALUE)’:
graphics/View.cpp:139: error: ‘const class sf::Rect<float>’ has no member named ‘Width’
graphics/View.cpp:139: error: ‘const class sf::Rect<float>’ has no member named ‘Height’
graphics/View.cpp: In function ‘VALUE View_Reset(VALUE, VALUE)’:
graphics/View.cpp:191: error: ‘class sf::FloatRect’ has no member named ‘Width’
graphics/View.cpp:192: error: ‘class sf::FloatRect’ has no member named ‘Height’
graphics/View.cpp: In function ‘VALUE View_SetViewport(VALUE, VALUE)’:
graphics/View.cpp:311: error: ‘class sf::FloatRect’ has no member named ‘Width’
graphics/View.cpp:312: error: ‘class sf::FloatRect’ has no member named ‘Height’
make: *** [View.o] Error 1
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-graphics$ clear
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-graphics$ ruby extconf.rb
checking for main() in -lsfml-graphics... no
checking for main.hpp in ../sfml-system/system... yes
creating Makefile
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-graphics$ make
g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../sfml-system/system -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c graphics/View.cpp
graphics/View.cpp: In function ‘VALUE View_Initialize(int, VALUE*, VALUE)’:
graphics/View.cpp:74: error: ‘class sf::FloatRect’ has no member named ‘Width’
graphics/View.cpp:75: error: ‘class sf::FloatRect’ has no member named ‘Height’
graphics/View.cpp: In function ‘VALUE View_GetViewport(VALUE)’:
graphics/View.cpp:139: error: ‘const class sf::Rect<float>’ has no member named ‘Width’
graphics/View.cpp:139: error: ‘const class sf::Rect<float>’ has no member named ‘Height’
graphics/View.cpp: In function ‘VALUE View_Reset(VALUE, VALUE)’:
graphics/View.cpp:191: error: ‘class sf::FloatRect’ has no member named ‘Width’
graphics/View.cpp:192: error: ‘class sf::FloatRect’ has no member named ‘Height’
graphics/View.cpp: In function ‘VALUE View_SetViewport(VALUE, VALUE)’:
graphics/View.cpp:311: error: ‘class sf::FloatRect’ has no member named ‘Width’
graphics/View.cpp:312: error: ‘class sf::FloatRect’ has no member named ‘Height’
make: *** [View.o] Error 1
brandon@ubuntu:~/Documents/src/sfml/bindings/ruby/sfml-graphics$
Could have something to do with the extconf output !!!
I am testing on the latest ubuntu (obviously) and ruby 1.8.7 from the repository.
Also I don't like how I have to go to four directories and type the same thing four times. A simple command that does all of that for you would be optimal.
When I was working on my own bindings created a Rakefile that handled all of the building / documentation / installing / clean up tasks. And I can adapt it for your code, however I don't know how everyone feels about rake though.
I'm too lazy to try and fix these errors right now (and its my bedtime and I have a class in < 5 hours).