Skip to content
Shu Wang edited this page Feb 12, 2020 · 1 revision

Welcome to the fftw3-android wiki!

Yes I was able to use the FFTW library with Android NDK using this tool: https://github.com/Lauszus/fftw3-android

You have to build the library locally on your computer using the build script.

You can use the Android.mk file in the README, just make modifications to it so that it points on the built library.

You also need an Application.mk file, like in this tutorial: http://web.guohuiwang.com/technical-notes/androidndk1

You will need to configure Gradle via the Android Studio UI to set up your project as a NDK project: https://developer.android.com/studio/projects/gradle-external-native-builds

After this you should be able to create a .cpp file and try including the header

#include <fftw3.h> and hopefully your project should compile.

I suggest installing the FFTW library to your local development computer and writing some toy FFTW code locally before porting that to NDK.

Clone this wiki locally