FFTW3 installation
ann-sos opened this issue · 0 comments
ann-sos commented
Installation command
$ sudo apt-get install fftw3
leads to errors
Error using mex
/usr/bin/ld: cannot find -lfftw3f: No such file or directory
collect2: error: ld returned 1 exit status
Error in compile_mex (line 9)
eval(strcat("mex ./lahbpcg_mex.cpp ", filelist, " -I/usr/local/include -L/usr/local/lib/ -DNO_SDL -DNO_OPENEXR -DNO_TIFF -DNO_JPEG -DNO_PNG -lfftw3f -ldl -R2018a"))
In my case it was possible to fix this issue by installing
$ sudo apt-get install libfftw3-dev libfftw3-doc
.