升级Eigen到达3.3.7版本
查看当前版本
vim /usr/include/eigen3/Eigen/src/Core/util/Macros.h
#define EIGEN_WORLD_VERSION 3
#define EIGEN_MAJOR_VERSION 3
#define EIGEN_MINOR_VERSION 4
即为版本3.3.4
下载Eigen3.3.7
mkdir ~/eigen
cd ~/eigen
wget http://bitbucket.org/eigen/eigen/get/3.3.7.tar.gz
tar zxvf 3.3.7.tar.gz
bitbucket已经不提供下载 现在需要在gitlab上下载
https://gitlab.com/libeigen/eigen
先备份
sudo mv /usr/include/eigen3 ~/eigen3.old
移动位置
sudo mv ~/eigen/eigen-eigen-323c052e1731 /usr/include/eigen3
兼容处理
sudo cp -r /usr/include/eigen3/Eigen /usr/include
sudo ln -s /usr/include/eigen3 /usr/local/include/eigen3
sudo ln -s /usr/include/eigen3/Eigen /usr/local/include/Eigen
验证
locate eigen3
或者
cd eigen-mater
mkdir build
cmake …/
sudo make install
运行命令
sudo cp -r /usr/local/include/eigen3 /usr/include