Forums

Full Version: Problems compiling Vdrif on Slackware
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi everyone!
first of all, sorry about my English, I'm writing from Argentina.

I'm trying to compile vdrift-2012-07-22 in Slackware linux, but I have one problem, this is my output :

bash-4.2# scons
scons: Reading SConscript files ...
Checking for C++ header file GL/gl.h... yes
Checking for C++ header file GL/glu.h... yes
Checking for C++ header file SDL/SDL.h... yes
Checking for C++ header file SDL/SDL_image.h... yes
Checking for C++ header file SDL/SDL_rotozoom.h... yes
Checking for C++ header file vorbis/vorbisfile.h... yes
Checking for C++ header file GL/glew.h... yes
Checking for C++ header file curl/curl.h... yes
Checking for C++ header file bullet/btBulletCollisionCommon.h... yes
Checking for C++ header file archive.h... yes
Checking for glDeleteSamplers(0, NULL) in C library GLEW... no
Your GLEW library is out of date.

I have installed Glew 1.9.0

some idea?
thx guys!
Hi skilltik,

check you glew 1.9.0 installation. Has the shared lib been installed properly?

usr/lib/libGLEW.so should symlink to usr/lib/libGLEW.so.1.9.0 or something like that.
thanks for ask!

I solved that, but now I have this output:

bash-4.2# scons
scons: Reading SConscript files ...
Checking for C++ header file GL/gl.h... yes
Checking for C++ header file GL/glu.h... yes
Checking for C++ header file SDL/SDL.h... yes
Checking for C++ header file SDL/SDL_image.h... yes
Checking for C++ header file SDL/SDL_rotozoom.h... yes
Checking for C++ header file vorbis/vorbisfile.h... yes
Checking for C++ header file GL/glew.h... yes
Checking for C++ header file curl/curl.h... yes
Checking for C++ header file bullet/btBulletCollisionCommon.h... yes
Checking for C++ header file archive.h... yes
Checking for glDeleteSamplers(0, NULL) in C library GLEW... yes
scons: done reading SConscript files.
scons: Building targets ...
CPP build/aabb.o
CPP build/aabb_space_partitioning.o
CPP build/ai/ai.o
CPP build/ai/ai_car_experimental.o
CPP build/ai/ai_car_standard.o
CPP build/archiveutils.o
CPP build/autoupdate.o
CPP build/bezier.o
CPP build/camera_chase.o
CPP build/camera_free.o
CPP build/camera_mount.o
CPP build/camera_orbit.o
CPP build/car.o
CPP build/carcontrolmap_local.o
src/carcontrolmap_local.cpp: In static member function 'static std::map<std::basic_string<char>, int> CARCONTROLMAP_LOCAL::InitKeycodeStringMap()':
src/carcontrolmap_local.cpp:833:20: error: 'SDLK_KP_0' was not declared in this scope
src/carcontrolmap_local.cpp:834:20: error: 'SDLK_KP_1' was not declared in this scope
src/carcontrolmap_local.cpp:835:20: error: 'SDLK_KP_2' was not declared in this scope
src/carcontrolmap_local.cpp:836:20: error: 'SDLK_KP_3' was not declared in this scope
src/carcontrolmap_local.cpp:837:20: error: 'SDLK_KP_4' was not declared in this scope
src/carcontrolmap_local.cpp:838:20: error: 'SDLK_KP_5' was not declared in this scope
src/carcontrolmap_local.cpp:839:20: error: 'SDLK_KP_6' was not declared in this scope
src/carcontrolmap_local.cpp:840:20: error: 'SDLK_KP_7' was not declared in this scope
src/carcontrolmap_local.cpp:841:20: error: 'SDLK_KP_8' was not declared in this scope
src/carcontrolmap_local.cpp:842:20: error: 'SDLK_KP_9' was not declared in this scope
src/carcontrolmap_local.cpp:875:28: error: 'SDLK_APPLICATION' was not declared in this scope
src/carcontrolmap_local.cpp:876:24: error: 'SDLK_NUMLOCKCLEAR' was not declared in this scope
src/carcontrolmap_local.cpp:878:27: error: 'SDLK_SCROLLLOCK' was not declared in this scope
src/carcontrolmap_local.cpp:885:22: error: 'SDLK_RGUI' was not declared in this scope
src/carcontrolmap_local.cpp:886:22: error: 'SDLK_LGUI' was not declared in this scope
scons: *** [build/carcontrolmap_local.o] Error 1
scons: building terminated because of errors.

I have no idea what the problem..
Oh, yeah the SDL2/1 compatibility issue.

You will need to apply: vdrift-2012-07-22c_patch.diff
http://sourceforge.net/projects/vdrift/f...012-07-22/

