Building boost b2 zlib options
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? 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? After that, it is on to finding bzip? 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. Thanks! Cheers, Michael Powell
On Mon, Nov 20, 2017 at 12:20 PM, Michael Powell
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.
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?
After that, it is on to finding bzip?
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.
Thanks!
Cheers,
Michael Powell
On Mon, Nov 20, 2017 at 1:21 PM, Michael Powell
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?
All that being said, the good news is that my Boost is otherwise building. How critical is it that zlib be found? Either in source/header or in library form? Or bzip2 for that matter? Apart from the obvious, of course, whether I would be depending on those features. Thanks!
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.
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?
After that, it is on to finding bzip?
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.
Thanks!
Cheers,
Michael Powell
Michael Powell Sent: Monday, November 20, 2017 1:24 PM
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?
I use "-sBZIP2_SOURCE=/path/to/bzip2/src" "-sZLIB_SOURCE=/path/to/zlib/src" And it adds the source to the build. ---------------------------------------------------------------------- This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.
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
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
AMDG On 11/20/2017 02:56 PM, Roger Leigh via Boost-users wrote:
<snip> 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.
It's fixed as of 1.64. In Christ, Steven Watanabe
On Mon, Nov 20, 2017 at 4:56 PM, Roger Leigh via Boost-users
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}
Just circling around to my messages. These are all B2 options, correct?
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
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
AMDG On 11/20/2017 03:34 PM, Michael Powell via Boost-users wrote:
On Mon, Nov 20, 2017 at 4:56 PM, Roger Leigh via Boost-users
wrote: -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}
Just circling around to my messages. These are all B2 options, correct?
Yes. You can also set them as environmental variables instead of using -s. In Christ, Steven Watanabe
On Mon, Nov 20, 2017 at 5:38 PM, Steven Watanabe via Boost-users
AMDG
On 11/20/2017 03:34 PM, Michael Powell via Boost-users wrote:
On Mon, Nov 20, 2017 at 4:56 PM, Roger Leigh via Boost-users
wrote: -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}
Just circling around to my messages. These are all B2 options, correct?
Yes. You can also set them as environmental variables instead of using -s.
Excellent thank you. Just appreciating the irony; one build environment (CMake) informing another build environment (B2) about a third build environment (zlib, bzip2)... :)
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Michael Powell
-
Nelson, Erik - 2
-
Roger Leigh
-
Steven Watanabe