fftw3-android icon indicating copy to clipboard operation
fftw3-android copied to clipboard

Not neeeded anymore as now FFTW compiles out of the box :)

Open aguaviva opened this issue 4 years ago • 4 comments

aguaviva avatar Apr 23 '21 09:04 aguaviva

@aguaviva cool! I have not used FFTW in ages. What has changes since it now compiles "out of the box"?

Lauszus avatar Apr 27 '21 15:04 Lauszus

I will be checking in an Android project that plots a sprectrogram soon, there you can see the details, but pretty much it just worked.

aguaviva avatar Apr 27 '21 17:04 aguaviva

Okay. I still do not understand what you mean that it just worked? This project simply just adds a bunch of Android Makefiles to the fftw3 source files and does not modify the fftw3 source in any way.

But please send a link to your code so I can check it out :)

Lauszus avatar Apr 28 '21 09:04 Lauszus

In my Android Studio project I just had to add those 3 lines and all just compiles fine:

cmake_minimum_required(VERSION 3.4.1)

add_subdirectory(audio)
INCLUDE_DIRECTORIES(audio)

add_subdirectory(fftw-3.3.9)                          #<---------
INCLUDE_DIRECTORIES(fftw-3.3.9/api)                   #<---------

add_library(plasma SHARED plasma.cpp colormaps.cpp)

TARGET_LINK_LIBRARIES(plasma audio fftw3)             #<---------

The next step is to use ExternalProject_Add to have cmake download the fft lib but I am having no luck though.

I hope this helps

aguaviva avatar Apr 29 '21 20:04 aguaviva