OpenNERO windows:找不到以下 Boost 库:boost_python
OpenNERO windows: Could not find the following Boost libraries: boost_python
我正在尝试 运行 OpenNERO 在我的 Windows 10 上。我已经安装了他们 wiki 上提到的用于构建它的所有依赖项。我的 Python 版本是 2.7.15
(已尝试使用 Python 2.7,以及最新的 3.7.1),boost 版本为 1.58(也已尝试使用 1.66 和 1.53)。
我转到我的 boost 文件夹位置:"C:\Program Files\boost\boost_1_67_0",并在该位置以管理员身份打开命令提示符,然后按照 instructions 构建 boost。
我在cmd中运行 bootstrap.bat
文件,输出如下图:
然后我 运行 .\b2 --build-type=complete -j2
命令 运行 几个小时,短输出显示在 pastebin.
之后我去了 Cmake 并尝试构建项目,但出现了以下错误:
Could NOT find Boost
Boost version: 1.67.0
Boost include path: C:/Program Files/boost/boost_1_67_0
Could not find the following Boost libraries:
boost_python
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or
BOOST_ROOT to the location of Boost.
CMake Error at source/CMakeLists.txt:33 (MESSAGE):
Boost libraries were not found, please install from
http://www.boost.org/
我的 stage/libs 文件夹中有所有 boost-python 文件,如下所示,为什么会出现此错误?
我的环境变量也正确设置如下所示:
将 this cmake file 中的第 26 行从 FIND_PACKAGE (Boost COMPONENTS python filesystem serialization system date_time)
更改为 FIND_PACKAGE (Boost COMPONENTS python27 filesystem serialization system date_time)
,以便它查找 python27 而不是 python。还在 cmake gui 中使用了 64 位生成器而不是 32 位生成器。
我正在尝试 运行 OpenNERO 在我的 Windows 10 上。我已经安装了他们 wiki 上提到的用于构建它的所有依赖项。我的 Python 版本是 2.7.15 (已尝试使用 Python 2.7,以及最新的 3.7.1),boost 版本为 1.58(也已尝试使用 1.66 和 1.53)。
我转到我的 boost 文件夹位置:"C:\Program Files\boost\boost_1_67_0",并在该位置以管理员身份打开命令提示符,然后按照 instructions 构建 boost。
我在cmd中运行 bootstrap.bat
文件,输出如下图:
然后我 运行 .\b2 --build-type=complete -j2
命令 运行 几个小时,短输出显示在 pastebin.
之后我去了 Cmake 并尝试构建项目,但出现了以下错误:
Could NOT find Boost
Boost version: 1.67.0
Boost include path: C:/Program Files/boost/boost_1_67_0
Could not find the following Boost libraries:
boost_python
Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.
CMake Error at source/CMakeLists.txt:33 (MESSAGE):
Boost libraries were not found, please install from http://www.boost.org/
我的 stage/libs 文件夹中有所有 boost-python 文件,如下所示,为什么会出现此错误?
将 this cmake file 中的第 26 行从 FIND_PACKAGE (Boost COMPONENTS python filesystem serialization system date_time)
更改为 FIND_PACKAGE (Boost COMPONENTS python27 filesystem serialization system date_time)
,以便它查找 python27 而不是 python。还在 cmake gui 中使用了 64 位生成器而不是 32 位生成器。