Ubuntu20.04安装Ceres库--ceres-solver报错未安装

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - fanguangbantrilateration -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'fanguangbantrilateration' -- ==> add_subdirectory(fanguangbantrilateration) CMake Error at fanguangbantrilateration/CMakeLists.txt:39 (find_package): By not providing "FindCeres.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Ceres", but CMake did not find one. Could not find a package configuration file provided by "Ceres" with any of the following names: CeresConfig.cmake ceres-config.cmake Add the installation prefix of "Ceres" to CMAKE_PREFIX_PATH or set "Ceres_DIR" to a directory containing one of the above files. If "Ceres" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/mjm/Desktop/ROS_GZ/fanguangban_workspace/build/CMakeFiles/CMakeOutput.log". See also "/home/mjm/Desktop/ROS_GZ/fanguangban_workspace/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

复制代码
git clone https://github.com/ceres-solver/ceres-solver.git
//有可能无法连接
//使用如下命令直接从官网下载
wget http://ceres-solver.org/ceres-solver-2.2.0.tar.gz
//或者低阶版本
wget http://ceres-solver.org/ceres-solver-1.14.0.tar.gz

//解压文件
wget http://ceres-solver.org/ceres-solver-2.2.0.tar.gz

//改名
mv ceres-solver-2.2.0 ceres-solver


//3进入目录,然后编译

cd ceres-solver
mkdir build && cd build 
cmake ..
make -j3
sudo make install

从新编译就不会报错了。