On 20/11/2017 18:21, Michael Powell via Boost-users wrote:
On Mon, Nov 20, 2017 at 12:20 PM, Michael Powell
wrote: Hello,
I am building Boost and making progress. Thus far wondering what options to provide my B2. I added the zlib include path to the include="...;/path/to/zlib;...", and now seems to be wanting the LIB path?
So far, from what I can tell in my logs, zlib.h cannot be found? This in spite of the fact I've provided the options:
zlib_h.cpp /path/to\build\boost\boost\bin.v2\standalone\ac\zlib_h.cpp(1): fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory ...failed compile-c-c++ /path/to\build\boost\boost\bin.v2\standalone\ac\msvc-14.0\debug\address-model-64\link-static\threading-multi\zlib_h.obj... ...failed updating 1 target... ...found 6 targets... ...updating 2 targets...
However, I certain I've provided that in my CMake B2 options:
set (B2_INCLUDE "${PLATFORM_SDK_PATH};${REPOS_DIR}/${ZLIB_TAG}") # B2 include: >>> C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt;/path/to/repos/zlib-1.2.11 <<<
And which the paths really are there after their own CMake custom targets. I checked, literally every step of the way.
https://github.com/ome/ome-cmake-superbuild/blob/master/packages/boost/build... -sBZIP2_BINARY=${BZIP2_BINARY} -sBZIP2_INCLUDE=${WINDOWS_INCLUDE_DIR} -sBZIP2_LIBPATH=${WINDOWS_LIB_DIR} -sZLIB_BINARY=${ZLIB_BINARY} -sZLIB_INCLUDE=${WINDOWS_INCLUDE_DIR} -sZLIB_LIBPATH=${WINDOWS_LIB_DIR} Note that when I first developed this script, the b2 options for BZip2 and ZLib were broken. You'll notice that the include and lib dirs above are identical. That's because it used to break horribly if they differered; it may well still be the case. If you haven't tried building with both zlib and bzip2 installed into the same place, give it a go and see if this workaround helps. Also note https://github.com/ome/ome-cmake-superbuild/tree/master/packages/bzip2/patch... which adds a CMake build for bzip2. You might find it helpful with a current Visual Studio version. Regards, Roger