Code Monkey home page Code Monkey logo

Comments (6)

vayerx avatar vayerx commented on June 29, 2024

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?

from shadowgrounds.

montaropdf avatar montaropdf commented on June 29, 2024

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

from shadowgrounds.

vayerx avatar vayerx commented on June 29, 2024

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

from shadowgrounds.

montaropdf avatar montaropdf commented on June 29, 2024

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?

from shadowgrounds.

vayerx avatar vayerx commented on June 29, 2024

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.

from shadowgrounds.

montaropdf avatar montaropdf commented on June 29, 2024

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.

from shadowgrounds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.