scenegraph not compileing - TerraRoot - 07-05-2007
Code: 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 AL/al.h... (cached) yes
Checking for C++ header file AL/alc.h... (cached) yes
Checking for C++ header file AL/alut.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 src/vamos/body/Car.cc
In file included from include/objects.h:12,
from include/track.h:28,
from include/vamosworld.h:42,
from include/game.h:25,
from src/vamos/body/Car.cc:36:
include/physics.h:22:21: error: ode/ode.h: No such file or directory
include/physics.h:42: error: âdContactGeomâ has not been declared
include/physics.h:82: error: âdGeomIDâ does not name a type
include/physics.h:83: error: âdTriMeshDataIDâ does not name a type
include/physics.h:94: error: âdGeomIDâ does not name a type
include/physics.h: In constructor âPHYSICSOBJECT::PHYSICSOBJECT()â:
include/physics.h:88: error: class âPHYSICSOBJECTâ does not have any field named âidâ
include/physics.h:88: error: class âPHYSICSOBJECTâ does not have any field named âtrimeshidâ
include/physics.h: At global scope:
include/physics.h:129: error: âdWorldIDâ does not name a type
include/physics.h:130: error: âdSpaceIDâ does not name a type
include/physics.h:145: error: âdSpaceIDâ does not name a type
include/physics.h: In constructor âPHYSICS::PHYSICS()â:
include/physics.h:135: error: class âPHYSICSâ does not have any field named âidâ
include/physics.h:135: error: class âPHYSICSâ does not have any field named âspaceidâ
scons: *** [build/vamos/body/Car.o] Error 1
scons: building terminated because of errors.
Checked out the new scenegraph as soon as i heard the svn was back, but got this Am i missing something obvious?
- rookie1 - 07-05-2007
This is the error,
Code: include/physics.h:22:21: error: ode/ode.h: No such file or directory
You need to install ODE development library. It's used for collision detection now.
Maybe we need to add the ODE header file checking in scons script.
- TerraRoot - 07-05-2007
thanks, installed libode0c2 and libode0-dev, went swiminly till;
Code: 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 AL/al.h... (cached) yes
Checking for C++ header file AL/alc.h... (cached) yes
Checking for C++ header file AL/alut.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 src/vamos/body/Car.cc
g++ -o build/vamos/body/Clutch.o -c -Wall -g3 -Iinclude src/vamos/body/Clutch.cc
g++ -o build/vamos/body/Contact_Point.o -c -Wall -g3 -Iinclude src/vamos/body/Contact_Point.cc
g++ -o build/vamos/body/Differential.o -c -Wall -g3 -Iinclude src/vamos/body/Differential.cc
g++ -o build/vamos/body/Drivetrain.o -c -Wall -g3 -Iinclude src/vamos/body/Drivetrain.cc
g++ -o build/vamos/body/Engine.o -c -Wall -g3 -Iinclude src/vamos/body/Engine.cc
g++ -o build/vamos/body/Exerter.o -c -Wall -g3 -Iinclude src/vamos/body/Exerter.cc
g++ -o build/vamos/body/Frame.o -c -Wall -g3 -Iinclude src/vamos/body/Frame.cc
g++ -o build/vamos/body/Fuel_Tank.o -c -Wall -g3 -Iinclude src/vamos/body/Fuel_Tank.cc
g++ -o build/vamos/body/Gauge.o -c -Wall -g3 -Iinclude src/vamos/body/Gauge.cc
g++ -o build/vamos/body/Gl_Car.o -c -Wall -g3 -Iinclude src/vamos/body/Gl_Car.cc
g++ -o build/vamos/body/Particle.o -c -Wall -g3 -Iinclude src/vamos/body/Particle.cc
g++ -o build/vamos/body/Rigid_Body.o -c -Wall -g3 -Iinclude src/vamos/body/Rigid_Body.cc
g++ -o build/vamos/body/Suspension.o -c -Wall -g3 -Iinclude src/vamos/body/Suspension.cc
g++ -o build/vamos/body/Tire.o -c -Wall -g3 -Iinclude src/vamos/body/Tire.cc
g++ -o build/vamos/body/Transmission.o -c -Wall -g3 -Iinclude src/vamos/body/Transmission.cc
g++ -o build/vamos/body/Wheel.o -c -Wall -g3 -Iinclude src/vamos/body/Wheel.cc
g++ -o build/vamos/geometry/Gl_Texture_Image.o -c -Wall -g3 -Iinclude src/vamos/geometry/Gl_Texture_Image.cc
g++ -o build/vamos/geometry/Inertia_Tensor.o -c -Wall -g3 -Iinclude src/vamos/geometry/Inertia_Tensor.cc
g++ -o build/vamos/geometry/Linear_Interpolator.o -c -Wall -g3 -Iinclude src/vamos/geometry/Linear_Interpolator.cc
g++ -o build/vamos/geometry/Material.o -c -Wall -g3 -Iinclude src/vamos/geometry/Material.cc
g++ -o build/vamos/geometry/Sample.o -c -Wall -g3 -Iinclude src/vamos/geometry/Sample.cc
g++ -o build/vamos/geometry/Spline.o -c -Wall -g3 -Iinclude src/vamos/geometry/Spline.cc
g++ -o build/vamos/geometry/Texture_Image.o -c -Wall -g3 -Iinclude src/vamos/geometry/Texture_Image.cc
g++ -o build/vamos/geometry/Three_Matrix.o -c -Wall -g3 -Iinclude src/vamos/geometry/Three_Matrix.cc
g++ -o build/vamos/geometry/Three_Vector.o -c -Wall -g3 -Iinclude src/vamos/geometry/Three_Vector.cc
g++ -o build/vamos/geometry/Two_Point.o -c -Wall -g3 -Iinclude src/vamos/geometry/Two_Point.cc
g++ -o build/vamos/world/World.o -c -Wall -g3 -Iinclude src/vamos/world/World.cc
g++ -o build/gui/button.o -c -Wall -g3 -Iinclude src/gui/button.cpp
g++ -o build/gui/calibrate.o -c -Wall -g3 -Iinclude src/gui/calibrate.cpp
g++ -o build/gui/controlgrab.o -c -Wall -g3 -Iinclude src/gui/controlgrab.cpp
g++ -o build/gui/designer.o -c -Wall -g3 -Iinclude src/gui/designer.cpp
g++ -o build/gui/gui.o -c -Wall -g3 -Iinclude src/gui/gui.cpp
g++ -o build/gui/image.o -c -Wall -g3 -Iinclude src/gui/image.cpp
g++ -o build/gui/label.o -c -Wall -g3 -Iinclude src/gui/label.cpp
g++ -o build/gui/multi_image.o -c -Wall -g3 -Iinclude src/gui/multi_image.cpp
g++ -o build/gui/page.o -c -Wall -g3 -Iinclude src/gui/page.cpp
g++ -o build/gui/slider.o -c -Wall -g3 -Iinclude src/gui/slider.cpp
g++ -o build/gui/spinning_car.o -c -Wall -g3 -Iinclude src/gui/spinning_car.cpp
g++ -o build/gui/textbox.o -c -Wall -g3 -Iinclude src/gui/textbox.cpp
g++ -o build/gui/toggle.o -c -Wall -g3 -Iinclude src/gui/toggle.cpp
g++ -o build/main.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/main.cpp
g++ -o build/graphics.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/graphics.cpp
g++ -o build/game.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/game.cpp
g++ -o build/scenegraph.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/scenegraph.cpp
g++ -o build/camera.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/camera.cpp
g++ -o build/controls.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/controls.cc
g++ -o build/font.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/font.cpp
g++ -o build/forcefeedback.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/forcefeedback.cpp
g++ -o build/gamestate.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/gamestate.cpp
g++ -o build/keyman.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/keyman.cpp
g++ -o build/logging.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/logging.cpp
g++ -o build/logo.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/logo.cpp
g++ -o build/messageq.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/messageq.cpp
g++ -o build/model.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/model.cpp
g++ -o build/mouse.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/mouse.cpp
g++ -o build/multiplay.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/multiplay.cpp
g++ -o build/net.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/net.cpp
g++ -o build/objects.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/objects.cpp
g++ -o build/particles.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/particles.cpp
g++ -o build/3dmath.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/3dmath.cpp
g++ -o build/replay.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/replay.cpp
g++ -o build/settings.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/settings.cpp
g++ -o build/sound.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/sound.cpp
g++ -o build/textures.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/textures.cpp
g++ -o build/timer.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/timer.cpp
g++ -o build/utility.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/utility.cpp
g++ -o build/vamosworld.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/vamosworld.cc
g++ -o build/ai.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/ai.cpp
g++ -o build/configfile.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/configfile.cpp
g++ -o build/bezier.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/bezier.cpp
g++ -o build/joepack.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/joepack.cpp
g++ -o build/cardinfo.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/cardinfo.cpp
gcc -o build/binreloc.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/binreloc.c
g++ -o build/trackmap.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/trackmap.cpp
g++ -o build/bipointer.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/bipointer.cpp
g++ -o build/tester.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/tester.cpp
g++ -o build/vertexarray.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/vertexarray.cpp
g++ -o build/autox_track.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/autox_track.cpp
g++ -o build/physics.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -I/usr/include/SDL src/physics.cpp
src/physics.cpp: In member function âvoid PHYSICS::CollideBox(const VERTEX&, const QUATERNION&, const VERTEX&, std::list<PHYSICSCONTACT, std::allocator<PHYSICSCONTACT> >&, const PHYSICSCOLLISIONSETTINGS&) constâ:
src/physics.cpp:174: error: cannot convert âfloat*â to âconst dReal*â for argument â2â to âvoid dGeomSetQuaternion(dxGeom*, const dReal*)â
src/physics.cpp: In member function âvoid PHYSICSCONTACT::SetFromODEContactGeom(dContactGeom)â:
src/physics.cpp:200: error: no matching function for call to âVERTEX::Set(dReal [4])â
include/3dmath.h:43: note: candidates are: void VERTEX::Set(const VERTEX&)
include/3dmath.h:44: note: void VERTEX::Set(float, float, float)
include/3dmath.h:45: note: void VERTEX::Set(const float*)
src/physics.cpp:201: error: no matching function for call to âVERTEX::Set(dReal [4])â
include/3dmath.h:43: note: candidates are: void VERTEX::Set(const VERTEX&)
include/3dmath.h:44: note: void VERTEX::Set(float, float, float)
include/3dmath.h:45: note: void VERTEX::Set(const float*)
src/physics.cpp: In member function âvoid PHYSICSOBJECT::SetQuaternion(const QUATERNION&)â:
src/physics.cpp:261: error: cannot convert âfloat*â to âconst dReal*â for argument â2â to âvoid dGeomSetQuaternion(dxGeom*, const dReal*)â
scons: *** [build/physics.o] Error 1
scons: building terminated because of errors.
- rookie1 - 07-05-2007
If I'm not wrong, you need ODE v0.6 or above. You may need to compile your own if your distro's ODE package is too old.
- thelusiv - 07-06-2007
Yes, generally I recommend using ODE 0.8 from source. The reason to go with source is that the binary distributions are usually compiled with GIMPACT trimesh collision support, which is great but we haven't exactly perfected VDrift working with GIMPACT yet (it crashes... )...so for now, you need to compile ODE like this:
Code: ./configure --prefix=/usr --with-trimesh=opcode
make
sudo make install
Of course if you don't use sudo then become root before make install, and also make sure to change /usr to wherever you'd like it installed on your system (if you use ODE for other things, the default of /usr/local might be better - just make sure it's in your LD_LIBRARY_PATH so the compiler and VDrift can find it).
edit: ODE 0.8 source: http://downloads.sourceforge.net/opende/ode-src-0.8.zip
- TerraRoot - 07-07-2007
thanks, i installed 0.8 from source, no problem compiling, but ./vdrift
could not find libode.so.
then i saw your post lusiv, thank you i was gonna link libode.so but your ideas better
BUT!
Code: terraroot@Yuri:~/Rockstar/vdriftstn/scenegraph/build$ ./vdrift
BinReloc successfully initialized.
Executable path: /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/build/vdrift
Data dir: /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/data
Localedir: /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/share/locale
No data_dir found in VDrift.config, using /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/data
Found config file /home/terraroot/.vdrift/controls.
Found config file /home/terraroot/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/data
Version of game: 0.8.0
Skin name not found in config file...
/home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/share/locale
Directory /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/data/skins/.svn/menus does not exist! Skin .svn not loaded.
Directory /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
Card supports: drawbuf4 auxbuf4 multitexturing4 antialiasing anisotropy16 cubemapping shaders texture_rectangle depth_texture shadow
Card does not support:
Fragment shaders enabled
Loaded shader package simple
EXCEPTION: src/shader.cpp, line 174: Shader file not found: /home/terraroot/newt/terraroot/gtk-gnutella-downloads/complete/Rockstar/vdriftstn/scenegraph/data/shaders/simplerect/vertex.glsl
- joevenzon - 07-07-2007
You need to do an svn update in your data folder. You're almost there!
- thelusiv - 07-07-2007
You need to update your SF.net VDrift data repository checkout. The shader files and such are now in there. If you're using scons install and running VDrift system-wide, I'm not sure if the shaders all get properly installed yet or not. Try running build/vdrift from the VDrift code root and see if that works. I'll give the SConscript files a look soon to make sure everything gets installed.
- TerraRoot - 07-08-2007
Flying about the place now
whats up with the rear suspension?
|