Giter Club home page Giter Club logo

Comments (8)

Interrupt avatar Interrupt commented on May 17, 2024 1

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.

Interrupt avatar Interrupt commented on May 17, 2024 1

@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.

inguin avatar inguin commented on May 17, 2024

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.

StrayLightning avatar StrayLightning commented on May 17, 2024

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.

winterheart avatar winterheart commented on May 17, 2024

Use cmake -DSDL2_DIR=/usr/lib32/cmake/SDL2 <path to sources>.

from systemshock.

StrayLightning avatar StrayLightning commented on May 17, 2024

Thanks @winterheart. I have edited my original Issue text to be explicit that I could build by specifying the local SDL2 locations.

from systemshock.

StrayLightning avatar StrayLightning commented on May 17, 2024

@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.

Interrupt avatar Interrupt commented on May 17, 2024

I think this is fixed now, closing.

from systemshock.

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.