您的位置:首页 > 运维架构 > Linux

linux系统IDE找不到Eigen

2015-09-03 17:44 676 查看
编译过程中遇到

/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 还是没有检测到。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: