|
Boost-Build : |
Subject: [Boost-build] Boost Python Build Error
From: B Ku (lexuscrossover_at_[hidden])
Date: 2017-02-21 17:35:16
Hi Guys,
I am trying to get the Boost Python example working.
I am running Windows. I downloaded the source code for boost_1_63_0, ran
the boostrap.bat file to generate b2.exe and bjam.exe. Then I executed
b2.exe to build libboost*.lib in state/lib.
I then modified and placed the user-config.jam file in the
%HOMEDRIVE%%HOMEPATH% directory as follows:
# Configure specific msvc version (searched for in standard locations and
PATH).
using msvc : 12.0 ;
# Configure specific Python version.
using python
: 3.5
: C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\python.exe
: C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\include
: C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\libs
: <toolset>msvc
;
Then, I modified the libs/python/example/tutorial/Jamfile as follows, so
include .h files can be found:
project tutorial
: requirements
<include>../../../../
<location>.
;
Finally, I copied the bjam.exe to libs/python/example, and executed
bjam.exe and got the following error:
C:\Users\Ben\Home\boost\boost_1_63_0\libs\python\example>bjam.exe
...patience...
...found 996 targets...
...updating 4 targets...
msvc.link.dll tutorial\hello_ext.pyd
LINK : fatal error LNK1181: cannot open input file 'boost_python.lib'
call
"C:\Users\Ben\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST
/subsystem:console /out:"tutorial\hello_ext.pyd" /IMPLIB:"tut
if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
...failed msvc.link.dll tutorial\hello_ext.pyd tutorial\hello_ext.pdb
tutorial\hello_ext.pdb...
...skipped <ptutorial>hello for lack of <ptutorial>hello_ext.pyd...
...failed updating 2 targets...
...skipped 2 targets...
Is there a way to specify where the .lib files are supposed to be?
Am I missing a step? By default, b2 generates lib files with this name
format: libboost*.lib, not boost_python.lib.
Thank you very much for your help in advance!
Thanks,
Ben
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk