Installation of non-linear optimization library Ceres in Ubuntu 1

Refer to the official website for tutorials: http://www.ceres-solver.org/installation.html

Step 1: Download

git clone https://ceres-solver.googlesource.com/ceres-solver

Step 2: Install dependencies

# CMake
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse and CXSparse (optional)
# - If you want to build Ceres as a *static* library (the default)
#   you can use the SuiteSparse package in the main Ubuntu package
#   repository:
sudo apt-get install libsuitesparse-dev
# - However, if you want to build Ceres as a *shared* library, you must
#   add the following PPA:
sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687
sudo apt-get update
sudo apt-get install libsuitesparse-dev

Step 3: Unzip, compile, install

tar zxf ceres-solver-1.14.0.tar.gz  
mkdir build 
cd build 
cmake ../ceres-solver-1.14.0  
make -j3  
make test #Ceres  
can optionally be installed, or it can be exported using CMake #Allows
when not required Installed using Ceres,

See the documentation for the EXPORT_BUILD_DIR option dialog # for more information .

make install



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325762543&siteId=291194637