Forums

Full Version: I can't compile vdrift on ubuntu 9.04
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello , i'm using ubuntu 9.04 64 bits.

I'm trying to do it , compile with arch=a64 options , but i receive this error , what can i do ?

thxs radge

Code:
user@pc:/tmp/vdrift-2009-02-15$ scons arch=a64 release=1
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/tmp/vdrift-2009-02-15/SConstruct", line 9, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/tmp/vdrift-2009-02-15/SConstruct", line 13, in <module>
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
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/ai.o -c -Wall -Wextra -Wno-unused-parameter -O1 -pipe -march=athlon64 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL src/ai.cpp
En el fichero incluído de include/track_object.h:6,
                 de include/track.h:17,
                 de src/ai.cpp:4:
include/collision_detection.h:13:37: error: btBulletCollisionCommon.h: No existe el fichero ó directorio
In file included from include/track_object.h:6,
                 from include/track.h:17,
                 from src/ai.cpp:4:
include/collision_detection.h:15: error: ‘btCollisionWorld’ no se ha declarado
include/collision_detection.h:15: error: expected `{' before ‘RayResultCallback’
include/collision_detection.h:15: error: la definición de la función no declara parámetros
include/collision_detection.h:72: error: ‘btCollisionObject’ no nombra a un tipo
include/collision_detection.h:73: error: ISO C++ prohíbe la declaración de ‘btBvhTriangleMeshShape’ sin tipo
include/collision_detection.h:73: error: expected ‘;’ before ‘*’ token
include/collision_detection.h:74: error: ISO C++ prohíbe la declaración de ‘btTriangleIndexVertexArray’ sin tipo
include/collision_detection.h:74: error: expected ‘;’ before ‘*’ token
include/collision_detection.h:87: error: ISO C++ prohíbe la declaración de ‘btCollisionObject’ sin tipo
include/collision_detection.h:87: error: expected ‘;’ before ‘&’ token
include/collision_detection.h:89: error: expected `;' before ‘void’
include/collision_detection.h: In constructor ‘COLLISION_OBJECT::COLLISION_OBJECT()’:
include/collision_detection.h:83: error: la clase ‘COLLISION_OBJECT’ no tiene ningún campo llamado ‘trimesh’
include/collision_detection.h:83: error: la clase ‘COLLISION_OBJECT’ no tiene ningún campo llamado ‘trimesh_varray’
include/collision_detection.h: At global scope:
include/collision_detection.h:158: error: ISO C++ prohíbe la declaración de ‘btCollisionWorld’ sin tipo
include/collision_detection.h:158: error: expected ‘;’ before ‘*’ token
include/collision_detection.h:159: error: ISO C++ prohíbe la declaración de ‘btDefaultCollisionConfiguration’ sin tipo
include/collision_detection.h:159: error: expected ‘;’ before ‘*’ token
include/collision_detection.h:160: error: ISO C++ prohíbe la declaración de ‘btCollisionDispatcher’ sin tipo
include/collision_detection.h:160: error: expected ‘;’ before ‘*’ token
include/collision_detection.h:162: error: ISO C++ prohíbe la declaración de ‘btSimpleBroadphase’ sin tipo
include/collision_detection.h:162: error: expected ‘;’ before ‘*’ token
include/collision_detection.h: In constructor ‘COLLISION_WORLD::COLLISION_WORLD()’:
include/collision_detection.h:171: error: la clase ‘COLLISION_WORLD’ no tiene ningún campo llamado ‘id’
include/collision_detection.h:171: error: la clase ‘COLLISION_WORLD’ no tiene ningún campo llamado ‘collisionconfig’
include/collision_detection.h:171: error: la clase ‘COLLISION_WORLD’ no tiene ningún campo llamado ‘collisiondispatcher’
include/collision_detection.h:171: error: la clase ‘COLLISION_WORLD’ no tiene ningún campo llamado ‘collisionbroadphase’
include/collision_detection.h: In member function ‘void COLLISION_WORLD::DebugPrint(std::ostream&)’:
include/collision_detection.h:182: error: ‘id’ no se declaró en este ámbito
include/collision_detection.h: In member function ‘void COLLISION_WORLD::DeletePhysicsObject(COLLISION_OBJECT*)’:
include/collision_detection.h:192: error: ‘id’ no se declaró en este ámbito
include/collision_detection.h: In member function ‘void COLLISION_WORLD::DeletePhysicsObject(COLLISION_OBJECT*, AABB<float>&)’:
include/collision_detection.h:201: error: ‘id’ no se declaró en este ámbito
include/collision_detection.h: In member function ‘void COLLISION_WORLD::Clear()’:
include/collision_detection.h:209: error: ‘id’ no se declaró en este ámbito
include/collision_detection.h:214: error: ‘btCollisionObject’ no se declaró en este ámbito
include/collision_detection.h:214: error: ‘colobj’ no se declaró en este ámbito
include/collision_detection.h:214: error: ‘class COLLISION_OBJECT’ no tiene un miembro llamado ‘GetBulletObject’
include/collision_detection.h: In member function ‘void COLLISION_WORLD::AddPhysicsObject(COLLISION_OBJECT&)’:
include/collision_detection.h:225: error: ‘id’ no se declaró en este ámbito
include/collision_detection.h:249: error: ‘btCollisionObject’ no se declaró en este ámbito
include/collision_detection.h:249: error: ‘colobj’ no se declaró en este ámbito
include/collision_detection.h:249: error: ‘class COLLISION_OBJECT’ no tiene un miembro llamado ‘GetBulletObject’
scons: *** [build/ai.o] Error 1
scons: building terminated because of errors.
What version of VDrift?

