Forums

Full Version: Problem building
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am on Gentoo amd64. I have installed the dependencies and scons. Then I have checked out the development code from svn.

When I try to build it, I get a scons error.

Code:
jsantos@desktop ~/Apps $ cd vdrift/
jsantos@desktop ~/Apps/vdrift $ scons
scons: Reading SConscript files ...
NameError: name 'Entry' is not defined:
  File "SConstruct", line 262:
    target_factory = Entry,

I am not sure if I am doing something wrong, but it looks like a problem with the script if you go by the scons error report.
Interesting, I don't have this issue, but I'm not sure what that exact line of SConstruct does. What version of SCons are you using?
Code:
desktop vdrift # emerge -s scons
Searching...
[ Results for search key : scons ]
[ Applications found : 1 ]

*  dev-util/scons
      Latest version available: 0.96.1
      Latest version installed: 0.96.1
      Size of files: 276 kB
      Homepage:      http://www.scons.org
      Description:   Extensible python-based build utility
      License:       as-is
Could you try upgrading to 0.97? There's an ebuild for it in portage.
I upgraded to 0.97 (it is masked right now) and this fixed the problem.

While building I have found a number of dependencies that are not listed on the "build" instruccions:

sdl-net
ode
libvorbis
Ok, I got it to build.

Then when I run it, it complained about the data directory missing. I downloaded vdrift-2007-03-23-data-full.tar.bz2 and copied the data directory inside the vdrift directory.

It now complains about a skin:
Code:
jsantos@desktop ~/Apps/vdrift $ build/vdrift -verbose
BinReloc successfully initialized.
Executable path: /home/jsantos/Apps/vdrift/build/vdrift
Data dir: /home/jsantos/Apps/vdrift/data
Localedir: /home/jsantos/Apps/vdrift/share/locale
No data_dir found in VDrift.config, using /home/jsantos/Apps/vdrift/data
Found config file /home/jsantos/.vdrift/controls.
Found config file /home/jsantos/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /home/jsantos/Apps/vdrift/data
Version of game: development-full
Skin name not found in config file...
/home/jsantos/Apps/vdrift/share/locale
Directory /home/jsantos/Apps/vdrift/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
EXCEPTION: Error initilizing VDrift: Surface creation failed.

I guess there is a development version of the data that fixes this problem... how can I get it?
Our wiki on wiki.vdrift.net Wrote:Checking out the data

The data set is currently only available from the SourceForge SVN. Get it with "svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift vdrift-data" and link vdrift-data to the vdrift/data from svn.vdrift.net
[edit]

What I do is (in the dir where you have the source)
"svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift data"

No linkng required.

But be carefull: it downloads hundreds of MB
Actually, it downloads about 1.2G of data.
I have got the latest data from svn and linked it inside the vdrift directory as indicated, but still vdrift doesn't start.

Code:
jsantos@desktop ~/Apps/vdrift $ build/vdrift
BinReloc successfully initialized.
Executable path: /home/jsantos/Apps/vdrift/build/vdrift
Data dir: /home/jsantos/Apps/vdrift/data
Localedir: /home/jsantos/Apps/vdrift/share/locale
No data_dir found in VDrift.config, using /home/jsantos/Apps/vdrift/data
Found config file /home/jsantos/.vdrift/controls.
Found config file /home/jsantos/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /home/jsantos/Apps/vdrift/data
Version of game: development-full
Skin name not found in config file...
/home/jsantos/Apps/vdrift/share/locale
Directory /home/jsantos/Apps/vdrift/data/skins/.svn/menus does not exist! Skin .svn not loaded.
Directory /home/jsantos/Apps/vdrift/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
EXCEPTION: Error initilizing VDrift: Surface creation failed.

It claims that "Skin name not found in config file..." but looking at my .vdrift/VDrift.config file it sets the skin to "simple":

Code:
[ display ]
FOV = 45.000000
anisotropic = 0
antialiasing = 0
car_shadows = on
depth = 16
fullscreen = off
height = 600
input_graph = off
lighting = 0
mph = on
reflections = 0
show_fps = off
show_hud = on
skin = simple
texture_size = medium
trackmap = off
view_distance = 2500.000000
width = 800
If you've upgraded from a previous version of vdrift, try deleting (or moving) your VDrift.config file. It *should* get re-created with all of the correct settings, but if not let me know.
Joe's suggestion is a good idea but the skin name not found error is benign. Your problem with errors creating a surface are bigger than that. Can you report the version of SDL and SDL-image? Also have you been able to successfully run other OpenGL games without problems?
Oops, good catch thelusiv! That's definitely the problem.
Code:
*  media-libs/libsdl
      Latest version available: 1.2.11-r2
      Latest version installed: 1.2.11-r2
      Size of files: 2,730 kB
      Homepage:      http://www.libsdl.org/
      Description:   Simple Direct Media Layer
      License:       LGPL-2.1
Code:
*  media-libs/sdl-image
      Latest version available: 1.2.5-r1
      Latest version installed: 1.2.5-r1
      Size of files: 1,289 kB
      Homepage:      http://www.libsdl.org/projects/SDL_image/index.html
      Description:   image file loading library
      License:       LGPL-2.1

About 3d apps, I have got glgears working, enemy-territory, second life, etc... I have a nvidia card with the propietary drivers.
Could you try running vdrift with strace or gdb? A debug output might help us finding the problem.
What are the display width, display height, and display depth set at in your ~/.vdrift/VDrift.config file?
Pages: 1 2