It would seem that /usr/local/lib (lib64, or /usr/local/fftw/lib as appropriate) is not in the linker's default library search path and you have not added it. Add it to EXTLIB with a -L option similar to the one that is already there.
BTW: this is a Qt programming forum not a general C++ programming forum.
Bookmarks