-
Notifications
You must be signed in to change notification settings - Fork 164
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
How am I supposed to compile and use the library instead of the sonic program? #31
Comments
Okay fixed by doing:
|
But now I got stuck in trying to compile this with spectrogram.c and kiss_fft. I found no instructions for this. |
Particularly, do I need to edit: https://github.com/waywardgeek/sonic/blob/master/Makefile#L65 or is it enough to resolve https://github.com/waywardgeek/sonic/blob/master/spectrogram.c#L9 ? |
You don’t say what platform you are trying to use.
The simplest way on a Unix-like system is to make the libsonic library
make libsonic2.a
And then when you compile your library include
libsonic2.a
in your command line. That will get you the spectrogram, along with some things you don’t need.
You can always edit out the stuff you don’t need in the libsonic2 library, if you wish.
— Malcolm
|
Well first Linux (OpenSuse), but afterwards I was interested in seeing, if this can be made work on Android via JNI and NDK. But you didn't clarify, how do I enable kissfft. |
How am I supposed to compile and use the library instead of the sonic program?
I'm interested in computing a spectrogram.
I download, unzip, and then do:
make
After this I do:
gcc main.c -L. -lsonic
which fails to:
The text was updated successfully, but these errors were encountered: