Comments (6)
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.
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.
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.
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.
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.
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)
- shadowgrounds: stuck at the elevator exit HOT 2
- shadowgrounds: TV static displayed instead of video feed from NPCs
- build: Microsoft Visual Studio compilation support HOT 3
- sound: crash on start up on Windows
- editor: compilation fails
- shadowgrounds - Main menu issue with Intel GPU
- shadowgrounds - Sound problem at startup HOT 1
- shadowgrounds - Game crash when starting a game HOT 8
- survivor: character rotation limitation HOT 5
- survivor: missing textures HOT 1
- System mouse cursor showed ingame HOT 1
- Survivor: Intro video tiled HOT 2
- Survivor: background noise when game display information about characters
- Shadowgrounds: crashes at start using the GOG version HOT 12
- Compilation error
- survivor: flashlight
- survivor: crash HOT 3
- build error in SoundLib.cpp HOT 8
- sound: crash in Sound_Rewind after SDL_sound replacement of libvorbisfile HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadowgrounds.