[英]Boost.Python not the .lib
I think I have built it properly. 我认为我已经正确构建了它。 I have other boost libraries working. 我还有其他的Boost库正在工作。 I am getting the following error 我收到以下错误
Error: SNK1104 cannot open file 'boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION-vc141-mt-x32-1_67.lib'. 错误: SNK1104无法打开文件'boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION-vc141-mt-x32-1_67.lib'。
I'm on windows using Visual Studios, with boost 1.67 我在使用Visual Studios并带有Boost 1.67的Windows上
boost-python
is notoriously hard to install. 众所周知, boost-python
很难安装。 Make sure you specify with-python
when building from source. 从源代码构建时,请确保指定with-python
。 Something like this: 像这样:
Download and configure boost 下载并配置Boost
cd boost_1_55_0\tools\build\v2\engine
build.bat mingw
Add this to your path 将此添加到您的路径
C:\boost_1_55_0\tools\build\v2\engine\bin.ntx86
Build from source 从源代码构建
bjam toolset=gcc --with-python link=shared
Add this to your path 将此添加到您的路径
C:\boost_1_55_0\stage\lib
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.