I want to link the fftw3 library, which I built from source, to my native Android Studio application. Therefore I included the headers and added libfftw3.a (Mach-O 64-bit object arm64) to my jniLibs/arm64-v8a/ folder. I link the library with CMake:
However, after including the library in my exec with #include "fftw-3.3.10/api/fftw3.h", I get the following error as soon as I want to call a related function ld: error: undefined symbol: fftw_malloc. Im aware that the application is not correctly linked to the library, but I don't know what's wrong with it, since I could successfully link other third party libraries this way.
I want to link the fftw3 library, which I built from source, to my native Android Studio application. Therefore I included the headers and added
libfftw3.a
(Mach-O 64-bit object arm64) to myjniLibs/arm64-v8a/
folder. I link the library with CMake:In my
build.gradle
I added the following C++ flags:However, after including the library in my exec with
#include "fftw-3.3.10/api/fftw3.h"
, I get the following error as soon as I want to call a related functionld: error: undefined symbol: fftw_malloc
. Im aware that the application is not correctly linked to the library, but I don't know what's wrong with it, since I could successfully link other third party libraries this way.