Astrabit-ST / ModShot-Core

A fork of mkxp, forked for OneShot, forked for OneShot mods, (not to be confused with the ModShot server)
https://nowaffles.com
GNU General Public License v2.0
19 stars 9 forks source link

SNDIO Build issues on Linux #44

Closed Speak2Erase closed 2 years ago

Speak2Erase commented 2 years ago

For some reason I can't build anything on linux because of something to do with SNDIO. I had to patch CmakeList in SDL_sound (https://stackoverflow.com/questions/41608136/sdl-sndioaudio-c-undefined-reference-to-sio) to conan install properly, but I am still running into build issues.

/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_ALCbackend_stop':
sndio.c:(.text+0xdd): undefined reference to `sio_stop'
/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_ALCbackend_start':
sndio.c:(.text+0x19c): undefined reference to `sio_start'
/usr/bin/ld: sndio.c:(.text+0x1f4): undefined reference to `sio_stop'
/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_mixerProc':
sndio.c:(.text+0x2eb): undefined reference to `sio_write'
/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_ALCbackend_reset':
sndio.c:(.text+0x3ba): undefined reference to `sio_initpar'
/usr/bin/ld: sndio.c:(.text+0x439): undefined reference to `sio_setpar'
/usr/bin/ld: sndio.c:(.text+0x4a8): undefined reference to `sio_getpar'
/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_ALCbackend_close':
sndio.c:(.text+0x71d): undefined reference to `sio_close'
/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_ALCbackend_open':
sndio.c:(.text+0x768): undefined reference to `sio_open'
/usr/bin/ld: /home/matthew/.conan/data/openal/1.18.2/bincrafters/stable/package/626f84e150d34b5f2065f11593667b59f4d883df/lib/libopenal.a(sndio.c.o): in function `ALCsndioBackend_ALCbackend_Destruct':
sndio.c:(.text+0x802): undefined reference to `sio_close'
/usr/bin/ld: /home/matthew/.conan/data/sdl2/2.0.9/bincrafters/stable/package/bb534dc96718d968eca63f39045b3f4bb829c5aa/lib/libSDL2.a(SDL_sndioaudio.c.o): in function `SNDIO_Init':
SDL_sndioaudio.c:(.text+0xa7): undefined reference to `sio_open'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0xc8): undefined reference to `sio_close'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0xd6): undefined reference to `sio_setpar'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0xe4): undefined reference to `sio_getpar'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0xf2): undefined reference to `sio_start'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x100): undefined reference to `sio_stop'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x10e): undefined reference to `sio_read'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x11c): undefined reference to `sio_write'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x12a): undefined reference to `sio_nfds'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x138): undefined reference to `sio_pollfd'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x146): undefined reference to `sio_revents'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x154): undefined reference to `sio_eof'
/usr/bin/ld: SDL_sndioaudio.c:(.text+0x162): undefined reference to `sio_initpar'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/oneshot.dir/build.make:1248: bin/oneshot] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/oneshot.dir/all] Error 2
make: *** [Makefile:84: all] Error 2