Skip to content

Linking Error After Building #418

@John-Jingis

Description

@John-Jingis

On the final step of building I receive this error:

[ 98%] Linking CXX executable systemshock
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libSDL2_mixer.so: undefined reference to `SDL_RWclose'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libSDL2_mixer.so: undefined reference to `SDL_RWread'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libSDL2_mixer.so: undefined reference to `SDL_RWseek'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libSDL2_mixer.so: undefined reference to `SDL_strtokr'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libSDL2_mixer.so: undefined reference to `SDL_RWsize'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libSDL2_mixer.so: undefined reference to `SDL_RWtell'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/systemshock.dir/build.make:270: systemshock] Error 1
make[2]: *** [CMakeFiles/Makefile2:173: CMakeFiles/systemshock.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/systemshock.dir/rule] Error 2
make: *** [Makefile:124: systemshock] Error 2

I am on x64 Arch with SDL Mixer 2.8.0 installed. Perhaps this build system requires an older version of the package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions