cmake 找不到 eigen

在catkin_make ros包总是提示CMake Error atCMakeLists.txt:23 (find_package):
By not providing"FindEigen3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake tofind a package configuration file provided by "Eigen3", but
CMake did not findone.

Could not find apackage configuration file provided by "Eigen3" with any
of the followingnames:

Eigen3Config.cmake
eigen3-config.cmake

Add theinstallation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
"Eigen3_DIR"to a directory containing one of the above files. If "Eigen3"
provides aseparate development package or SDK, be sure it has been
installed.
已邀请:

ncnynl

赞同来自:

解决方法:http://blog.csdn.net/appleml/a ... 42943
解决方法原地址: http://stackoverflow.com/quest ... cmake

下载:
Eigen 3.3.4版本地址为:http://eigen.tuxfamily.org/ind ... _Page

安装步骤:

> mkdir build 
> cd build >
> cmake .. -DEIGEN3_INCLUDE_DIR=eigen -DCMAKE_CXX_COMPILER=/usr/bin/clang++
> make install
 
问题完美解决。
 
 
如果提示FORTRAN没找到,通过命令安装:
sudo apt-get install gfortran

要回复问题请先登录注册