c++ - How to use fftw library in Qt -


this question has answer here:

i have simple question regarding use of external library in qt, , in particular fftw. working on project in whice need build gui. working qt creator first time , pretty novice porgrammer.

i need preform fft in program , have found fftw library useful matter. how can make use of library in qt? know porbably have nothing program , more c++ language , compiling , linking, basicly in dark on subject.

i failed find detailed enough answer , can make progress on project without use of library. please help.

when want use external library in c/c++ first of have find 1 ore more *.h files should have been shipped library, .h files describe compiler found inside library. have #include correct .h file in code , tell compiler find (in folder).

in case should have line @ top of program

#include <fftw3.h> 

adding linr in .pro file compiler finding .h file is.

includepath += "c:/fftwmingw"

then have specify compiler library can found , what's name. adding line .pro file (the project file) find @ top of thr tree of project on left side in qt creator.

the line add pro file following. libs''= -lfftw3


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -