1、先在github上下载ceres-solver
1 git clone https://github.com/ceres-solver/ceres-solver.git
2、安装ceres-solver的各种依赖项
sudo apt-get install libgoogle-glog-dev sudo apt-get install libeigen3-dev sudo apt-get install libatlas-base-dev sudo apt-get install libsuitesparse-dev sudo apt-get install libmetis-dev
3、开始安装ceres-solver,进入ceres-solver的目录后,打开终端。依次操作以下命令:
mkdir build cd build/ cmake .. make sudo make install
到此ceres-solver已经安装成功!