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()

你可能感兴趣的:(ubuntu,linux,运维)