Open madame-rachelle opened 2 years ago
Does GZDoom link with the following line commented out? https://github.com/coelckers/ZMusic/blob/6b5aebf6a33d83912de16ed5a7999946bd7b6988/source/CMakeLists.txt#L8
Doing that gave me this:
[ 30%] Linking CXX executable ../gzdoom
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libzmusic.a(music_alsa_state.cpp.o): undefined reference to symbol 'snd_seq_query_next_port@@ALSA_0.9'
//usr/lib/x86_64-linux-gnu/libasound.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/zdoom.dir/build.make:7781: recipe for target 'gzdoom' failed
make[2]: *** [gzdoom] Error 1
CMakeFiles/Makefile2:784: recipe for target 'src/CMakeFiles/zdoom.dir/all' failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2```
I just tried this in Ubuntu 20.04 and same thing. The 18.04 was chrooted.
I am not sure what I am doing wrong, but the linker says that everything is a duplicate reference.