I should repack the source tarball eventually, or just do a new release.



Btw if you can afford the bandwidth/hdd space I recommend to build from source:
http://wiki.vdrift.net/index.php?title=G...nt_version
Done!! its compiled, but.. when I try to run the game, fails

bash-4.2$ ./vdrift
INFO: Starting VDrift: development-full, Revision: Unversioned directory, O/S: Unix
INFO: Home directory: /home/skilltik
INFO: Settings file: /home/skilltik/.vdrift/VDrift.config (does not exist, will be created)
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/skilltik/.vdrift/tmp
INFO: Log file: /home/skilltik/.vdrift/log.txt
ERROR: Failed to load /home/skilltik/.vdrift/VDrift.config
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x32 24z fullscreen=0
INFO: GL Renderer: Mesa DRI Intel® Sandybridge Mobile x86/MMX/SSE2
INFO: GL Vendor: Tungsten Graphics, Inc
INFO: GL Version: 2.1 Mesa 8.0.4
INFO: Initialized GLEW 1.5.7
ERROR: Graphics card or driver does not support required GL_VERSION_3_3
ERROR: Initialization of GL3 failed; that's OK, falling back to GL 1 or 2
ERROR: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.
INFO: Video card information:
Vendor: Tungsten Graphics, Inc
Renderer: Mesa DRI Intel® Sandybridge Mobile x86/MMX/SSE2
Version: 2.1 Mesa 8.0.4
Maximum texture size: 8192
Maximum varying floats: 64
INFO: Your video card doesn't support floating point textures. Disabling shaders.
ERROR: Unable to open graphics config file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
ERROR: Error loading non-shader render configuration file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
vdrift: src/graphics_fallback.cpp:645: void GRAPHICS_FALLBACK:Big GrinisableShaders(const string&, std::ostream&): Assertion `0' failed.
INFO: SIGABRT detected, releasing the mouse
Aborted


I guess I do not meet the hardware requirements, my bad xD

thanks for the help!
No wait, you are almost there. If you read the output closely, you will see that it is complaining about a missing config file. Check the data path. Was it installed where it should: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders ?
You right! Big Grin After execute "scons install" the game works.. BUT, closes when I try to play..

bash-4.2# vdrift
INFO: Starting VDrift: development-full, Revision: Unversioned directory, O/S: Unix
INFO: Home directory: /root
INFO: Settings file: /root/.vdrift/VDrift.config (does not exist, will be created)
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /root/.vdrift/tmp
INFO: Log file: /root/.vdrift/log.txt
ERROR: Failed to load /root/.vdrift/VDrift.config
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x32 24z fullscreen=0
INFO: GL Renderer: Mesa DRI Intel® Sandybridge Mobile x86/MMX/SSE2
INFO: GL Vendor: Tungsten Graphics, Inc
INFO: GL Version: 2.1 Mesa 8.0.4
INFO: Initialized GLEW 1.5.7
ERROR: Graphics card or driver does not support required GL_VERSION_3_3
ERROR: Initialization of GL3 failed; that's OK, falling back to GL 1 or 2
ERROR: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.
INFO: Video card information:
Vendor: Tungsten Graphics, Inc
Renderer: Mesa DRI Intel® Sandybridge Mobile x86/MMX/SSE2
Version: 2.1 Mesa 8.0.4
Maximum texture size: 8192
Maximum varying floats: 64
Using GLEW 1.5.7
INFO: Your video card doesn't support floating point textures. Disabling shaders.
INFO: Maximum anisotropy: 16
INFO: 0 joysticks found.
INFO: Loading car controls from: /root/.vdrift/controls.config
INFO: Failed to load car controls file /root/.vdrift/controls.config
INFO: Car control file /root/.vdrift/controls.config doesn't exist; using defaults
INFO: Update status file /root/.vdrift/updates.config will be created
INFO: Update status file /root/.vdrift/updates.config will be created
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 940
Size: 3760
Sound initialization successful
INFO: Loaded fonts successfully
INFO: Loaded GUI successfully
ERROR: force feedback: no suitable x-axis found [src/forcefeedback.cpp:217]
INFO: Loading track from path: /usr/local/share/games/vdrift/data/tracks/garage
INFO: Loaded surfaces file, 7 surfaces.
INFO: No lap sequence found. Lap timing will not be possible.
INFO: Car loading was successful: XS
INFO: Loading track from path: /usr/local/share/games/vdrift/data/tracks/paulricard88
INFO: Loaded surfaces file, 6 surfaces.
INFO: Track timing sectors: 2
INFO: Car loading was successful: XS
INFO: Textures: 193
Models: 1322
Sounds: 11
vdrift: src/cardynamics.cpp:1312: btVector3 CARDYNAMICS::ApplySuspensionForceToBody(int, btScalar, btVector3&, btVector3&): Assertion `!isnan ( force[n] )' failed.
INFO: SIGABRT detected, releasing the mouse
Aborted
Weird... can you try a few other cars tracks?
I try different cars and tracks but doesn't works Confused

