mstop4 / FMODGMS

🎶 GML bindings to the FMOD Studio low-level API for GM:S and GMS2. Can be used in Windows, macOS, and Linux games.
https://quadolorgames.itch.io/fmodgms
BSD 2-Clause "Simplified" License
62 stars 18 forks source link

kissfft not working on the linux version #25

Open Grix opened 4 years ago

Grix commented 4 years ago

I am trying to port my application, which uses this library and the kiss_fft functions I contributed, to Linux. But it seems something has gone wrong in the linking process or something. There are no release binaries for the latest version in this repo, but if I build the library myself using the build64.sh script, it completes and the program runs, but when I then try to call a function that uses the kissfft library, the program crashes with the following error:

symbol lookup error: assets/libfmodgms.so: undefined symbol: kiss_fft_alloc

Do you know how to build the library to fix the kissfft symbols?

Grix commented 4 years ago

For the record I was able to build it properly, but I'm not sure if you want a pull request as the toolset is completely different, I used g++ instead of clang, and fmod libs are in /usr/local.

With v0.10.1 branch, and cd'd to the linux folder:

g++ -Wall -std=c++14 -fPIC -O2 -c ../code/kissfft/kiss_fft.c    
g++ -Wall -std=c++14 -fPIC -O2 -c ../code/kissfft/kiss_fftr.c    
g++ -Wall -std=c++14 -fPIC -O2 -c ../code/fmodgms.cpp    
g++ -shared -o libfmodgms.so ../code/fmodgms.o ../code/kissfft/kiss_fftr.o ../code/kissfft/kiss_fft.o /usr/local/lib/libfmod.so