|
Boost-Build : |
Subject: Re: [Boost-build] Building iostreams with zlib with MSVC
From: Norbert Wenzel (norbert.wenzel.lists_at_[hidden])
Date: 2012-01-25 03:40:35
On 24.01.2012 14:09, James Gregory wrote:
> I previously built iostreams successfully with no error messages, but
> now I want to build it with zlib support. So I downloaded a zlib
> binary distribution from the zlib homepage, and tried building
> iostreams with:
>
> b2.exe -s ZLIB_INCLUDE=C:\Users\james\dev\cpplib\zlib\include -s
> ZLIB_LIBPATH=C:\Users\james\dev\cpplib\zlib\lib --with-iostreams stage
> [...]
> Can anyone point me in the right direction?
I'm using a .bat to build each boost release for some years now and
these builds include bzip2 and zlib. The script looks something like this.
@REM ZLIB files
set NO_ZLIB=0
set ZLIB_INCLUDE=H:\zlib-1.2.5\
set ZLIB_SOURCE=H:\zlib-1.2.5\
@REM explicitly enable compression
set NO_COMPRESSION=0
@REM the actual call to boost build
b2 -j 4 --toolset=msvc-10.0 --build-type=complete stage
I don't know if this is the best solution but it works for me, building
iostreams including zlib without any troubles.
Hope that helps,
Norbert
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