jarikomppa / soloud

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

Unable to build for Linux + Python bindings #309

Open Rubicon7 opened 3 years ago

Rubicon7 commented 3 years ago

Expected behavior:

After modifying genie.lua to support Alsa and OSS cd soloud/build ./genie gmake cd gmake && make

should result in a libsoloud.so that can be dropped in python directory and used with soloud.py

Actual behavior:

soloud.py complains about undefined symbol snd_pcm_close

Linking the .so and .a file using gcc results in "Undefined symbol: Soloud_destroy"

reorienting soloud.py to use the .a file results in an invalid ELF header

I may not be building this correctly so tips on how to build this would be mighty appreciated. I gotta use soloud in a linux environment.

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

Tried with both latest from git and stable from soloud website. Used soloud.py fix from https://github.com/jarikomppa/soloud/issues/287 .