CMAKE-3.10:FindBoost.cmake:无法找到请求的 Boost 库 (Ubuntu)

时间:2021-04-23 20:32:34

标签: python ubuntu boost cmake

我正在尝试在 Ubuntu 中运行 CMake (3.10),但收到以下消息:

  No header defined for python37; skipping header check
Call Stack (most recent call first):
  CMakeLists.txt:56 (find_package)


-- Trying alternative Boost.Python component name, python-py<version>...
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
  No header defined for python-py37; skipping header check
Call Stack (most recent call first):
  CMakeLists.txt:59 (find_package)


CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.65.1

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_python-py37

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:59 (find_package)


-- Could NOT find Python (missing: PYTHON_LIBRARIES)
CMake Error at CMakeLists.txt:86 (message):
  Not all requred components of Numpy/Python found.


-- Configuring incomplete, errors occurred!

看起来Boost库和python有问题。我该如何解决这个问题?

0 个答案:

没有答案