Boost logo

Boost-Build :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2007-06-14 04:49:57


graham.walsh_at_[hidden] wrote:
> Hi,
>
> I've downloaded and built boost 1.34. I now need
> 'libboost_zlib-vc80-mt-gd-1_34.lib' (I'm on visual studio 2005 as the
> name
> suggest).
>
> The problem I'm facing is that boost_zlib-vc80-mt-gd-1_34.lib is
> correctly
> built however I don't know how to get the
> 'libboost_zlib-vc80-mt-gd-1_34.lib generated.
>
>
>> From within the iostreams/build directory I run the following
>> command;
>
>
> C:\boost134\boost_1_34_0\libs\iostreams\build>C:\boost134\boost_1_34_0\bjam
> --to
> olset=msvc -sVC80_ROOT="C:\Program Files\Microsoft Visual Studio
> 8\VC" "-sTOOL
> S=vc-8_0" -sZLIB_INCLUDE=c:\boost134\boost_1_34_0\zlib
> -sZLIB_SOURCE=c:\boost13
> 4\boost_1_34_0\zlib --with-iostreams threading=multi --layout=system
> ....patience...
> ....found 540 targets...
>
>
> this generates the boost_zlib-vc80-mt-gd-1_34.lib for me but not the
> 'libboost_zlib-vc80-mt-gd-1_34.lib'.

The boost_zlib_<tags> is the import library for the DLL. The
libboost_zlib_<tags> refers to the statically built zlib library. Try adding
"link=static" (less the quotation marks) to the command-line if you want to
build from the iostreams' build directory.

BTW - I don't think you need the "-sTOOLS" and "-sVC80_ROOT" arguments. At
least the TOOLS argument is for BBv1 only. Try "toolset=msvc-8.0" instead
from the VS2005 command prompt.

>
> I've tried running the above command with stage however that fails
> systematically with;
>
> C:\boost134\boost_1_34_0\libs\iostreams\build>C:\boost134\boost_1_34_0\bjam
> --to
> olset=msvc -sVC80_ROOT="C:\Program Files\Microsoft Visual Studio
> 8\VC" "-sTOOL
> S=vc-8_0" -sZLIB_INCLUDE=c:\boost134\boost_1_34_0\zlib
> -sZLIB_SOURCE=c:\boost13
> 4\boost_1_34_0\zlib --with-iostreams threading=multi --layout=system
> stage

IIRC the stage target can only be used from the Boost root directory. Try
changing directory to C:\boost134\boost_1_34_0 and exec:

<path/to/>bjam toolset=msvc-8.0 threading=multi
link=static --with-iostreams -sZLIB_SOURCE=<whatever> stage

HTH / Johan


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