I can't compile vdrift on ubuntu 9.04 - radge - 05-06-2009
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.
- thelusiv - 05-06-2009
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
- radge - 05-07-2009
I'm using last version.
I was following all instructions but it's not working , i had installed all that wiki said.
- radge - 05-07-2009
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
- thelusiv - 05-07-2009
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 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 . 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.
- nzadlithium - 05-28-2009
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
|