linux系统IDE找不到Eigen

来源:互联网 发布:网络攻击的主要方法 编辑:程序博客网 时间:2024/04/19 08:18

编译过程中遇到

/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 还是没有检测到。

0 0
原创粉丝点击