Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems compiling Vdrif on Slackware
02-07-2013, 12:42 PM
Post: #1
Bug Problems compiling Vdrif on Slackware
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!
Find all posts by this user
Quote this message in a reply
02-07-2013, 02:48 PM
Post: #2
RE: Problems compiling Vdrif on Slackware
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.
Find all posts by this user
Quote this message in a reply
02-07-2013, 03:49 PM
Post: #3
RE: Problems compiling Vdrif on Slackware
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..
Find all posts by this user
Quote this message in a reply
02-07-2013, 03:59 PM (This post was last modified: 02-07-2013 04:06 PM by NaN.)
Post: #4
RE: Problems compiling Vdrif on Slackware
Oh, yeah the SDL2/1 compatibility issue.

You will need to apply: vdrift-2012-07-22c_patch.diff
In order to view links, you must have to reply to this thread.

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:
In order to view links, you must have to reply to this thread.
Find all posts by this user
Quote this message in a reply
02-07-2013, 05:18 PM
Post: #5
RE: Problems compiling Vdrif on Slackware
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::DisableShaders(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!
Find all posts by this user
Quote this message in a reply
02-07-2013, 06:07 PM (This post was last modified: 02-07-2013 06:07 PM by NaN.)
Post: #6
RE: Problems compiling Vdrif on Slackware
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 ?
Find all posts by this user
Quote this message in a reply
02-07-2013, 06:38 PM
Post: #7
RE: Problems compiling Vdrif on Slackware
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
Find all posts by this user
Quote this message in a reply
02-07-2013, 06:59 PM
Post: #8
RE: Problems compiling Vdrif on Slackware
Weird... can you try a few other cars tracks?
Find all posts by this user
Quote this message in a reply
02-07-2013, 07:57 PM
Post: #9
RE: Problems compiling Vdrif on Slackware
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
Find all posts by this user
Quote this message in a reply
02-07-2013, 08:13 PM (This post was last modified: 02-07-2013 08:16 PM by NaN.)
Post: #10
RE: Problems compiling Vdrif on Slackware
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?
Find all posts by this user
Quote this message in a reply
02-07-2013, 09:21 PM (This post was last modified: 02-07-2013 10:05 PM by skilltik.)
Post: #11
RE: Problems compiling Vdrif on Slackware
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:

In order to view links, you must have to reply to this thread.
In order to view links, you must have to reply to this thread. by In order to view links, you must have to reply to this thread., on Flickr

thanks NaN Big Grin
Find all posts by this user
Quote this message in a reply
02-08-2013, 04:34 AM
Post: #12
RE: Problems compiling Vdrif on Slackware
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)