Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
801 stars 62 forks source link

Errors with make systemshock #399

Open RahRah80 opened 1 year ago

RahRah80 commented 1 year ago

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 toSDL_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 toSDL_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 commented 1 year ago

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

RahRah80 commented 1 year ago

Hello.

According to synaptics i have libsdl2-2.0-0 version that i have is 2.0.14. I rebuild the dependecies and the cmake and all check fine.

Can i try to change the game code to alter the SDL version?

Thank you.

On Sat, Feb 25, 2023 at 7:47 PM Gerwin2k @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Interrupt/systemshock/issues/399#issuecomment-1445190726, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATDEDINBV2ZB3OYM7AQUPMTWZJOVBANCNFSM6AAAAAAVGIBAS4 . You are receiving this because you authored the thread.Message ID: @.***>

Gerwin2k commented 1 year ago

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 commented 1 year ago

Hello. With the new file, buid_deps.sh i manage to compile. I'll tryout the game and give you feedback.

Thank you.

On Sun, Feb 26, 2023 at 3:43 PM Gerwin2k @.***> wrote:

build_deps.sh.zip https://github.com/Interrupt/systemshock/files/10834045/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.

— Reply to this email directly, view it on GitHub https://github.com/Interrupt/systemshock/issues/399#issuecomment-1445392466, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATDEDIMY3LOZEULMQU63FTLWZN2ZZANCNFSM6AAAAAAVGIBAS4 . You are receiving this because you authored the thread.Message ID: @.***>