jarikomppa / soloud

Free, easy, portable audio engine for games
http://soloud-audio.com
Other
1.69k stars 270 forks source link

Issue when invoking libsoloud.so from into-Nim-converted soloud header #346

Open abdulbadii opened 2 years ago

abdulbadii commented 2 years ago

Expected behavior:

Run, produce sound test.ogg

Actual behavior:

interrupted :

/usr/lib/libsoloud.so: undefined symbol: snd_pcm_close
could not load: libsoloud.so

Steps to reproduce the problem:

So sorry not really 100% use this source code but really need help solve issue in that calling this soloud.so from Nim that was obtained, converted from this header as in tutorial:

https://gist.github.com/zacharycarter/846869eb3423e20af04dea226b65c18f

the tutorial has few mistakes not go on inbuild step, this's the correct one after having soloud directory from git:

cd soloud
cd build
genie gmake
cd gmake
make
cp ../../lib/lisoloud.so /usr/lib

(or to /usr/local/lib or to CWD that is include)

SoLoud version, operating system, backend used, any other potentially useful information:

version: Latest here but clone the last one, ie. git clone --depth 1 OS : Arch Linux, actually Artix the no systemd one backend : I don't know, not setting it around, so should default