Add LIBS+=-lfftw (or similar) to your qmake project file and rerun qmake.