[Boost-docs] Boost.Python build problems

Subject: [Boost-docs] Boost.Python build problems
From: Phoenix (thephoenix5_at_[hidden])
Date: 2011-08-12 13:59:38


Good afternoon!

I've been trying to get boost python built for the past four days, I
don't usually ask for help but I don't know where else to turn. If I'm
posting to the wrong list, my apologies, please direct me to the
correct one. Any help or advice is appreciated. I'll try to provide
enough information to be helpful.

I tried following the instructions at
http://www.boost.org/doc/libs/1_46_0/libs/python/doc/building.html

I built boost most recently with the command:
bjam variant=release link=static threading=multi toolset=msvc-10
--build-type=complete stage

Then attempted to do:
C:\boost_1_47_0\libs\python\example\quickstart>bjam toolset=msvc-10
--verbose-test test

But received an error complaining that it couldn't find the file
"boost_python-vc100-mt-gd-1_47.lib"

Checking the files that were built I found
"boost_python-vc-mt-gd-1_47.lib" which I renamed and placed in
python's libs folder. Then I re-ran the quickstart tests and got the
following output:

C:\boost_1_47_0\libs\python\example\quickstart>bjam toolset=msvc-10
--debug-configuration --verbose-test test

notice: found boost-build.jam at
C:/boost_1_47_0/libs/python/example/quickstart/boost-build.jam
notice: loading Boost.Build from C:/boost_1_47_0/tools/build/v2
notice: Searching C:\Windows C:\Users\Rotem C:\Users\Rotem
C:\boost_1_47_0\libs\python\example\quickstart\../../../../tools/build/v2
C:/boost_1_47_0/tools/build/v2/kernel
C:/boost_1_47_0/tools/build/v2/util
C:/boost_1_47_0/tools/build/v2/build
C:/boost_1_47_0/tools/build/v2/tools
C:/boost_1_47_0/tools/build/v2/contrib
C:/boost_1_47_0/tools/build/v2/. for site-config configuration file
site-config.jam .
notice: Loading site-config configuration file site-config.jam from
C:/boost_1_47_0/tools/build/v2/site-config.jam .
notice: Searching C:\Users\Rotem C:\Users\Rotem
C:\boost_1_47_0\libs\python\example\quickstart\../../../../tools/build/v2
C:/boost_1_47_0/tools/build/v2/kernel
C:/boost_1_47_0/tools/build/v2/util
C:/boost_1_47_0/tools/build/v2/build
C:/boost_1_47_0/tools/build/v2/tools
C:/boost_1_47_0/tools/build/v2/contrib
C:/boost_1_47_0/tools/build/v2/. for user-config configuration file
user-config.jam .
notice: Loading user-config configuration file user-config.jam from
C:/Users/Rotem/user-config.jam .
notice: [msvc-cfg] msvc-10.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe'
notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\bin\cl.exe' for msvc, condition <toolset>msvc-10
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>/<address-model>', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>/<address-model>32', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>x86/<address-model>', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>x86/<address-model>32', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>/<address-model>64', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86_amd64 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>x86/<address-model>64', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86_amd64 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>ia64/<address-model>', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86_ia64 >nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-10/<architecture>ia64/<address-model>64', setup: 'call
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
x86_ia64 >nul
'
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.7"
notice: [python-cfg] user-specified cmd-or-prefix: "c:/Python27/python"
notice: [python-cfg] Checking interpreter command "c:/Python27/python"...
notice: [python-cfg] running command 'DIR /-C /A:S
"c:\Python27\python.exe" 2>&1'
notice: [python-cfg] running command '"c:/Python27/python" -c "from
sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
% (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))"
2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "c:/Python27/python"
notice: [python-cfg] include path: "c:\Python27\Include"
notice: [python-cfg] library path: "c:\Python27\libs"
notice: [python-cfg] DLL search path: "c:\Python27"
notice: [cmdline-cfg] Detected command-line request for msvc-10:
toolset= msvc version= 10
notice: [cmdline-cfg] toolset msvc-10 already configured
notice: iostreams: not using zlib compression
notice: iostreams: not using zlib compression
notice: iostreams: not using bzip2 compression
notice: iostreams: not using bzip2 compression
...patience...
...patience...
...found 1574 targets...
...updating 22 targets...
common.mkdir bin
common.mkdir bin\test_ext.test
common.mkdir bin\test_ext.test\msvc-10
common.mkdir bin\test_ext.test\msvc-10\debug
common.mkdir bin\test_ext.test\msvc-10\debug\threading-multi
common.mkdir bin\msvc-10
common.mkdir bin\msvc-10\debug
common.mkdir bin\msvc-10\debug\threading-multi
compile-c-c++ bin\msvc-10\debug\threading-multi\extending.obj
extending.cpp
msvc.link.dll bin\msvc-10\debug\threading-multi\extending.pyd
   Creating library bin\msvc-10\debug\threading-multi\extending.lib
and object bin\msvc-10\debug\threading-multi\extending.exp
msvc.manifest.dll bin\msvc-10\debug\threading-multi\extending.pyd
capture-output bin\test_ext.test\msvc-10\debug\threading-multi\test_ext
        1 file(s) copied.
====== BEGIN OUTPUT ======
Trying:
    from extending import *
Expecting nothing
ok
Trying:
    hi = hello('California')
Expecting nothing
ok
Trying:
    hi.greet()
Expecting:
    'Hello from California'
ok
Trying:
    invite(hi)
Expecting:
    'Hello from California! Please come soon!'
ok
Trying:
    hi.invite()
Expecting:
    'Hello from California! Please come soon!'
ok
Trying:
    class wordy(hello):
        def greet(self):
            return hello.greet(self) + ', where the weather is fine'
Expecting nothing
ok
Trying:
    hi2 = wordy('Florida')
Expecting nothing
ok
Trying:
    hi2.greet()
Expecting:
    'Hello from Florida, where the weather is fine'
ok
Trying:
    invite(hi2)
Expecting:
    'Hello from Florida! Please come soon!'
ok
1 items had no tests:
    test_extending.run
1 items passed all tests:
   9 tests in test_extending
9 tests in 2 items.
9 passed and 0 failed.
Test passed.

EXIT STATUS: 0
====== END OUTPUT ======
**passed** bin\test_ext.test\msvc-10\debug\threading-multi\test_ext.test
common.mkdir bin\test_embed.test
common.mkdir bin\test_embed.test\msvc-10
common.mkdir bin\test_embed.test\msvc-10\debug
common.mkdir bin\test_embed.test\msvc-10\debug\threading-multi
msvc.link bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.exe
LINK : warning LNK4001: no object files specified; libraries used
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.exe :
fatal error LNK1120: 1 unresolved externals

        call "C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /subsystem:console
/out:"bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.exe"
/LIBPATH:"c:\Python27\libs"
@"bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.exe.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link
bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.exe
bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.pdb...
...removing bin\test_embed.test\msvc-10\debug\threading-multi\test_embed.pdb
...skipped <pbin\test_embed.test\msvc-10\debug\threading-multi>test_embed.run
for lack of <pbin\test_embed.test\msvc-10\debug\threading-multi>test_embed.exe...
...failed updating 2 targets...
...skipped 2 targets...
...updated 18 targets...


This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC