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

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

Open
aguaviva opened this issue Apr 23, 2021 · 4 comments
Open

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

aguaviva opened this issue Apr 23, 2021 · 4 comments

Comments

@aguaviva
Copy link

No description provided.

@Lauszus
Copy link
Owner

Lauszus commented Apr 27, 2021

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

@aguaviva
Copy link
Author

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.

@Lauszus
Copy link
Owner

Lauszus commented Apr 28, 2021

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 :)

@aguaviva
Copy link
Author

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

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

2 participants