ARTICLE DETAIL

资讯详情

深耕编程入门与网站建设的一线实战洞察。

ceres-solver安装

ceres-solver安装 在编译 fast-lio-slam框架时总会报错CMake Error at FAST_LIO_SLAM/SC-PGO/CMakeLists.txt:25 (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.使用的apt方式进行的安装sudo apt install libceres1 sudo apt install libceres11.14.0-4ubuntu1sudo apt remove libceres-dev使用apt安装时 查看动态库也有相应的库find /usr -name libceres.so* 2/dev/null /usr/lib/libceres.so.1.14.0 /usr/lib/libceres.so.1但是一到fastlio_slam工作目录下cmake时就会报错为此先卸载再用源码安装下述三个都要运行因为我安装了这三个sudo apt remove libceres-dev sudo apt remove libceres sudo apt remove libceres1源码安装步骤在software文件夹下新建cere文件夹(好管理)再此文件夹下打开终端按照如下进行安装即可# 下载源码 wget http://ceres-solver.org/ceres-solver-1.14.0.tar.gz tar xvf ceres-solver-1.14.0.tar.gz cd ceres-solver-1.14.0 # 编译安装 mkdir build cd build cmake .. make -j4 sudo make install用 dpkg -s libceres-dev | grep Version 查找不到时不要紧因为dpkg -s libceres-dev找不到版本是正常的因为你并没有通过apt安装libceres-dev这个软件包。dpkg是 Debian/Ubuntu 的包管理工具它只能查询通过apt或dpkg命令安装的软件包信息。从源码编译安装的软件其文件被直接复制到系统目录如/usr/local但不会在dpkg的数据库中留下任何安装记录。因此你不需要使用dpkg下面的方法可以准确地查看你通过源码编译安装的 Ceres 版本。
返回列表