Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building iostreams with zlib with MSVC
From: James Gregory (james.jrg_at_[hidden])
Date: 2012-01-25 04:30:13

On 25 January 2012 08:40, Norbert Wenzel <norbert.wenzel.lists_at_[hidden]> wrote:
> 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
> @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

If I follow KTC's advice (set -sZLIB_BINARY=zdll) then the build
process completes without any errors, however:

1. no libboost_zlib-vc100... is produced. There is a zlib.obj, and
maybe the zlib.obj has been linked with libboost_iostreams-vc100...
Possibly this is the intended behaviour, but when I build the program
I need boost for, it expects to find a libboost_zlib-vc100...

2. According to,
ZLIB_BINARY=zdll is already set by default on Windows, so I think the
documentation may be wrong

3. I gave up and installed some prebuilt binaries from boostpro

I also tried setting NO_ZLIB=0, but that didn't seem to make any difference.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at