Opened 5 years ago
Last modified 5 years ago
#13267 new Bugs
b2 doesn't recognize ZLIB options other than ZLIB_SOURCE
Reported by: | 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 , 5 years ago
Component: | None → iostreams |
---|---|
Owner: | set to |
comment:2 by , 5 years ago
Component: | iostreams → Building Boost |
---|
comment:3 by , 5 years ago
Note:
See TracTickets
for help on using tickets.
Sorry for consecutive modifications. I forgot to put the component field first, and I couldn't find the appropriate component for this problem next.