Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kissfft not working on the linux version #25

Open
Grix opened this issue Oct 20, 2019 · 1 comment
Open

kissfft not working on the linux version #25

Grix opened this issue Oct 20, 2019 · 1 comment

Comments

@Grix
Copy link
Contributor

Grix commented Oct 20, 2019

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
Copy link
Contributor Author

Grix commented Nov 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant