First try
Code:
bash-3.1$ scons
scons: Reading SConscript files ...
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
Checking for C++ header file SDL/SDL_image.h... (cached) yes
Checking for C++ header file SDL/SDL_net.h... (cached) yes
Checking for C++ header file SDL/SDL_rotozoom.h... (cached) yes
Checking for C++ header file vorbis/vorbisfile.h... (cached) yes
Checking for C header file libintl.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `build/vamos/body/Aerodynamic_Device.o' is up to date.
scons: `build/vamos/body/Brake.o' is up to date.
g++ -o build/vamos/body/Car.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/vamos/body/Car.cc
scons: `build/vamos/body/Clutch.o' is up to date.
scons: `build/vamos/body/Contact_Point.o' is up to date.
scons: `build/vamos/body/Differential.o' is up to date.
scons: `build/vamos/body/Drivetrain.o' is up to date.
scons: `build/vamos/body/Engine.o' is up to date.
scons: `build/vamos/body/Exerter.o' is up to date.
scons: `build/vamos/body/Frame.o' is up to date.
scons: `build/vamos/body/Fuel_Tank.o' is up to date.
scons: `build/vamos/body/Gauge.o' is up to date.
g++ -o build/vamos/body/Gl_Car.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/vamos/body/Gl_Car.cc
scons: `build/vamos/body/Particle.o' is up to date.
scons: `build/vamos/body/Rigid_Body.o' is up to date.
scons: `build/vamos/body/Suspension.o' is up to date.
scons: `build/vamos/body/Tire.o' is up to date.
scons: `build/vamos/body/Transmission.o' is up to date.
g++ -o build/vamos/body/Wheel.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/vamos/body/Wheel.cc
scons: `build/vamos/geometry/Gl_Texture_Image.o' is up to date.
scons: `build/vamos/geometry/Inertia_Tensor.o' is up to date.
scons: `build/vamos/geometry/Linear_Interpolator.o' is up to date.
scons: `build/vamos/geometry/Material.o' is up to date.
scons: `build/vamos/geometry/Sample.o' is up to date.
scons: `build/vamos/geometry/Spline.o' is up to date.
scons: `build/vamos/geometry/Texture_Image.o' is up to date.
scons: `build/vamos/geometry/Three_Matrix.o' is up to date.
scons: `build/vamos/geometry/Three_Vector.o' is up to date.
scons: `build/vamos/geometry/Two_Point.o' is up to date.
g++ -o build/vamos/world/World.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/vamos/world/World.cc
g++ -o build/gui/button.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/button.cpp
g++ -o build/gui/calibrate.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/calibrate.cpp
g++ -o build/gui/controlgrab.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/controlgrab.cpp
g++ -o build/gui/designer.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/designer.cpp
g++ -o build/gui/gui.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/gui.cpp
g++ -o build/gui/image.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/image.cpp
g++ -o build/gui/label.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/label.cpp
g++ -o build/gui/multi_image.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/multi_image.cpp
g++ -o build/gui/page.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/page.cpp
g++ -o build/gui/slider.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/slider.cpp
g++ -o build/gui/spinning_car.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/spinning_car.cpp
g++ -o build/gui/textbox.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/textbox.cpp
g++ -o build/gui/toggle.o -c -Wall -g3 -Iinclude -Ibullet-2.64/src src/gui/toggle.cpp
g++ -o build/main.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/main.cpp
g++ -o build/graphics.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/graphics.cpp
g++ -o build/game.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/game.cpp
include/unittest.h:58: warning: âclass quicktest::Testâ has virtual functions but non-virtual destructor
g++ -o build/camera.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/camera.cpp
g++ -o build/controls.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/controls.cpp
g++ -o build/font.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/font.cpp
g++ -o build/forcefeedback.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/forcefeedback.cpp
g++ -o build/gamestate.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/gamestate.cpp
g++ -o build/keyman.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/keyman.cpp
g++ -o build/logo.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/logo.cpp
g++ -o build/messageq.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/messageq.cpp
g++ -o build/model.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/model.cpp
g++ -o build/mouse.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/mouse.cpp
g++ -o build/multiplay.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/multiplay.cpp
g++ -o build/net.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/net.cpp
g++ -o build/objects.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/objects.cpp
g++ -o build/replay.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/replay.cpp
g++ -o build/settings.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/settings.cpp
g++ -o build/sound.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/sound.cpp
g++ -o build/textures.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/textures.cpp
g++ -o build/timer.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/timer.cpp
g++ -o build/utility.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/utility.cpp
g++ -o build/vamosworld.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/vamosworld.cpp
g++ -o build/ai.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/ai.cpp
g++ -o build/bezier.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/bezier.cpp
include/unittest.h:58: warning: âclass quicktest::Testâ has virtual functions but non-virtual destructor
src/bezier.cpp:1513: warning: âclass bezier_testTestâ has virtual functions but non-virtual destructor
g++ -o build/joepack.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/joepack.cpp
g++ -o build/cardinfo.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/cardinfo.cpp
gcc -o build/binreloc.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/binreloc.c
g++ -o build/trackmap.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/trackmap.cpp
g++ -o build/autox_track.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/autox_track.cpp
g++ -o build/physics.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/physics.cpp
g++ -o build/shader.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/shader.cpp
g++ -o build/serialization.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/serialization.cpp
include/unittest.h:58: warning: âclass quicktest::Testâ has virtual functions but non-virtual destructor
src/serialization.cpp:64: warning: âclass serialization_test_xmlTestâ has virtual functions but non-virtual destructor
src/serialization.cpp:137: warning: âclass serialization_test_xml_no_ptrsTestâ has virtual functions but non-virtual destructor
src/serialization.cpp:209: warning: âclass serialization_test_binTestâ has virtual functions but non-virtual destructor
src/serialization.cpp:286: warning: âclass serialization_test_bin_no_ptrsTestâ has virtual functions but non-virtual destructor
src/serialization.cpp:364: warning: âclass serialization_test_treeTestâ has virtual functions but non-virtual destructor
src/serialization.cpp:443: warning: âclass serialization_test_bin_compatibilityTestâ has virtual functions but non-virtual destructor
g++ -o build/track.o -c -Wall -g3 -D_REENTRANT -Iinclude -Ibullet-2.64/src -I/usr/include/SDL src/track.cpp
include/unittest.h:58: warning: âclass quicktest::Testâ has virtual functions but non-virtual destructor
src/track.cpp:1239: warning: âclass beziernode_testTestâ has virtual functions but non-virtual destructor
g++ -o build/vdrift build/main.o build/graphics.o build/game.o build/scenegraph.o build/camera.o build/controls.o build/font.o build/forcefeedback.o build/gamestate.o build/keyman.o build/logging.o build/logo.o build/messageq.o build/model.o build/mouse.o build/multiplay.o build/net.o build/objects.o build/particles.o build/3dmath.o build/replay.o build/settings.o build/sound.o build/textures.o build/timer.o build/utility.o build/vamosworld.o build/ai.o build/configfile.o build/bezier.o build/joepack.o build/cardinfo.o build/binreloc.o build/trackmap.o build/bipointer.o build/tester.o build/vertexarray.o build/autox_track.o build/physics.o build/shader.o build/serialization.o build/track.o build/vamos/body/Aerodynamic_Device.o build/vamos/body/Brake.o build/vamos/body/Car.o build/vamos/body/Clutch.o build/vamos/body/Contact_Point.o build/vamos/body/Differential.o build/vamos/body/Drivetrain.o build/vamos/body/Engine.o build/vamos/body/Exerter.o build/vamos/body/Frame.o build/vamos/body/Fuel_Tank.o build/vamos/body/Gauge.o build/vamos/body/Gl_Car.o build/vamos/body/Particle.o build/vamos/body/Rigid_Body.o build/vamos/body/Suspension.o build/vamos/body/Tire.o build/vamos/body/Transmission.o build/vamos/body/Wheel.o build/vamos/geometry/Gl_Texture_Image.o build/vamos/geometry/Inertia_Tensor.o build/vamos/geometry/Linear_Interpolator.o build/vamos/geometry/Material.o build/vamos/geometry/Sample.o build/vamos/geometry/Spline.o build/vamos/geometry/Texture_Image.o build/vamos/geometry/Three_Matrix.o build/vamos/geometry/Three_Vector.o build/vamos/geometry/Two_Point.o build/vamos/world/World.o build/gui/button.o build/gui/calibrate.o build/gui/controlgrab.o build/gui/designer.o build/gui/gui.o build/gui/image.o build/gui/label.o build/gui/multi_image.o build/gui/page.o build/gui/slider.o build/gui/spinning_car.o build/gui/textbox.o build/gui/toggle.o -Lbuild -Lsrc -Llib -L/usr/lib -L/usr/X11R6/lib -Lbullet-2.64/out/linuxx86/optimize/libs -Lbullet-2.64/out/linux/optimize/libs -lSDL -lpthread -lGL -lGLU -lGLEW -lSDL_image -lSDL_net -lSDL_gfx -lbulletcollision -lbulletmath -lvorbisfile
/usr/bin/ld: cannot find -lGLEW
collect2: ld returned 1 exit status
scons: *** [build/vdrift] Error 1
scons: building terminated because of errors.
I assume i was missing glew.. so i've got it from here
http://glew.sourceforge.net/ (i was unable to find an rpm) and installed it
Code:
bash-3.1$ make
cc -O2 -Wall -W -Iinclude -fPIC -o src/glew.pic_o -c src/glew.c
cc -shared -Wl,-soname=libGLEW.so.1.5 -o lib/libGLEW.so.1.5.0 src/glew.pic_o -L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lXext -lX11
ln -sf libGLEW.so.1.5.0 lib/libGLEW.so.1.5
ln -sf libGLEW.so.1.5.0 lib/libGLEW.so
cc -O2 -Wall -W -Iinclude -o src/glew.o -c src/glew.c
ar cr lib/libGLEW.a src/glew.o
cc -O2 -Wall -W -Iinclude -o bin/glewinfo src/glewinfo.c -Llib -Wl,-Bdynamic -lGLEW -L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lXext -lX11
cc -O2 -Wall -W -Iinclude -o bin/visualinfo src/visualinfo.c -Llib -Wl,-Bdynamic -lGLEW -L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lXext -lX11
bash-3.1$ su root
Parola d'ordine:
su: password sbagliata
bash-3.1$ su root
Parola d'ordine:
[root@localhost glew]# make install
install -d -m 0755 /usr/bin
install -d -m 0755 /usr/include/GL
install -d -m 0755 /usr/lib
strip -x lib/libGLEW.so.1.5.0
install -m 0644 lib/libGLEW.so.1.5.0 /usr/lib/
ln -sf libGLEW.so.1.5.0 /usr/lib/libGLEW.so.1.5
install -m 0644 include/GL/wglew.h /usr/include/GL/
install -m 0644 include/GL/glew.h /usr/include/GL/
install -m 0644 include/GL/glxew.h /usr/include/GL/
strip -x lib/libGLEW.a
install -m 0644 lib/libGLEW.a /usr/lib/
ln -sf libGLEW.so.1.5.0 /usr/lib/libGLEW.so
install -s -m 0755 bin/glewinfo bin/visualinfo /usr/bin/
[root@localhost glew]#
Second try:
Code:
bash-3.1$ scons
scons: Reading SConscript files ...
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
Checking for C++ header file SDL/SDL_image.h... (cached) yes
Checking for C++ header file SDL/SDL_net.h... (cached) yes
Checking for C++ header file SDL/SDL_rotozoom.h... (cached) yes
Checking for C++ header file vorbis/vorbisfile.h... (cached) yes
Checking for C header file libintl.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `build/vamos/body/Aerodynamic_Device.o' is up to date.
scons: `build/vamos/body/Brake.o' is up to date.
scons: `build/vamos/body/Car.o' is up to date.
scons: `build/vamos/body/Clutch.o' is up to date.
scons: `build/vamos/body/Contact_Point.o' is up to date.
scons: `build/vamos/body/Differential.o' is up to date.
scons: `build/vamos/body/Drivetrain.o' is up to date.
scons: `build/vamos/body/Engine.o' is up to date.
scons: `build/vamos/body/Exerter.o' is up to date.
scons: `build/vamos/body/Frame.o' is up to date.
scons: `build/vamos/body/Fuel_Tank.o' is up to date.
scons: `build/vamos/body/Gauge.o' is up to date.
scons: `build/vamos/body/Gl_Car.o' is up to date.
scons: `build/vamos/body/Particle.o' is up to date.
scons: `build/vamos/body/Rigid_Body.o' is up to date.
scons: `build/vamos/body/Suspension.o' is up to date.
scons: `build/vamos/body/Tire.o' is up to date.
scons: `build/vamos/body/Transmission.o' is up to date.
scons: `build/vamos/body/Wheel.o' is up to date.
scons: `build/vamos/geometry/Gl_Texture_Image.o' is up to date.
scons: `build/vamos/geometry/Inertia_Tensor.o' is up to date.
scons: `build/vamos/geometry/Linear_Interpolator.o' is up to date.
scons: `build/vamos/geometry/Material.o' is up to date.
scons: `build/vamos/geometry/Sample.o' is up to date.
scons: `build/vamos/geometry/Spline.o' is up to date.
scons: `build/vamos/geometry/Texture_Image.o' is up to date.
scons: `build/vamos/geometry/Three_Matrix.o' is up to date.
scons: `build/vamos/geometry/Three_Vector.o' is up to date.
scons: `build/vamos/geometry/Two_Point.o' is up to date.
scons: `build/vamos/world/World.o' is up to date.
scons: `build/gui/button.o' is up to date.
scons: `build/gui/calibrate.o' is up to date.
scons: `build/gui/controlgrab.o' is up to date.
scons: `build/gui/designer.o' is up to date.
scons: `build/gui/gui.o' is up to date.
scons: `build/gui/image.o' is up to date.
scons: `build/gui/label.o' is up to date.
scons: `build/gui/multi_image.o' is up to date.
scons: `build/gui/page.o' is up to date.
scons: `build/gui/slider.o' is up to date.
scons: `build/gui/spinning_car.o' is up to date.
scons: `build/gui/textbox.o' is up to date.
scons: `build/gui/toggle.o' is up to date.
g++ -o build/vdrift build/main.o build/graphics.o build/game.o build/scenegraph.o build/camera.o build/controls.o build/font.o build/forcefeedback.o build/gamestate.o build/keyman.o build/logging.o build/logo.o build/messageq.o build/model.o build/mouse.o build/multiplay.o build/net.o build/objects.o build/particles.o build/3dmath.o build/replay.o build/settings.o build/sound.o build/textures.o build/timer.o build/utility.o build/vamosworld.o build/ai.o build/configfile.o build/bezier.o build/joepack.o build/cardinfo.o build/binreloc.o build/trackmap.o build/bipointer.o build/tester.o build/vertexarray.o build/autox_track.o build/physics.o build/shader.o build/serialization.o build/track.o build/vamos/body/Aerodynamic_Device.o build/vamos/body/Brake.o build/vamos/body/Car.o build/vamos/body/Clutch.o build/vamos/body/Contact_Point.o build/vamos/body/Differential.o build/vamos/body/Drivetrain.o build/vamos/body/Engine.o build/vamos/body/Exerter.o build/vamos/body/Frame.o build/vamos/body/Fuel_Tank.o build/vamos/body/Gauge.o build/vamos/body/Gl_Car.o build/vamos/body/Particle.o build/vamos/body/Rigid_Body.o build/vamos/body/Suspension.o build/vamos/body/Tire.o build/vamos/body/Transmission.o build/vamos/body/Wheel.o build/vamos/geometry/Gl_Texture_Image.o build/vamos/geometry/Inertia_Tensor.o build/vamos/geometry/Linear_Interpolator.o build/vamos/geometry/Material.o build/vamos/geometry/Sample.o build/vamos/geometry/Spline.o build/vamos/geometry/Texture_Image.o build/vamos/geometry/Three_Matrix.o build/vamos/geometry/Three_Vector.o build/vamos/geometry/Two_Point.o build/vamos/world/World.o build/gui/button.o build/gui/calibrate.o build/gui/controlgrab.o build/gui/designer.o build/gui/gui.o build/gui/image.o build/gui/label.o build/gui/multi_image.o build/gui/page.o build/gui/slider.o build/gui/spinning_car.o build/gui/textbox.o build/gui/toggle.o -Lbuild -Lsrc -Llib -L/usr/lib -L/usr/X11R6/lib -Lbullet-2.64/out/linuxx86/optimize/libs -Lbullet-2.64/out/linux/optimize/libs -lSDL -lpthread -lGL -lGLU -lGLEW -lSDL_image -lSDL_net -lSDL_gfx -lbulletcollision -lbulletmath -lvorbisfile
build/shader.o: In function `SHADER::UploadActiveShaderParameter1f(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float)':src/shader.cpp:237: undefined reference to `glUniform1f'
build/shader.o: In function `SHADER::UploadActiveShaderParameter1i(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':src/shader.cpp:229: undefined reference to `glUniform1i'
build/shader.o: In function `SHADER::UploadMat16(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float*)':src/shader.cpp:221: undefined reference to `glUniformMatrix4fv'
build/shader.o: In function `SHADER::EndScene()':src/shader.cpp:135: undefined reference to `glUniform1f'
:src/shader.cpp:138: undefined reference to `glUniform1f'
:src/shader.cpp:141: undefined reference to `glUniform1f'
:src/shader.cpp:144: undefined reference to `glUniform1f'
:src/shader.cpp:147: undefined reference to `glUniform1f'
:src/shader.cpp:154: undefined reference to `glUniform3f'
:src/shader.cpp:168: undefined reference to `glUniform1f'
:src/shader.cpp:171: undefined reference to `glUniform1f'
:src/shader.cpp:174: undefined reference to `glUniform1f'
collect2: ld returned 1 exit status
scons: *** [build/vdrift] Error 1
scons: building terminated because of errors.
bash-3.1$
Seems it is still not working. :roll: