Download the package from the official site. Note that the download requires user registration. Then, compile the package with the following command.
- make sure that FFTW was configured with ./configure –with-pic
- edit FFTW_DIR in makefile.opt to specify the directory where FFTW was installed (in my case, FFTW_DIR = /usr/local).
- make lib
- make test