Closed montaropdf closed 8 years ago
Hi,
Looks like cmake was not able to find SDL core library. From cmake's FindSDL.cmake:
Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration and no SDL_LIBRARY, it means CMake did not find your SDL library (SDL.dll, libsdl.so, SDL.framework, etc). Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again. Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value as appropriate. These values are used to generate the final SDL_LIBRARY variable, but when these values are unset, SDL_LIBRARY does not get created.
Does 64-bit version of libSDL.so exist in default libraries location (/usr/lib/ or /usr/lib64/)? It should be installed by SDL.x86_64, I guess. Make sure it is SDL-1, but not SDL-2. What cmake version do you use?
Details on libSDL.so:
[roland@farsight build]$ ls -l /usr/lib64/libSDL.so
lrwxrwxrwx. 1 root root 20 15 aoû 2014 /usr/lib64/libSDL.so -> libSDL-1.2.so.0.11.4
Version of CMake is 3.0.2
As I can see in cmake-3.5's FindSDL.cmake, there is hardcoded version of SDLmain library:
find_library(SDLMAIN_LIBRARY NAMES SDLmain SDLmain-1.1
I've got /usr/lib64/libSDLmain.a
on my machine. Maybe there is a versioned libSDLmain on yours? If you are using SDL-1.2 this could be a problem.
Could you please run cmake with following additional arguments:
-DSDL_LIBRARY_TEMP=/usr/lib64/libSDL.so -DSDLMAIN_LIBRARY=PATH-TO-YOUR-SDLmain-LIBRARY
SDLmain was not installed on my system, after spending sometimes searching I find the package that contained it. I install it and cmake and make works as described in the wiki/build.
The package for fedora 21 is SDL-static.x86_64, maybe you could add this to the wiki.
I don't really get it on how to specify the location of the data files. The --data argument must be provided to cmake or make?
You can specify data location at run-time: shadowgrounds --data=/usr/share/games/shadowgrounds
. You can also change the default path at compile-time: cmake -DSHADOWGROUNDS_DATA_PATH=/usr/share/games/shadowgrounds ...
or via CMAKE_DATA_PATH -- it is a prefix of data directory: /usr/share/games/shadowgrounds .
Similarly for Survivor.
$ shadowgrounds --help
Shadowgrounds for Linux, version 1.0.4
-h [ --help ] Display this help message
-v [ --version ] Display the game version
-w [ --windowed ] Run the game windowed
-f [ --fullscreen ] Run the game in fullscreen mode
-s [ --nosound ] Do not access the sound card
-m [ --nomouse ] Disable mouse
-k [ --nokeyboard ] Disable keyboard
-j [ --nojoystick ] Disable joystick
-d [ --data ] arg (=/usr/share/games/shadowgrounds)
Path to game-data directory
I'll update wiki in a few days.
Thanks. I can start shadowgrounds (I have not installed my copy of survivor yet), but it crashes at some point. I will open an issue for it.
Hi,
I am trying to compile the game but I face the following issue:
I am working on a Fedora Linux 21 64 bits.
Below is the list of packages installed related to SDL on my system:
What can I possibly miss that prevent cmake from preparing the compilation?
Thanks.