Not logged inOpenClonk Forum
Up Topic General / Help and Questions / Setting SystemDataPath
- - By Marzanna [se] Date 2018-02-22 21:41
Hello.
I compiled openclonk but it set SystemDataPath to "/usr/local/share/games/openclonk/" but I have all data files in the same directory with binaries.
How do I specify SystemDataPath?
Reply
Parent - - By Luchs Date 2018-02-22 21:48
If you want to have one self-contained folder with the binaries and the data files, call cmake -DWITH_AUTOMATIC_UPDATE=ON (or switch that option in the CMake GUI), then recompile.

SystemDataPath is intended for installation like Linux distributions do: binaries to /usr/bin (or similar) and data files to /usr/share.
Parent - - By Marzanna [se] Date 2018-02-23 20:59
Thank you. It worked. Now I can look at debug trace.
[code]
$ ./openclonk
[22:57:51] OpenClonk
[22:57:51] Version: 8.0 unix linux-x86_64 (85d9c2c41039 - 2018-02-04 16:39:08 +0100)
[22:57:51] ExePath: "/home/marzanna/Games/openclonk-8.0/"
[22:57:51] SystemDataPath: "/home/marzanna/Games/openclonk-8.0/"
[22:57:51] UserDataPath: "/home/marzanna/.clonk/openclonk/"
[22:57:51] Command line: ./openclonk
[22:57:51]   gl: Create first context...
[22:57:51] GL 3.2.0 NVIDIA 387.34 on GeForce GTX 950M/PCIe/SSE2 (NVIDIA Corporation)
[22:57:51] No Gamepad found
[22:57:51] Loading graphics...
[22:57:52] SDL_mixer runtime version is 2.0.1 (compiled with 2.0.1)
8.0 unix: Caught signal SIGSEGV (0x00007ggd76f0c000)
./openclonk(+0x1bf2c1)[0x5650b9d582c1]
./openclonk(_ZN16C4ConsoleQtGraph9GraphData31EditGraphValue_InsertEdgeBeforeEP12C4ValueArrayS2_iii+0x0)[0x5650b9d58330]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x13150)[0x7f3f7af08150]
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0(+0x21c88)[0x7f3f79ec4c88]
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0(+0x21e85)[0x7f3f79ec4e85]
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0(+0x223b7)[0x7f3f79ec53b7]
/usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0(Mix_LoadWAV_RW+0x220)[0x7f3f79c5c930]
./openclonk(_ZN14C4SoundLoaders19SDLMixerSoundLoader8ReadInfoEPNS_9SoundInfoEPhmj+0x3a)[0x5650b9f5cd8a]
./openclonk(_ZN13C4SoundEffect4LoadEPhmb+0xa2)[0x5650b9f5f202]
./openclonk(_ZN13C4SoundEffect4LoadEPKcR7C4GroupS1_+0xb3)[0x5650b9f5f463]
./openclonk(_ZN13C4SoundSystem11LoadEffectsER7C4GroupPKcb+0x12a)[0x5650b9f279aa]
./openclonk(_ZN13C4SoundSystem11LoadEffectsER7C4GroupPKcb+0x332)[0x5650b9f27bb2]
./openclonk(_ZN13C4SoundSystem4InitEv+0x58)[0x5650b9f27c88]
./openclonk(_ZN13C4Application7PreInitEv+0x129)[0x5650b9dbb999]
./openclonk(_ZN13C4Application8GameTickEv+0x145)[0x5650b9dc4645]
./openclonk(_ZN22C4ApplicationGameTimer7ExecuteEiP6pollfd+0xd2)[0x5650b9dc4942]
./openclonk(_ZN12StdScheduler15DoScheduleProcsEi+0x593)[0x5650b9febbb3]
./openclonk(+0x4531c5)[0x5650b9fec1c5]
./openclonk(_ZN13C4AbstractApp3RunEv+0x3d)[0x5650b9f61dcd]
./openclonk(main+0x13b)[0x5650b9cfd35b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f3f7a9191c1]
./openclonk(_start+0x2a)[0x5650b9d02eba]
[/code]
Is it a bug? Should I report it?
Reply
Parent - - By Luchs Date 2018-02-23 23:30
Yeah, seems to be a bug. You're building with SDL_mixer, which isn't tested as well as with OpenAL as audio library. Try installing your distribution's OpenAL packages ( libalut-dev libvorbis-dev libopenal-dev on Debian and ubuntu), re-run cmake and rebuild. It should say "Using Audio toolkit: OpenAL" in cmake output.
Parent - By Marzanna [se] Date 2018-02-24 18:29
Thank you! Now I can play OpenClonk!
Reply
Up Topic General / Help and Questions / Setting SystemDataPath

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill