/ usr / local / include中有Eigen,但是在编译过程中找不到“ Eigen / Dense”文件

时间:2019-03-29 08:51:02

标签: install eigen

我正在Mac上安装Eigen,/ usr / local / include中有Eigen,但是在编译过程中找不到“ Eigen / Dense”文件。

➜  build git:(master) ✗ ls /usr/local/include/Eigen
Cholesky               Eigenvalues            LU                     QR                     SparseCholesky         StdList
CholmodSupport         Geometry               MetisSupport           QtAlignedMalloc        SparseCore             StdVector
Core                   Householder            OrderingMethods        SPQRSupport            SparseLU               SuperLUSupport
Dense                  IterativeLinearSolvers PaStiXSupport          SVD                    SparseQR               UmfPackSupport
Eigen                  Jacobi                 PardisoSupport         Sparse                 StdDeque               src
➜  build git:(master) ✗ make
Scanning dependencies of target data_loader
[ 50%] Building CXX object data_loader/CMakeFiles/data_loader.dir/data_loader.cpp.o
In file included from /Users/OneDrive/Projects/.../data_loader/data_loader.cpp:1:
/Users/OneDrive/Projects/.../data_loader.h:8:10: fatal error: 'Eigen/Dense' file
      not found
#include <Eigen/Dense>
         ^~~~~~~~~~~~~
1 error generated.
make[2]: *** [data_loader/CMakeFiles/data_loader.dir/data_loader.cpp.o] Error 1
make[1]: *** [data_loader/CMakeFiles/data_loader.dir/all] Error 2
make: *** [all] Error 2

0 个答案:

没有答案