ubuntu cv_bridge报错记录 Keywords: boost_python3Config.cmake boost_python3-config.cmake

ubuntu cv_bridge报错记录

解决方法来自Ubuntu20.04 出现 Could not find a package configuration file provided by “boost_python3“的参考解决方法,为了方便自己后续查看,再发一份。

报错来源于对cv_bridge进行catkin_make

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
  Could not find a package configuration file provided by "boost_python3"
  (requested version 1.71.0) with any of the following names:

    boost_python3Config.cmake
    boost_python3-config.cmake

  Add the installation prefix of "boost_python3" to CMAKE_PREFIX_PATH or set
  "boost_python3_DIR" to a directory containing one of the above files.  If
  "boost_python3" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
  /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
  cv_bridge/CMakeLists.txt:17 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeOutput.log".
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

将cv_bridge中的CMakeLists.txt中对应部分注释掉

if(NOT ANDROID)
  find_package(PythonLibs)
  # if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
    find_package(Boost REQUIRED python)
  # else()
  #   find_package(Boost REQUIRED python3)
  # endif()
else()
find_package(Boost REQUIRED)
endif()
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值