BUG记录
NIHU库是一个边界元库。
其依赖库有eigen,boost和fftw
fftw是用来作傅立叶变换的一个c库。
在编译nihu的时候这个bug花了很久最后发现竟然是没有安装这个串行库。
源码编译或者学习可以看:
https://fftw.org/pub/fftw/
关键词:FFTW3_SINGLE_SERIAL_LIBRARY
BUG
:CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFTW3_SINGLE_SERIAL_LIBRARY
linked by target “cmTC_45d01” in directory /home/mollychen/nihu/build/CMakeFiles/fftwf/CMakeFiles/CMakeTmp
CMake Error at /home/mollychen/nihu/cmake/FindFFTW.cmake:162 (try_run):
Failed to generate test project build system.
Call Stack (most recent call first):
/home/mollychen/nihu/cmake/FindFFTW.cmake:220 (find_version)
/home/mollychen/nihu/cmake/NiHuFFTW.cmake:31 (find_package)
CMakeLists.txt:45 (include)
FFTW3_SINGLE_SERIAL_LIBRARY 是一个fftw3的一个串行库,之前一直在看cmake文件以为是路径或者哪里有问题。最后解决
sudo apt-get install libfftw3-dev libfftw3-doc
参考的这个帖子
http://micro.stanford.edu/wiki/Install_FFTW3