Try moving the last LIBS line before the first. This will lilely cause the linker command to list/scan the fft library before the demo library.
Try moving the last LIBS line before the first. This will lilely cause the linker command to list/scan the fft library before the demo library.
I have made a .pri file named common.pri which has the following code from above:
MOC_DIR = ./build
OBJECTS_DIR = ./build
INCLUDEPATH += usr/lib/x86_64-linux-gnu/
LIBS += -L/usr/lib/x86_64-linux-gnu/ -lfftw3f -lm
and linked it to my other .pro files as include(../common.pri). So, I suppose the linker would scan the fft library before any LIBS in any of my .pro file but still the same error exists.
According to http://www.fftw.org/fftw3_doc/Data-T...ypes-and-Files the libs for FFTW should be listed at the end... The problem lies elsewhere.
Have you built your app and lib demo with a 64-bit compiler?
Can you compile and link an FFTW example outside of Qt tools?
yes, I have built it with a 64-bit compiler and FFTW works outside of QT tools for another code but still doesn't work in my case.
I have tried removing all FFTW files and used libfftw3-dev, still no effect.
I am using Virtualbox for ubuntu 15.10. I have tried working my code in windows using Qt Creator & precompiled FFTW 3.3.4 Windows DLLs(libfftw3f-3.dll) downloaded from http://www.fftw.org/install/windows.html and it works by linking -lfftw3f-3, now is there any similar file that would work on ubuntu?
Bookmarks