I have successfully compiled vdrift on Linux. I did a package too.
The source tarball was extracted on /usr/src/vdrift-20090615/pkg/
This is the code I used to compile and install vdrift for packaging purposes.
Code:
scons -j 2 release=1 arch=i686 prefix=/usr localstatedir=/var sysconfdir=/etc || return 1
scons install prefix=$startdir/pkg
$startdir=/usr/src/vdrift-20090615.
The package installs the data files on /share/games/vdrift/data as it should, but when I run vdrift it keeps searching the data files on:
Quote:INFO: Data directory: /usr/src/vdrift-20090615/pkg/share/games/vdrift/data
DATA_DIR: /usr/src/vdrift-20090615/pkg/share/games/vdrift/data
(that's where 'scons install' installed them as it was told).
So is this DATA_DIR hardcoded in the vdrift binary?
If not, is there any way I can tell vdrift to look for the data files on /share/games/vdrift/data instead of on /usr/src/vdrift-20090615/pkg/share/games/vdrift/data
PS. The game runs OK provided I copy the data files to /usr/src/vdrift-20090615/pkg/share/games/vdrift/data.