Comments (8)
PR #84 should make the detection of SDL_mixer a bit more automatic when it comes to the local builds. Could you give that a shot?
from systemshock.
@StrayLightning I updated PR#84 to be better about finding the locally built SDL2 over the system built one, want to give it a shot?
from systemshock.
I'm on Fedora 27, and System Shock builds just fine with the includes from the system SDL2-devel.i686
and SDL2_mixer-devel.i686
packages.
I do need a locally-built version of SDL2_mixer (the official 2.0.2 release segfaults when trying to play a VOC file), but for that I just copied libSDL2_mixer-2.0.so.0
into the local directory and run with LD_LIBRARY_PATH=. ./systemshock
so the dynamic linker picks it up before the system version.
from systemshock.
I tried PR#84 with:
git fetch https://github.com/Interrupt/systemshock.git pull/84/head:pr84
git checkout pr84
CMake reported better than before, but it's still picking up the system SDL includes, and it looks like it would try to pick up the 64-bit library from the system:
-- Found SDL2_MIXER: /home/[...]/systemshock-interrupt/build_ext/built_sdl_mixer/lib/libSDL2_mixer.so
-- Found SDL2 Include:/usr/include/SDL2 Library:-L/usr/lib64 -lSDL2
-- Found SDL2_Mixer Include:/home/[...]/systemshock-interrupt/build_ext/built_sdl_mixer/include/SDL2 Library:/home/[...]/systemshock-interrupt/build_ext/built_sdl_mixer/lib/libSDL2_mixer.so
The build then fails because I don't have SDL2-devel.i686 installed:
/usr/include/SDL2/SDL_config.h:42:10: fatal error: SDL_config-i386.h: No such file or directory
#include "SDL_config-i386.h"
from systemshock.
Use cmake -DSDL2_DIR=/usr/lib32/cmake/SDL2 <path to sources>
.
from systemshock.
Thanks @winterheart. I have edited my original Issue text to be explicit that I could build by specifying the local SDL2 locations.
from systemshock.
@Interrupt -- That worked great:
$ cmake .
[...]
-- Found SDL2 Include:/home/[...]/systemshock-interrupt/build_ext/built_sdl/include/SDL2 Library:-L/home/[...]/systemshock-interrupt/build_ext/built_sdl/lib **-Wl,-rpath,/home/[...]/systemshock-interrupt/build_ext/built_sdl/lib** -Wl,--enable-new-dtags -lSDL2
-- Found SDL2_Mixer Include:/home/[...]/systemshock-interrupt/build_ext/built_sdl_mixer/include/SDL2 Library:/home/[...]/systemshock-interrupt/build_ext/built_sdl_mixer/lib/libSDL2_mixer.so
[...]
from systemshock.
I think this is fixed now, closing.
from systemshock.
Related Issues (20)
- Problems with MIDI music
- Digital speech is broken on Raspberry Pi 4 / retropie build HOT 1
- Mouse speed + double click annoyance in Linux HOT 1
- How compile ? HOT 2
- Game controller support
- The hacker's jump is feeble
- install_sdl.sh unexpected behavior (deleted dependency from Doom64)
- [Question] source port clarification
- Won't use LibSDL2 Mixer
- Errors with make systemshock HOT 4
- Game does not build whatsoever? Running on Linux Mint HOT 1
- Being able to fast doubleclick while SHIFT quicklooting containers causes the quickloot to fail sometimes
- Shift quickpick an item will force equip it/force show its infoscreen
- Double use clicking a junk item in the inventory will grab the item
- Feature request: SS2-like UI interactions
- Ability to change sprint key + Bind shift key to other binds
- Mouse not locked to window (Linux) HOT 1
- Feature request: FOV modifier
- trying to build on windows 10 HOT 1
- Cmake error
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 systemshock.