Forums

Full Version: Error 1 while trying to install VDrift
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone, semi-noob here. While trying to run the command "scons" to install Vdrift version 08-05-08, i get this:

Code:
frankie@frankie-desktop:~/Desktop/My shit/Games/vdrift-08-05-08$ 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 GL/glew.h... (cached) yes
Checking for C header file libintl.h... (cached) yes

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/frankie/Desktop/My shit/Games/vdrift-08-05-08/po/SConscript", line 167, in <module>
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/physics.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL src/physics.cpp
src/physics.cpp: In member function ‘void PHYSICS::CollideRay(const VERTEX&, const VERTEX&, float, std::list<PHYSICSCONTACT, std::allocator<PHYSICSCONTACT> >&, const PHYSICSCOLLISIONSETTINGS&)’:
src/physics.cpp:276: error: cannot declare variable ‘colresult’ to be of abstract type ‘MultipleRayResultCallback’
include/physics.h:32: note:   because the following virtual functions are pure within ‘MultipleRayResultCallback’:
bullet-2.73/src/BulletCollision/CollisionDispatch/btCollisionWorld.h:213: note: virtual btScalar btCollisionWorld::RayResultCallback::addSingleResult(btCollisionWorld::LocalRayResult&, bool)
scons: *** [build/physics.o] Error 1
scons: building terminated because of errors.

Just to let you know, ive installed bullet 2.73 and ive gone through the sconscript files and changed all references from 2.66 to 2.73, i dunno if that was a completely wrong thing to do?. ive also compiled Ode v0.9 i think, but i dont know if that installed properly. any help would be much appreciated. Thanks in advance.

frank =]
frankelastic Wrote:Hi everyone, semi-noob here. While trying to run the command "scons" to install Vdrift version 08-05-08, i get this:

Code:
frankie@frankie-desktop:~/Desktop/My shit/Games/vdrift-08-05-08$ 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 GL/glew.h... (cached) yes
Checking for C header file libintl.h... (cached) yes

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/frankie/Desktop/My shit/Games/vdrift-08-05-08/po/SConscript", line 167, in <module>
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/physics.o -c -Wall -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL src/physics.cpp
src/physics.cpp: In member function ‘void PHYSICS::CollideRay(const VERTEX&, const VERTEX&, float, std::list<PHYSICSCONTACT, std::allocator<PHYSICSCONTACT> >&, const PHYSICSCOLLISIONSETTINGS&)’:
src/physics.cpp:276: error: cannot declare variable ‘colresult’ to be of abstract type ‘MultipleRayResultCallback’
include/physics.h:32: note:   because the following virtual functions are pure within ‘MultipleRayResultCallback’:
bullet-2.73/src/BulletCollision/CollisionDispatch/btCollisionWorld.h:213: note: virtual btScalar btCollisionWorld::RayResultCallback::addSingleResult(btCollisionWorld::LocalRayResult&, bool)
scons: *** [build/physics.o] Error 1
scons: building terminated because of errors.

Just to let you know, ive installed bullet 2.73 and ive gone through the sconscript files and changed all references from 2.66 to 2.73, i dunno if that was a completely wrong thing to do?. ive also compiled Ode v0.9 i think, but i dont know if that installed properly. any help would be much appreciated. Thanks in advance.

frank =]

If you want to compile vdrift using bullet 2.73, please you must apply this patch file

http://www.freebsd.org/cgi/cvsweb.cgi/~c...xt%2Fplain

Greetings
ACM
hey ACMhUnTeR, thanks for the reply. Just to be sure which file do i include this in? Thanks again =]
It's in include/physics.h... you just need to replace AddSingleResult with addSingleResult. The newer version of bullet changed the capitalization for that function (for some reason).
ahhk, i thought so. Its amazing how much trouble a capital letter can cause. Thanks alot joevenzon and ACMhunter