Install Ceres1.14.0 on Ubuntu18.04

Step 1: First download the source code of Ceres, the link is as follows:

https://codeload.github.com/ceres-solver/ceres-solver/tar.gz/refs/tags/1.14.0

Description: tar.gz is the compressed package under Linux system zip is the compressed package under Windows system

Step 2: Install the dependencies required by ceres

sudo apt install libsuitesparse-dev libcxsparse3 libgflags-dev libgoogle-glog-dev libgtest-dev

Step 3: Unzip the compressed package under the Linux system, and then enter the folder to compile and install ceres, which takes about 20 minutes. Execute the following commands step by step.

cd ceres-solver/

mkdir build

cd build

cmake ..

make

sudo make install

After the installation is complete, if /usr/local/include/ceres/you can find the Ceres header files and library files in the directory /usr/local/lib/libceres.a, the installation is successful.

Guess you like

Origin blog.csdn.net/weixin_56257452/article/details/124956670