1、安装Ceres1.14.0
链接: Ubuntu20.04安装Ceres1.14.0.
官方安装流程:http://ceres-solver.org/installation.html
3、cmake编译ceres遇到的问题
(1)TBB
问题描述:Did not find Intel TBB library, assuming SuiteSparseQR was not compiled with
解决方法:sudo apt-get install libtbb-dev
(2)METIS
问题描述:Did not find METIS library (optional SuiteSparse dependency)
解决方法:sudo apt-get install libmetis-dev
(3)glog
问题描述:Failed to find installed glog CMake configuration, searching for glog build directories exported with CMake.
– Failed to find an installed/exported CMake configuration for glog, will perform search for installed glog components.
解决方法:安装glog,链接–>Ubuntu20.04安装glog.
① 安装glog遇到的问题——pthread_create
问题描述:Looking for pthread_create in pthreads - not found
解决方法:未解决
② 安装glog遇到的问题——pthread_threadid_np
问题描述:Looking for pthread_threadid_np - not found
解决方法:未解决
③ 安装glog遇到的问题——UnDecorateSymbolName
问题描述:Looking for UnDecorateSymbolName in dbghelp - not found
解决方法:未解决
④ 安装glog遇到的问题——GTest
问题描述:Could NOT find GTest (missing: GTest_DIR)
解决方法:重新安装googletest
git clone https://github.com/google/googletest.git
cd googletest
mkdir build
cd build
cmake …
make
sudo make install
⑤ 安装glog遇到的问题——Unwind
问题描述:Could NOT find Unwind (missing: Unwind_INCLUDE_DIR Unwind_LIBRARY)
解决方法:sudo apt install libunwind-dev
⑥ 安装glog遇到的问题——dladdr
问题描述:Looking for dladdr - not found
解决方法:未解决
注:上述未解决的问题,可能会影响程序的运行速度,但是不影响能否运行成功!