ceres安装完后报错找不到absei

csres报错

CMake Error at loam_livox/CMakeLists.txt:23 (find_package):
  Found package configuration file:

    /usr/local/lib/cmake/Ceres/CeresConfig.cmake

  but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
  FOUND.  Reason given by package:

  The following imported targets are referenced, but are missing:
  absl::log_flags absl::log absl::check absl::fixed_array absl::strings
  absl::time



-- Configuring incomplete, errors occurred!
See also "/home/hlc/code/loam_livox_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hlc/code/loam_livox_ws/build/CMakeFiles/CMakeError.log".

这实际上是ceres安装的时候的ceres-solver
/third_party/的第三方库没安装上

在这里插入图片描述
需要你先删除之前的安装

# 删除之前安装的 Ceres 和 Abseil
sudo rm -rf /usr/local/include/ceres
sudo rm -rf /usr/local/lib/libceres*
sudo rm -rf /usr/local/include/absl
sudo rm -rf /usr/local/lib/libabsl*

然后递归的克隆包

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

接下来的跟官网一致

mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver
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.
make install

参考

http://ceres-solver.org/installation.html
官网的除了没有recursive外其他还好

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值