Opened 5 years ago

Last modified 5 years ago

#13267 new Bugs

b2 doesn't recognize ZLIB options other than ZLIB_SOURCE

Reported by: Shintaro Sakahara <shintaro-sakahara@…> Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.65.0 Severity: Problem
Keywords: Cc:

Description

Building Boost 1.65.1 on Windows with msvc-12.0.

b2 doesn't detect zlib with the command line below:

b2 toolset=msvc-12.0 --with-iostreams -sZLIB_INCLUDE=D:/Libraries/zlib-1.2.11/stage/x86/include -sZLIB_LIBRARY_PATH=D:/Libraries/zlib-1.2.11/stage/x86/lib -sZLIB_NAME=zlib variant=debug link=shared --stagedir=stage/x86 stage

and the following line is emitted:

    - zlib                     : no  (cached)

b2 detects zlib only when ZLIB_SOURCE is specified. However, since I built zlib with CMake and INSTALLed on different directory, zconf.h doesn't exist on the directory under the source directory from which Boost is about to include the file from. A workaround is to copy zconf.h from the actual include directory into the source directory when I run b2 and delete it after building is finished.

Change History (3)

comment:1 by Shintaro Sakahara <shintaro-sakahara@…>, 5 years ago

Component: Noneiostreams
Owner: set to Jonathan Turkanis

comment:2 by Shintaro Sakahara <shintaro-sakahara@…>, 5 years ago

Component: iostreamsBuilding Boost

comment:3 by Shintaro Sakahara <shintaro-sakahara@…>, 5 years ago

Sorry for consecutive modifications. I forgot to put the component field first, and I couldn't find the appropriate component for this problem next.

Note: See TracTickets for help on using tickets.