编译过程中遇到
/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 还是没有检测到。