Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux Installation issues 2009-02-15 source
05-28-2009, 05:20 AM,
#5
 
thanks for replies and thanks for pointing out the bug tracker XP

I have just confirmed that vdrift is installed in /usr/share/games/vdrift
Code:
/usr/share/games/vdrift$ ls
bin  data  vdrift

on further investigation of the paths issue, I have found that if I run from the /usr/share/games/vdrift/bin directory and type ./vdrift I can also type vdrift (which runs using the symlink that i created in /usr/bin), this works fine.

However if I then change directory to my home directory and type
vdrift
(which will cause it to run using the symlink just as before), the game gives me
Code:
ERROR: Shader file not found: data/shaders/simple/vertex.glsl
vdrift: src/shader.cpp:131: void SHADER_GLSL::LoadFileIntoString(const std::string&, std::string&, std::ostream&) const: Assertion `f' failed.
SIGABRT detected, releasing the mouse
the same issue occurs when i run it like exec /usr/share/games/vdrift/bin/vdrift

so the binary cannot find the files on my system if the current directory is not one of /usr/share/games/vdrift or /usr/share/games/vdrift/bin. I think from this, that it does not check /usr/share/games/vdrift for the data folder, maybe it checks for ../data and ./data? which is not necessarily the same thing (as in this case).

I have not set the VDRIFT_DATA_DIRECTORY environment variable and the installer has not set it.
Code:
cmaster@cmaster-desktop:~$ $VDRIFT_DATA_DIRECTORY
cmaster@cmaster-desktop:~$

When you say it checks for what the compiled prefix is does that mean it checks for the prefix that you used when you ran scons? Because I did not set any prefix there which would cause this to fail.

About the symlink thing, most programs will install there binary's to either of /usr/bin /usr/local/bin so it is not usually necessary to symlink the binary to one of these directory's.
Perhaps the best way to fix these issues would be:
1) Install the binary to one of /usr/bin or /usr/local/bin as default
(you could of course keep the current way of installing and symlink it, this should work fine as well)
2) Ensure the game checks /usr/share/games/vdrift whether it is the compile prefix or not
3) Explain in these pages:
http://wiki.vdrift.net/Installing_on_Linux
http://wiki.vdrift.net/Compiling
That if you installed vdrift data to a different directory than /usr/share/games/vdrift you may need to set the environment variable you mentioned.

thanks for your help Smile
Reply


Messages In This Thread
[No subject] - by charlieg - 05-27-2009, 06:48 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-27-2009, 10:36 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-27-2009, 10:38 PM
[No subject] - by nzadlithium - 05-28-2009, 05:20 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-28-2009, 10:04 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-28-2009, 10:08 AM
[No subject] - by nzadlithium - 05-29-2009, 12:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)