如何解决CMake错误:无法找到由“boost_python3”提供的软件包配置文件

8gsdolmq  于 2022-10-30  发布在  Python
关注(0)|答案(1)|浏览(1134)

我尝试根据github安装指南在https://github.com/fzi-forschungszentrum-informatik/Lanelet2安装lanelet2库。
当我执行柳絮构建时,我得到以下错误:

Errors     << lanelet2_python:cmake /home/student/catkin_ws/logs/lanelet2_python/build.cmake.000.log
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.

我的操作系统是带有ROS noetic的Ubuntu 20.04。构建是在一个带有Python 3.8.10版本的venv中进行的。
命令python指向python3。我还安装了以下依赖项:
第一个
有人知道如何解决此错误吗?

hwamh0ep

hwamh0ep1#

请访问www.example.com查看中微子的评论https://github.com/ethz-asl/kalibr/issues/368#issuecomment-651726289

/kalibr/Schweizer-Messer/numpy_eigen/cmake/add_python_export_library.cmake:89
change
list(APPEND BOOST_COMPONENTS python3)
to
list(APPEND BOOST_COMPONENTS python)

相关问题