解决 fatal error: fftw3.h: No such file or directory


安装最新的fftw

下载:wget http://www.fftw.org/fftw-3.3.10.tar.gz

解压:tar zxvf fftw-3.3.10.tar.gz

安装:./configure && make && make install

如果是指定位置安装,需要设置环境变量:

PATH:  /path/fftw-3.3.10/bin

LD_LIBRARY_PATH:  /path/fftw-3.3.10/lib

C_INCLUDE_PATH:  /path/fftw-3.3.10/include   

CPLUS_INCLUDE_PATH:  /path/fftw-3.3.10/include