[SOLVED] Strange Error message after compiling from source

[SOLVED] Strange Error message after compiling from source

Postby RastaTux » 27 Aug 2017, 21:54

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.
RastaTux
 
Posts: 3
Joined: 27 Aug 2017, 21:48

Re: Strange Error message after compiling from source

Postby Auria » 27 Aug 2017, 23:33

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Strange Error message after compiling from source

Postby Auria » 27 Aug 2017, 23:35

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Strange Error message after compiling from source

Postby RastaTux » 28 Aug 2017, 13:31

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
RastaTux
 
Posts: 3
Joined: 27 Aug 2017, 21:48

Re: Strange Error message after compiling from source

Postby Auria » 29 Aug 2017, 00:08

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)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Strange Error message after compiling from source

Postby RastaTux » 29 Aug 2017, 09:48

Thanks, that helped! :) Had to rebuild, though.
EDIT: Can i or someone else close this topic?
RastaTux
 
Posts: 3
Joined: 27 Aug 2017, 21:48

Re: Strange Error message after compiling from source

Postby GunChleoc » 29 Aug 2017, 11:58

You could edit the first post and add [solved] to the title.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

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

Postby AmyRollTheAnimator » 27 Oct 2017, 20:17

Requesting lock, RastaTux has Solved the Problem.
AmyRollTheAnimator
 
Posts: 5
Joined: 27 Jan 2016, 03:01

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

Postby XGhost » 27 Oct 2017, 23:45

ok...
User avatar
XGhost
 
Posts: 147
Joined: 02 Jan 2014, 15:49
Location: Zurich (Switzerland)

Who is online

Users browsing this forum: No registered users and 1 guest