AMDG On 11/20/2017 11:21 AM, 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?
If you're passing this on the b2 command line, it won't work. The include feature doesn't accept a semicolon separated path. You need to give a separate include=xxx option for each 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 <<<
I have no idea what B2_INCLUDE is.
And which the paths really are there after their own CMake custom targets. I checked, literally every step of the way.
LINK : fatal error LNK1181: cannot open input file 'z.lib' LINK : fatal error LNK1181: cannot open input file 'zlib.lib' LINK : fatal error LNK1181: cannot open input file 'zll.lib' LINK : fatal error LNK1181: cannot open input file 'zdll.lib'
Which option is that for B2?
You can set the environmental variables ZLIB_INCLUDE / ZLIB_LIBRARY_PATH. For more options see http://www.boost.org/build/doc/html/bbv2/reference/tools.html#bbv2.reference...
After that, it is on to finding bzip?
zlib and bzip2 are essentially similar.
fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory
Is there a source download similar to that of zlib?
I think I'm pretty close but for a handful of obscurish third party dependencies.
zlib and bzip2 are only used to enable the corresponding filters in Boost.IOStreams. If you aren't using these, you can safely ignore them. In Christ, Steven Watanabe