How to increase support with zlib support?

I am trying to create Boost C ++ libraries version 1.65.1 on Windows with zlib support. I am using the zlib library from the Conan package with zlib that I created earlier. I'm trying to figure out the right steps to create a zlib-enabled boost to use them to create a Conan recipe for boost. I tried to follow the instructions of the official version of the documentation . I set the environment variables ZLIB_LIBRARY_PATH, ZLIB_NAMEand ZLIB_INCLUDEas follows:

set ZLIB_LIBRARY_PATH=C:\Users\ivan.bobev\.conan\data\zlib\1.2.11\igsoft\stable\package\63da998e3642b50bee33f4449826b2d623661505\lib
set ZLIB_NAME=zlibstat
set ZLIB_INCLUDE=C:\Users\ivan.bobev\.conan\data\zlib\1.2.11\igsoft\stable\package\63da998e3642b50bee33f4449826b2d623661505\include

and build command:

.\b2.exe -j8 --prefix="C:\work\test_builds\boost\install\x64_shared_release" --build-dir="C:\work\test_builds\boost\build\x64_shared_release" --layout=system architecture=x86 address-model=64 toolset=msvc variant=release debug-symbols=on link=shared threading=multi runtime-link=shared install

The result is:

 - zlib                     : no  (cached)

I also tried to clear the forcing of cash between runs.

After that, I tried to set environment variables directly from the b2build command :

.\b2.exe -j8 -sZLIB_LIBRARY_PATH="C:\Users\ivan.bobev\.conan\data\zlib\1.2.11\igsoft\stable\package\63da998e3642b50bee33f4449826b2d623661505\lib"-sZLIB_NAME="zlibstat" -sZLIB_INCLUDE="C:\Users\ivan.bobev\.conan\data\zlib\1.2.11\igsoft\stable\package\63da998e3642b50bee33f4449826b2d623661505\include" --prefix="C:\work\test_builds\boost\install\x64_shared_release" --build-dir="C:\work\test_builds\boost\build\x64_shared_release" --layout=system architecture=x86 address-model=64 toolset=msvc variant=release debug-symbols=on link=shared threading=multi runtime-link=shared install

The result was the same.

, project-config.jam :

using zlib : 1.2.11 : <search>C:\Users\ivan.bobev\.conan\data\zlib\1.2.11\igsoft\stable\package\63da998e3642b50bee33f4449826b2d623661505\lib <name>zlibstat <include>C:\Users\ivan.bobev\.conan\data\zlib\1.2.11\igsoft\stable\package\63da998e3642b50bee33f4449826b2d623661505\include ;

.

zlib include zlib. 3 , "../include/zlib". .

Boost zlib, Conan zlib?

+4
1

project-config.jam , Linux OSX. Windows "\" (escape char jam) "/".

Boost 1.64.0

+1

Source: https://habr.com/ru/post/1685748/


All Articles