This is probably one that requires you to build Bullet yourself, you should read the directions on how to compile here: http://wiki.vdrift.net/Compiling
I'm using last version.

I was following all instructions but it's not working , i had installed all that wiki said.
Thxs a lot , i have installed but i received this message when I try to execute binary file

Code:
edgar@lucy:/usr/share/games/vdrift/bin$ ./vdrift
INFO: Multi-processor system detected.  Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Version: exportado, O/S: Unix-like
INFO: Home directory: /home/edgar
INFO: Settings file: /home/edgar/.vdrift/VDrift.config
INFO: Data directory: /usr/share/games/vdrift/data
INFO: Log file: /home/edgar/.vdrift/log.txt
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Disabling antialiasing
unknown chip id 0x9501, can't guess.
INFO: Display change was successful: 1024x768x16 24z fullscreen=0
ERROR: You don't have an NVIDIA or ATI/AMD card.  VDrift may not run correctly or at all.
INFO: Video card information:
      Vendor: Mesa Project
      Renderer: Software Rasterizer
      Version: 2.1 Mesa 7.4
      Maximum texture size: 2048
      Using GLEW 1.5.0
INFO: Loaded shader package simple
ERROR: Shader file not found: /usr/share/games/vdrift/data/shaders/less_simple/vertex.glsl
vdrift: src/shader.cpp:131: void SHADER_GLSL::LoadFileIntoString(const std::string&, std::string&, std::ostream&) const: Assertion `f' failed.
SIGABRT detected, releasing the mouse
Cancelado


thxs radge
What video card do you have? VDrift will not be able to run with software rendering (libmesa) which you have drivers installed for. If you have an nVidia or ATI card you will need to install the drivers for the card (through System -> Administration -> Hardware Drivers).

If you're compiling, you'll need to also install the -dev package that goes with your driver, these provide the headers needed for the GL library in the driver. After you do that re-run
Code:
scons
so that VDrift is linked against this library and not libmesa.

Also, it looks like you're running it a funny way, and it's having trouble finding its data. If you installed it system-wide (in /usr/share/games/vdrift) then you should run it as just
Code:
vdrift
. If you compiled it yourself, then it may be simpler to just do
Code:
cd ~/code/vdrift
build/vdrift
Where ~/code/vdrift is the place where you compiled VDrift, and the VDrift data is in ~/code/vdrift/data.
vdrifts scons script does not currently automatically copy two of the directories it needs to run (well it does copy parts of them, just not the whole lot :p).
You will need to copy:
data/shaders/ from the directory you extracted and data/textures/effects.

Some of the files will already exist, hit overwrite or ignore it doesn't matter, either way should get you all the data files you need Smile