Page 1 of 1

Error supertuxkart current

PostPosted: 26 Nov 2014, 06:32
by modz
hi,

I'm using Fedora 20 x86_64.
i got this error when finished compile.

[info ] [FileManager]: Data files will be fetched from: '/usr/local/share/supertuxkart/data/'
[info ] [FileManager]: User directory is '/home/<myuser>/.config/supertuxkart/0.8.2/'.
[info ] [FileManager]: Addons files will be stored in '/home/<myuser>/.local/share/supertuxkart/addons/'.
[info ] [FileManager]: Screenshots will be stored in '/home/<myuser>/.cache/supertuxkart/screenshots/'.
[info ] [FileManager]: User-defined grand prix will be stored in '/home/<myuser>/.local/share/supertuxkart/grandprix/'.
[warn ] [FileManager]: Directory 'challenges' not found, aborting.
[warn ] [FileManager]: Directory 'fonts' not found, aborting.
[warn ] [FileManager]: Directory 'gfx' not found, aborting.
[warn ] [FileManager]: Directory 'grandprix' not found, aborting.
[warn ] [FileManager]: Directory 'gui' not found, aborting.
[warn ] [FileManager]: Directory 'library' not found, aborting.
[warn ] [FileManager]: Directory 'models' not found, aborting.
[warn ] [FileManager]: Directory 'music' not found, aborting.
[warn ] [FileManager]: Directory 'tracks' not found, aborting.
[warn ] [FileManager]: Directory 'sfx' not found, aborting.
[warn ] [FileManager]: Directory 'shaders' not found, aborting.
[warn ] [FileManager]: Directory 'skins' not found, aborting.
[warn ] [FileManager]: Directory 'textures' not found, aborting.
[warn ] [FileManager]: Directory 'po' not found, aborting.
[fatal ] [FileManager]: Not all assets found - aborting.


how to fix it?

thanks.

Re: Error supertuxkart current

PostPosted: 26 Nov 2014, 08:20
by deve
It doesn't find any data files. As first how do you start it? Directry from source tree (./build/bin/supertuxkart) or after make install command?

Do you have these directories in /usr/local/share/supertuxkart/data/? Maybe this directory is clean because you had previously installed other STK version and this time you didn't use make install at all? If these directories (challenges, fonts, gfx etc.) are there, this is probably bug in STK.

STK searches assets in few places: ./data, ../data, PREFIX/share/supertuxkart/data, and probably ../stk-assets too (I don't remember). If you want only make it work, then copy whole data to ./data directory.

Re: Error supertuxkart current

PostPosted: 26 Nov 2014, 08:36
by modz
hi deve,

here my compiling step.
- stk directory
|
|
- stk-code
- stk-assets
- cmake_build

$ cd stk/cmake_build
$ cmake ..
$ make -j2
--- after finish ----
$ cd bin
$ ./supertuxkart

Re: Error supertuxkart current

PostPosted: 26 Nov 2014, 09:02
by deve
It should be something like this:
> supertuxkart
>>> stk-code
>>>>>> build
>>>>>> data
>>>>>> ...
>>> stk-assets

cd supertuxkart/stk-code/build
cmake ..
make -j2

and after finish
cd ..
./build/bin/supertuxkart

stk-code must be base directory when you execute supertuxkart because it expects that data files will be in ./data directory.

If stk-assets won't be find automatically in ../stk-assets, then just copy "karts", "tracks" etc. directories to ./data dir. But it should find it...

Or simply use make install ;)