|
Boost-Build : |
From: Marcello Pietrobon (pietrom_at_[hidden])
Date: 2007-07-01 22:39:36
Hello,
first of all thank you for the work you are doing.
Also jam is done very well and so the documentation.
Now... I need help.
I lost the afternoon trying to figure out how to build
boost with msvc using stlport implementation.
I tried in many ways but I am able to buils is (for example)
libboost_thread-vc71-mt-1_34.lib
libboost_thread-vc71-mt-gd.lib
libboost_thread-vc71-mt-gd-1_34.lib
WITHOUT the letter 'p' !!
So when I compile my program ( which always worked with
boost-1.33.1 compiled with stlport 5.0.2 ) I get the error :
fatal error LNK1104: cannot open file
'libboost_thread-vc71-mt-gdp-1_34.lib'
What I used (WinXP-SP2 + Boost-1.34 + stlport 5.0.2):
I only changed: tools\build\v2\user-config.jam
BTW: the presence of tools\release\user-config.jam, i.e. with the
same name, is confusing IMO.
I guessI have to use the other user-config.
The only uncommented lines in tools\build\v2\user-config.jam are:
import toolset : using ;
using msvc : 7.1 ;
using stlport : 5.0~msvc71 :
D:/Projs/Libraries/BSD/STLPort/STLport-Active/stlport
D:/Projs/Libraries/BSD/STLPort/STLport-Active/lib
D:/Projs/Libraries/BSD/STLPort/STLport-Active/bin ;
I tried also with commenting the line: using msvc : 7.1 ; ( but
nothing seems t change )
On the command line I used the command:
bjam --with-thread --debug-configuration --stagedir=c:/boost
--toolset=msvc-7.1 stage
Is : 5.0~msvc71 : correct or should I write nothing, or 5.0.2~msvc ... ?
Anyway I tried them all with same result.
The option --debug-configuration DOES NOT SHOW in any way that boost
is using stlport
Here is the beginning of the output I get:
------------------------------------------------------------------------------------------------------------
D:\Projs\Libraries\BSD\Boost\Boost-Active>bjam --with-thread
--debug-configuration --stagedir=c:/boost --toolset=msvc-7.1 stage
notice: found boost-build.jam at
D:\Projs\Libraries\BSD\Boost\Boost-Active\boost-build.jam
notice: loading Boost.Build from
D:\Projs\Libraries\BSD\Boost\Boost-Active\tools\build\v2
notice: searching "C:\WINDOWS" "C:\Documents and Settings\Giovanni
Pietrobon" "C:\Documents and Settings\Giovanni Pietrobon"
"D:\Projs\Libraries\BSD\Boost\Boost-Active\tools/build/v2"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/kernel" "D:/P
rojs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/util"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/build"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/tools"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/new" "D:
/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/." for
"site-config.jam"
notice: loading site-config.jam from
D:\Projs\Libraries\BSD\Boost\Boost-Active\tools\build\v2\site-config.jam
notice: searching "C:\Documents and Settings\Giovanni Pietrobon"
"C:\Documents and Settings\Giovanni Pietrobon"
"D:\Projs\Libraries\BSD\Boost\Boost-Active\tools/build/v2"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/kernel"
"D:/Projs/Librarie
s/BSD/Boost/Boost-Active/tools/build/v2/util"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/build"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/tools"
"D:/Projs/Libraries/BSD/Boost/Boost-Active/tools/build/v2/new"
"D:/Projs/Librar
ies/BSD/Boost/Boost-Active/tools/build/v2/." for "user-config.jam"
notice: loading user-config.jam from
D:\Projs\Libraries\BSD\Boost\Boost-Active\tools\build\v2\user-config.jam
notice: [cmdline-cfg] Detected command-line request for msvc-7.1:
toolset= "msvc" version= "7.1"
notice: [cmdline-cfg] toolset msvc-7.1 not previously configured;
configuring now
notice: msvc-8.0 detected, command: 'C:\Program Files\Microsoft Visual
Studio 8\VC\bin\cl.exe'
notice: msvc-7.1 detected, command: 'C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\bin\cl.exe'
notice: msvc-6.0 detected, command: 'C:\Program Files\Microsoft Visual
Studio\VC98\Bin\CL.EXE'
msvc: condition: '<toolset>msvc-7.1/<architecture>/<address-model>',
msvc: condition: '<toolset>msvc-7.1/<architecture>/<address-model>32',
msvc: condition: '<toolset>msvc-7.1/<architecture>x86/<address-model>',
msvc: condition: '<toolset>msvc-7.1/<arc
hitecture>x86/<address-model>32', command: 'call "C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul
'
notice: [cmdline-cfg] adding toolset=msvc-7.1 to build request.
...patience...
...found 423 targets...
...updating 111 targets...
MkDir1 bin.v2
MkDir1 bin.v2\libs
.....
msvc.link.dll
bin.v2\libs\thread\build\msvc-7.1\debug\threading-multi\boost_thread-vc71-mt-gd-1_34.dll
bin.v2\libs\thread\build\msvc-7.1\debug\threading-multi\boost_thread-vc71-mt-gd-1_34.lib
Creating library
bin.v2\libs\thread\build\msvc-7.1\debug\threading-multi\boost_thread-vc71-mt-gd-1_34.lib
and object
bin.v2\libs\thread\build\msvc-7.1\debug\threading-multi\boost_thread-vc71-mt-gd-1_34.exp
common.copy c:\boost\lib\boost_thread-vc71-mt-gd-1_34.dll
1 file(s) copied.
common.copy c:\boost\lib\boost_thread-vc71-mt-gd-1_34.lib
1 file(s) copied.
common.hard-link c:\boost\lib\boost_thread-vc71-mt-gd.lib
Could Not Find c:\boost\lib\boost_thread-vc71-mt-gd.lib
1 file(s) copied.
MkDir1 bin.v2\libs\thread\build\msvc-7.1\release
MkDir1 bin.v2\libs\thread\build\msvc-7.1\release\threading-multi
... more output
------------------------------------------------------------------------------------------------------------
Please can you explicitly mention in the documentation how to build
boost with stlport ? I am sure many peopple would be happy about!
It is fairly well written in the user-config.jam file, but I definitely
had to look around in internet to convince myself I was doing correctly.
If I ever did.
I saw another person having the same problem, but he used '\'
instead than '/' in the path, which is not my case.
Any idea ?
Thanks for any answer! I am badly stuck without the 1.34 version of
boost!
Marcello
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