Page 1 of 1

[SOLVED] Strange Error message after compiling from source

PostPosted: 27 Aug 2017, 21:54
by RastaTux
Hello Community!

I wanted to add some little things to the code of STK, so i tweaked some user_config things and compiled the code on my Ubuntu Gnome as it's described over here:
https://github.com/supertuxkart/stk-cod ... rom-source

Everything worked well and in the end i got a supertuxkart in my stk-code/cmake_build/bin folder.
But when i try to execute that, i get the following error message. I wonder why there is a problem with a .git-file- i changed the remote path to my own github to test some things there, maybe it has something to do with that?

{l Code}: {l Select All Code}
'/home/*****/Supertuxkart/stk-code/cmake_build/bin/supertuxkart'
[error  ] FileManager: Could not file 'supertuxkart.git'in any standard location (esp. ../data).
[error  ] FileManager: Last location checked '/usr/local/share/supertuxkart/data/'.
[fatal  ] FileManager: Set $SUPERTUXKART_DATADIR to point to the data directory.

Re: Strange Error message after compiling from source

PostPosted: 27 Aug 2017, 23:33
by Auria
Hi,

in folder "stk-code/data", there should be a file named "supertuxkart.git", is it there? Don't let the ".git" extension confuse you, it's just a text file

Re: Strange Error message after compiling from source

PostPosted: 27 Aug 2017, 23:35
by Auria
Ok one thing to add, I may have an idea. It says

Last location checked '/usr/local/share/supertuxkart/data/'.


so I think you may have a previous version of STK installed in /usr/local/share and it's taking this one and not the local folder. From which directory are you running STK? You could also set the $SUPERTUXKART_DATADIR env variable to force it to look into the /home/.../stk-code/data folder

Re: Strange Error message after compiling from source

PostPosted: 28 Aug 2017, 13:31
by RastaTux
Hello Auria, thank you for your help!

So no, there is no STK folder in usr/local/share... So i guess i should set the $SUPERTUXKART_DATADIR env variable, but where i have to do that? Sorry, im new to c++ programming... Is it an env variable of my system or somewhere in the stk-code?

Thanks in advance,
RastaTux

Re: Strange Error message after compiling from source

PostPosted: 29 Aug 2017, 00:08
by Auria
You set it on your terminal before launching STK

{l Code}: {l Select All Code}
export SUPERTUXKART_DATADIR=/.../../.../
./bin/supertuxkart

(this is only an example, replace with the real paths)

Re: Strange Error message after compiling from source

PostPosted: 29 Aug 2017, 09:48
by RastaTux
Thanks, that helped! :) Had to rebuild, though.
EDIT: Can i or someone else close this topic?

Re: Strange Error message after compiling from source

PostPosted: 29 Aug 2017, 11:58
by GunChleoc
You could edit the first post and add [solved] to the title.

Re: [SOLVED] Strange Error message after compiling from sour

PostPosted: 27 Oct 2017, 20:17
by AmyRollTheAnimator
Requesting lock, RastaTux has Solved the Problem.

Re: [SOLVED] Strange Error message after compiling from sour

PostPosted: 27 Oct 2017, 23:45
by XGhost
ok...