简体   繁体   English

OpenNERO窗口:找不到以下Boost库:boost_python

[英]OpenNERO windows: Could not find the following Boost libraries: boost_python

I am trying to run OpenNERO on my Windows 10. I had installed all the dependencies mentioned on their wiki for building it. 我试图在Windows 10上运行OpenNERO 。我已经安装了他们在wiki上提到的所有依赖项以进行构建。 My Python version is 2.7.15 (have tried with Python 2.7, and latest 3.7.1 as well), boost version is 1.58 (have tried 1.66 and 1.53 as well). 我的Python版本是2.7.15(已尝试使用python 2.7,以及最新的3.7.1),增强版本是1.58(已尝试过1.66和1.53)。

I went to my boost folder location: "C:\\Program Files\\boost\\boost_1_67_0", and opened the command prompt as an administrator in that location, and then followed the instructions to build boost. 我转到我的boost文件夹位置:“ C:\\ Program Files \\ boost \\ boost_1_67_0”,并以管理员身份在该位置打开命令提示符,然后按照说明进行构建。 I ran the bootstrap.bat file in the cmd, output shown below: 我在cmd中运行bootstrap.bat文件,输出如下所示: 在此处输入图片说明

Then I ran the .\\b2 --build-type=complete -j2 command which ran for a couple of hours and the short output is shown in this pastebin . 然后,我运行了.\\b2 --build-type=complete -j2命令,该命令运行了几个小时,在此pastebin中显示了简短的输出。

Following this I went to Cmake and tried to build the project which gave me following errors: 之后,我去了Cmake并尝试构建该项目,该项目给了我以下错误:

Could NOT find Boost 找不到助推器

Boost version: 1.67.0 增强版:1.67.0

Boost include path: C:/Program Files/boost/boost_1_67_0 Boost包含路径:C:/ Program Files / boost / boost_1_67_0

Could not find the following Boost libraries: 找不到以下Boost库:

  boost_python 

Some (but not all) of the required Boost libraries were found. 找到了一些(但不是全部)必需的Boost库。 You may need to install these additional Boost libraries. 您可能需要安装这些额外的Boost库。 Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. 或者,将BOOST_LIBRARYDIR设置为包含Boost库的目录,或者将BOOST_ROOT设置为Boost的位置。

CMake Error at source/CMakeLists.txt:33 (MESSAGE): 源/CMakeLists.txt:33(消息)的CMake错误:

Boost libraries were not found, please install from http://www.boost.org/ 找不到Boost库,请从http://www.boost.org/安装

I have all the boost-python files in my stage/libs folder as shown below then why is it giving me this error? 我的stage / libs文件夹中包含所有boost-python文件,如下所示,那为什么会出现此错误?

在此处输入图片说明 My environment variables are also correctly set-up as shown below: 我的环境变量也已正确设置,如下所示: 在此处输入图片说明

Changed the line 26 in this cmake file from FIND_PACKAGE (Boost COMPONENTS python filesystem serialization system date_time) to FIND_PACKAGE (Boost COMPONENTS python27 filesystem serialization system date_time) so that it looks for python27 instead of python. 将此cmake文件中的第26行从FIND_PACKAGE (Boost COMPONENTS python filesystem serialization system date_time)更改为FIND_PACKAGE (Boost COMPONENTS python27 filesystem serialization system date_time)以便它查找python27而不是python。 Also used the 64bit generator in cmake gui instead of the 32 bit one. 在cmake gui中也使用了64位生成器,而不是32位。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM