Install Ceres Solver
Dependencies
Install the required dependencies:
# CMake
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev libgflags-dev
# Use ATLAS for BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse (optional)
sudo apt-get install libsuitesparse-dev
Build and Install
git clone --recursive-submodule https://github.com/ceres-solver/ceres-solver.git
cd ceres-solver
mkdir build
cd build
cmake ..
cmake --build . -j$(nproc)
sudo cmake --install .
Validation
You can verify the installation by running the bundled command-line bundle adjustment application against one of the included problems from the University of Washington's BAL dataset (Agarwal):
bin/simple_bundle_adjuster ../data/problem-16-22106-pre.txt