bash-4.2$ vdrift
INFO: Starting VDrift: development-full, Revision: Unversioned directory, O/S: Unix
INFO: Home directory: /home/skilltik
INFO: Settings file: /home/skilltik/.vdrift/VDrift.config
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/skilltik/.vdrift/tmp
INFO: Log file: /home/skilltik/.vdrift/log.txt
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x32 24z fullscreen=0
INFO: GL Renderer: Mesa DRI Intel® Sandybridge Mobile x86/MMX/SSE2
INFO: GL Vendor: Tungsten Graphics, Inc
INFO: GL Version: 2.1 Mesa 8.0.4
INFO: Initialized GLEW 1.5.7
ERROR: Graphics card or driver does not support required GL_VERSION_3_3
ERROR: Initialization of GL3 failed; that's OK, falling back to GL 1 or 2
ERROR: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.
INFO: Video card information:
Vendor: Tungsten Graphics, Inc
Renderer: Mesa DRI Intel® Sandybridge Mobile x86/MMX/SSE2
Version: 2.1 Mesa 8.0.4
Maximum texture size: 8192
Maximum varying floats: 64
Using GLEW 1.5.7
INFO: Your video card doesn't support floating point textures. Disabling shaders.
INFO: Maximum anisotropy: 16
INFO: 0 joysticks found.
INFO: Loading car controls from: /home/skilltik/.vdrift/controls.config
INFO: Update status file /home/skilltik/.vdrift/updates.config will be created
INFO: Update status file /home/skilltik/.vdrift/updates.config will be created
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 940
Size: 3760
Sound initialization successful
INFO: Loaded fonts successfully
INFO: Loaded GUI successfully
ERROR: force feedback: can not open /dev/input/event0 (Permission denied) [src/forcefeedback.cpp:179]
INFO: Loading track from path: /usr/local/share/games/vdrift/data/tracks/garage
INFO: Loaded surfaces file, 7 surfaces.
INFO: No lap sequence found. Lap timing will not be possible.
INFO: Car loading was successful: XS
INFO: Car loading was successful: 350Z
INFO: Car loading was successful: 360
INFO: Loading track from path: /usr/local/share/games/vdrift/data/tracks/rouen
INFO: Loaded surfaces file, 7 surfaces.
INFO: Track timing sectors: 2
ERROR: MODEL_JOE03: Failed to open file trailer.joe in /usr/local/share/games/vdrift/data/tracks/rouen/objects/objects.jpk
ERROR: MODEL_JOE03: Failed to open file trailer.joe in /usr/local/share/games/vdrift/data/tracks/rouen/objects/objects.jpk
ERROR: MODEL_JOE03: Failed to open file trailer.joe in /usr/local/share/games/vdrift/data/tracks/rouen/objects/objects.jpk
ERROR: MODEL_JOE03: Failed to open file trailer.joe in /usr/local/share/games/vdrift/data/tracks/rouen/objects/objects.jpk
ERROR: Failed to load vehicles/trucks/trailer.joe from:, /home/skilltik/.vdrift/tracks/rouen/objects, /usr/local/share/games/vdrift/data/tracks/rouen/objects, /usr/local/share/games/vdrift/data/carparts, /usr/local/share/games/vdrift/data/trackparts
INFO: Car loading was successful: 360
INFO: Textures: 185
Models: 945
Sounds: 11
vdrift: src/cardynamics.cpp:1312: btVector3 CARDYNAMICS::ApplySuspensionForceToBody(int, btScalar, btVector3&, btVector3&): Assertion `!isnan ( force[n] )' failed.
INFO: SIGABRT detected, releasing the mouse
Aborted
As a last thing you could try a release build: scons release=1

I think the default is debug. Would be interesting to see what happens to the car.



Oh btw, what bullet version are you compiling against and what is your compiler version?
works worse, closes as soon as the game loads

I think I give up, thanks anyway!

Is working!! I updated the bullet version to 2.81 and works fine.

here a pic:

[Image: 8453938639_1003615e54.jpg]
vdrift by skilltik, on Flickr

thanks NaN Big Grin
The Intel Linux graphics driver, duh. There was a time, like one year ago, where it didn't have this graphical artifacts.

I'll see if I find some time to poke on this, still have got an older intel laptop for testing here.