Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with make systemshock #399

Open
RahRah80 opened this issue Feb 23, 2023 · 4 comments
Open

Errors with make systemshock #399

RahRah80 opened this issue Feb 23, 2023 · 4 comments

Comments

@RahRah80
Copy link

Hello.

I ran build_deps.sh and went well, then cmake . with no problem, but with make systemshock

I got the following and don't know how to solve.

Thank you.

make systemshock
[ 1%] Built target VOX_LIB
[ 5%] Built target ADLMIDI_LIB
[ 9%] Built target EDMS_LIB
[ 10%] Built target LG_LIB
[ 48%] Built target 2D_LIB
[ 79%] Built target GAME_LIB
[ 80%] Built target PALETTE_LIB
[ 82%] Built target UI_LIB
[ 83%] Built target DSTRUCT_LIB
[ 85%] Built target FIX_LIB
[ 86%] Built target INPUT_LIB
[ 90%] Built target 3D_LIB
[ 93%] Built target RES_LIB
[ 95%] Built target AFILE_LIB
[ 96%] Built target RND_LIB
[ 96%] Built target FIXPP_LIB
[ 97%] Built target GR_LIB
[ 98%] Linking CXX executable systemshock
/usr/bin/ld: warning: libfluidsynth.so.2, needed by /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libSDL2_mixer.so, may conflict with libfluidsynth.so.1
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libSDL2_mixer.so: undefined reference to SDL_RWclose' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libSDL2_mixer.so: undefined reference to SDL_RWread'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libSDL2_mixer.so: undefined reference to SDL_RWseek' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libSDL2_mixer.so: undefined reference to SDL_RWtell'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/systemshock.dir/build.make:264: systemshock] Error 1
make[2]: *** [CMakeFiles/Makefile2:190: CMakeFiles/systemshock.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:197: CMakeFiles/systemshock.dir/rule] Error 2
make: *** [Makefile:150: systemshock] Error 2

@Gerwin2k
Copy link

SDL_RWread
"This function is available since SDL 2.0.10"
There is an SDL2 version mismatch somewhere in your build setup...

@RahRah80
Copy link
Author

RahRah80 commented Feb 26, 2023 via email

@Gerwin2k
Copy link

build_deps.sh.zip
IIRC System Shock also tries to locally build dependencies.
In my old shockolate build folder I changed build_deps.sh regarding SDL2. I attached the modified file.

@RahRah80
Copy link
Author

RahRah80 commented Feb 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants