|
Boost-Build : |
From: Matt (mattbenic_at_[hidden])
Date: 2007-09-18 10:53:24
Hi all, I hope I'm directing this to the right group. Please excuse the
long winded explanation but in this case I think it is warranted.
I am trying to build Boost.Python for embedded python scripting (I'm
already familiar with other Boost utilities, though not with lib based
ones). I initially tried downloading and running the boost installer,
but despite being left to run overnight, it did not seem to complete or
download any packages successfully-probably due to company firewall
issues. I then downloaded the latest boost source version (1.34.1) and
extracted that. I mistakenly understood from the Boost.Python docs that
Python 2.2 was the preferred version, and downloaded and installed that.
Running the following:
cd C:\Work\boost_1_34_1\libs\python\example\quickstart\
C:\Work\boost_1_34_1\bjam toolset=msvc --verbose-test
--debug-configuration test
caused an error. After some re-reading I realized that 2.2 is the lowest
possible version, but that a newer version is probably better. I
uninstalled Python 2.2 and installed 2.5.1 instead.
Running the following did not result in any errors:
cd C:\Work\boost_1_34_1\
C:\Work\boost_1_34_1\bjam toolset=msvc --with-python stage
However now when I try to run the quickstart, after the line
"capture-output
bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext" is output, a
missing dll error dialog appears with the message "This application has
failed to start because python22.dll was not found. Re-installing the
application may fix this problem". Filemon indicates that Python.exe is
trying to link to this dll.
I have invoked python on the commandline, and this works fine, so it
seems that this incorrect version linking is only happening through
boost.build.
Does anyone have any suggestions as to what may be wrong? I have scoured
the registry and files and can't figure out what is going on here. Any
help would be greatly appreciated.
------------------------------------------------------------------------------------------------------
For reference, the complete output of the later quickstart attempt follows:
------------------------------------------------------------------------------------------------------
C:\Documents and Settings\mbenic\My Documents>cd
C:\Work\boost_1_34_1\libs\python\example\quickstart\
C:\Work\boost_1_34_1\libs\python\example\quickstart>C:\Work\boost_1_34_1\bjam
toolset=msvc --verbose-test --debug-configuration test
notice: found boost-build.jam at
C:\Work\boost_1_34_1\libs\python\example\quickstart\boost-build.jam
notice: loading Boost.Build from
C:\Work\boost_1_34_1\libs\python\example\quickstart\..\..\..\..\tools\build\v2
notice: searching "C:\WINDOWS" "C:\Documents and Settings\mbenic"
"C:\Documents and Settings\mbenic"
"C:\Work\boost_1_34_1\libs\python\example\quickstart\../../../../tools/build/v2"
"C:/Work/boost_1_34_1/tools/build/v2/kernel"
"C:/Work/boost_1_34_1/tools/build/v2/util"
"C:/Work/boost_1_34_1/tools/build/v2/build"
"C:/Work/boost_1_34_1/tools/build/v2/tools"
"C:/Work/boost_1_34_1/tools/build/v2/new"
"C:/Work/boost_1_34_1/tools/build/v2/." for "site-config.jam"
notice: loading site-config.jam from
C:\Work\boost_1_34_1\libs\python\example\quickstart\..\..\..\..\tools\build\v2\site-config.jam
notice: searching "C:\Documents and Settings\mbenic" "C:\Documents and
Settings\mbenic"
"C:\Work\boost_1_34_1\libs\python\example\quickstart\../../../../tools/build/v2"
"C:/Work/boost_1_34_1/tools/build/v2/kernel"
"C:/Work/boost_1_34_1/tools/build/v2/util"
"C:/Work/boost_1_34_1/tools/build/v2/build"
"C:/Work/boost_1_34_1/tools/build/v2/tools"
"C:/Work/boost_1_34_1/tools/build/v2/new"
"C:/Work/boost_1_34_1/tools/build/v2/." for "user-config.jam"
notice: loading user-config.jam from C:\Documents and
Settings\mbenic\user-config.jam
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.5"
notice: [python-cfg] user-specified cmd-or-prefix:
"C:\Work\Python25\python"
notice: [python-cfg] Checking interpreter command
"C:\Work\Python25\python"...
notice: [python-cfg] running command 'DIR /-C /A:S
C:\Work\Python25\python.exe 2>&1'
notice: [python-cfg] running command 'C:\Work\Python25\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:\Work\Python25\python"
notice: [python-cfg] include path: "C:\Work\Python25\Include"
notice: [python-cfg] library path: "C:\Work\Python25\libs"
notice: [python-cfg] DLL search path: "C:\Work\Python25"
notice: [cmdline-cfg] Detected command-line request for msvc: toolset=
"msvc"
notice: [cmdline-cfg] toolset msvc not previously configured;
configuring now
notice: msvc-8.0 detected, command: 'C:\Program Files\Microsoft Visual
Studio 8\VC\bin\cl.exe'
msvc: condition: '<toolset>msvc-8.0/<architecture>/<address-model>',
msvc: condition: '<toolset>msvc-8.0/<architecture>/<address-model>32',
msvc: condition: '<toolset>msvc-8.0/<architecture>x86/<address-model>',
msvc: condition:
'<toolset>msvc-8.0/<architecture>x86/<address-model>32', command: 'call
"C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul
'
msvc: condition: '<toolset>msvc-8.0/<architecture>/<address-model>64',
msvc: condition:
'<toolset>msvc-8.0/<architecture>x86/<address-model>64', command: 'call
"C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86_amd64 >nul
'
msvc: condition:
'<toolset>msvc-8.0/<architecture>ia64/<address-model>', msvc:
condition: '<toolset>msvc-8.0/<architecture>ia64/<address-model>64',
command: 'call "C:\Program Files\Microsoft Visual Studio
8\VC\vcvarsall.bat" x86_iPF >nul
'
notice: iostreams: not using zlib compression
notice: iostreams: not using zlib compression
notice: iostreams: not using bzip2 compression
notice: iostreams: not using bzip2 compression
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...found 1150 targets...
...using 1 temp target...
...updating 2 targets...
...using <pbin\msvc-8.0\debug\threading-multi>extending.pyd...
capture-output bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext
>>>>> MISSING DLL DIALOG ENCOUNTERED HERE<<<<<<<<
====== BEGIN OUTPUT ======
Trying:
from extending import *
Expecting nothing
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 6, in test_extending
Failed example:
from extending import *
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[0]>", line 1, in <module>
from extending import *
ImportError: DLL load failed: The specified module could not be found.
Trying:
hi = hello('California')
Expecting nothing
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 7, in test_extending
Failed example:
hi = hello('California')
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[1]>", line 1, in <module>
hi = hello('California')
NameError: name 'hello' is not defined
Trying:
hi.greet()
Expecting:
'Hello from California'
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 8, in test_extending
Failed example:
hi.greet()
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[2]>", line 1, in <module>
hi.greet()
NameError: name 'hi' is not defined
Trying:
invite(hi)
Expecting:
'Hello from California! Please come soon!'
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 10, in test_extending
Failed example:
invite(hi)
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[3]>", line 1, in <module>
invite(hi)
NameError: name 'invite' is not defined
Trying:
hi.invite()
Expecting:
'Hello from California! Please come soon!'
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 12, in test_extending
Failed example:
hi.invite()
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[4]>", line 1, in <module>
hi.invite()
NameError: name 'hi' is not defined
Trying:
class wordy(hello):
def greet(self):
return hello.greet(self) + ', where the weather is fine'
Expecting nothing
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 15, in test_extending
Failed example:
class wordy(hello):
def greet(self):
return hello.greet(self) + ', where the weather is fine'
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[5]>", line 1, in <module>
class wordy(hello):
NameError: name 'hello' is not defined
Trying:
hi2 = wordy('Florida')
Expecting nothing
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 19, in test_extending
Failed example:
hi2 = wordy('Florida')
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[6]>", line 1, in <module>
hi2 = wordy('Florida')
NameError: name 'wordy' is not defined
Trying:
hi2.greet()
Expecting:
'Hello from Florida, where the weather is fine'
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 20, in test_extending
Failed example:
hi2.greet()
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[7]>", line 1, in <module>
hi2.greet()
NameError: name 'hi2' is not defined
Trying:
invite(hi2)
Expecting:
'Hello from Florida! Please come soon!'
**********************************************************************
File
"C:\Work\boost_1_34_1\libs\python\example\quickstart\test_extending.py",
line 22, in test_extending
Failed example:
invite(hi2)
Exception raised:
Traceback (most recent call last):
File "C:\Work\Python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[8]>", line 1, in <module>
invite(hi2)
NameError: name 'invite' is not defined
1 items had no tests:
test_extending.run
**********************************************************************
1 items had failures:
9 of 9 in test_extending
9 tests in 2 items.
0 passed and 9 failed.
***Test Failed*** 9 failures.
EXIT STATUS: 9
====== END OUTPUT ======
set
Path=C:\Work\Python25;C:\Work\Python25\libs;C:\Work\boost_1_34_1\bin.v2\libs\python\build\msvc-8.0\debug\threading-multi;C:\Work\boost_1_34_1\libs\python\example\quickstart\bin\msvc-8.0\debug\threading-multi;%Path%
set PYTHONPATH=bin\msvc-8.0\debug\threading-multi
C:\Work\Python25\python "test_extending.py" >
"bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext.output"
2>&1
set status=%ERRORLEVEL%
echo. >>
"bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext.output"
echo EXIT STATUS: %status% >>
"bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext.output"
if %status% EQU 0 (
copy
"bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext.output"
"bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext"
)
set verbose=1
if %status% NEQ 0 (
set verbose=1
)
if %verbose% EQU 1 (
echo ====== BEGIN OUTPUT ======
type
"bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext.output"
echo ====== END OUTPUT ======
)
exit %status%
...failed capture-output
bin\test_ext.test\msvc-8.0\debug\threading-multi\test_ext...
...failed updating 1 target...
...skipped 1 target...
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