红联Linux门户
Linux帮助

linux系统IDE找不到Eigen

发布时间:2015-09-25 11:03:39来源:linux网站作者:Sean_xyz

编译过程中遇到:

/usr/local/include/vikit/math_utils.h:12:22: fatal error: Eigen/Core: No such file or directory

但是,我是确定安装了eigen的,这是怎么回事呢?


使用pkg-config 检测我的安装

pkg-config --cflags eigen
Package eigen was not found in the pkg-config search path.
Perhaps you should add the directory containing `eigen.pc'
to the PKG_CONFIG_PATH environment variable
No package 'eigen' found


再次检测

pkg-config --cflags eigen3
-I/usr/local/include/eigen3


于是

sean@fight:/usr/local/include$ sudo ln -s ./eigen3/Eigen/   ./Eigen

再次使用IDE编译,通过。
但pkg-config --cflags eigen 还是没有检测到。


用Tmux和Vim打造IDE:http://www.linuxdiyf.com/linux/12661.html

Python Ubuntu下的IDE选择:http://www.linuxdiyf.com/linux/9236.html

Android开发在Linux下IDE环境的配置:http://www.linuxdiyf.com/linux/3907.html