PDA

View Full Version : FFTW library on Windows and link to Qt Project



maroua_
27th January 2012, 11:19
Hello,
I need FFTW library to caluculte image correlation and i am trying to link the FFTW to my project in Windows on Qt Creator.
And i have no idea how could i start.
There no information on FFTW site.
Any suggestions?
Thanks,
Best regards,
Maroua

wysota
27th January 2012, 12:56
You can start by clicking on "File" menu and then choosing "New file or project".

maroua_
27th January 2012, 12:57
Hello,
I need FFTW library to caluculte image correlation and i am trying to link the FFTW to my project in Windows on Qt Creator.
And i have no idea how could i start.
There no information on FFTW site.
Any suggestions?
Thanks,
Best regards,
Maroua

Added after 1 35 minutes:

i tried to add dll to my .pro file



INCLUDEPATH += "C:/OpenCV-2.3.1-win/opencv/build/include"\
"C:/fftwMinGW"

LIBS += "C:/OpenCV-2.3.1MinGW/lib/libopencv_core231.dll.a" \
"C:/OpenCV-2.3.1MinGW/lib/libopencv_highgui231.dll.a" \
"C:/OpenCV-2.3.1MinGW/lib/libopencv_imgproc231.dll.a" \
"C:/QtSDK/mingw/lib/libgdi32.a"\
"C:/fftwMinGW/libfftw3-3.dll"\
"C:/fftwMinGW/libfftw3f-3.dll"\
"C:/fftwMinGW/libfftw3l-3.dll"

and i obtained the following error:

C:/fftwMinGW/libfftw3-3.dll: file not recognized: File format not recognized
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\DIGIDOC.exe] Error 1
mingw32-make.exe: *** [debug] Error 2
13:51:57: Le processus "C:\QtSDK\mingw\bin\mingw32-make.exe" s'est terminé avec le code 2.

Someone could help me

amleto
27th January 2012, 22:01
I believe you normally link with .a or .lib(windows), not the actual dll.

maroua_
28th January 2012, 12:57
I have no idea how to compile fftw to link it to my qt project. I need .a and there are only .dll.
Can someone help me?
Thanks.
Best regards,
Maroua

wysota
28th January 2012, 13:04
http://www.fftw.org/install/windows.html

Make sure you read the part behind "See DLLs and wisdom, below, for important information on using wisdom import/export from a DLL."

maroua_
28th January 2012, 16:34
how could I obtain .dll.a from .dll?and how could I compile fftw on windws to obtain .dll.a?
Thanks

wysota
28th January 2012, 16:57
Threads merged.

Jule
13th May 2013, 09:28
I also have the same trouble? anyone can help?Thanks