The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
[SOLVED] Data files path - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: [SOLVED] Data files path (/showthread.php?tid=1189) |
[SOLVED] Data files path - fer - 11-05-2009 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 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(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. - joevenzon - 11-06-2009 You can set the DATA_DIR at compile time with: Code: scons datadir=share/games/vdrift/data You can get a full list of the options with scons --help. - fer - 11-06-2009 Thank you for your reply. This what I did in the end: Code: scons -j 2 prefix=/usr datadir=share/games/vdrift/data release=1 arch=i686 localstatedir=/var sysconfdir=/etc || return 1 Maybe there is a more elegant solution, but this one works :wink: |