注意:如果安装opencv-4.0.0及以上版本的opencv,一定要先安装opencv,再安装ceres
一、安装依赖
sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3 libgflags-dev libgoogle-glog-dev libgtest-dev
二、下载源码
我下载的是2.0.0
https://github.com/ceres-solver/ceres-solver/releases
三、安装Ceres
1.进入ceres-solve-2.0.0目录
mkdir build
cd build
cmake ..
make -j4
sudo make install