ceres库源码安装

ceres库源码安装

周一 3月 03 2025
104 字 · 1 分钟
ros slam 未分配标签

1.安装需要的库

PLAINTEXT
# 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

2.下载代码并编译安装

PLAINTEXT
git clone --recurse-submodules https://github.com/ceres-solver/ceres-solver
cd ceres-solver
mkdir build
cd build
cmake ..
make -j3
make test
# Optionally install Ceres, it can also be exported using CMake which
# allows Ceres to be used without requiring installation, see the documentation
# for the EXPORT_BUILD_DIR option for more information.
sudo make install

Thanks for reading!

ceres库源码安装

周一 3月 03 2025
104 字 · 1 分钟
ros slam 未分配标签

© sunwen | CC BY-NC-SA 4.0