2 windows build fails to find zlib,bzip2,zstd,xz(lzma)

boost wont detect my cli-args or use the user-config.jam whats the problem here? i see bzip is detected finally, is that because it is bz2.lib and not bz2d.lib? zlib is producing zlibd.lib shouldnt that still work, or do i need the cmake cli-arg to specify debug, i thought it would generate right if i use debug build in msvc. D:\Lib\zlib-1.3.1>dir .\bld\Debug Volume in drive D is đ Volume Serial Number is 2E57-A369 Directory of D:\Lib\zlib-1.3.1\bld\Debug 08/26/2025 07:22 AM <DIR> . 08/26/2025 07:22 AM <DIR> .. 08/26/2025 07:22 AM 69,120 example.exe 08/26/2025 07:22 AM 954,368 example.pdb 08/26/2025 07:22 AM 61,440 minigzip.exe 08/26/2025 07:22 AM 978,944 minigzip.pdb 08/26/2025 07:22 AM 210,944 zlibd.dll 08/26/2025 07:22 AM 9,699 zlibd.exp 08/26/2025 07:22 AM 16,746 zlibd.lib 08/26/2025 07:22 AM 1,028,096 zlibd.pdb 08/26/2025 07:22 AM 321,764 zlibstaticd.lib 08/26/2025 07:22 AM 94,208 zlibstaticd.pdb 10 File(s) 3,745,329 bytes 2 Dir(s) 746,667,651,072 bytes free b2.exe --toolset=msvc-14.3 --build-type=complete variant=debug address-model=64 threading=multi link=shared runtime-link=shared -j 14 -sZLIB_INCLUDE="D:/Lib/zlib-1.3.1" -sZLIB_LIBPATH="D:/Lib/zlib-1.3.1/Debug" -sBZIP2_INCLUDE="D:/Lib/__staging__/bzip2_1.0.8" -sBZIP2_LIBPATH="D:/Lib/__staging__/bzip2_1.0.8/bld/Debug" -sLZMA_INCLUDE="D:/Lib/__staging__/xz_5.8.1/src/liblzma" -sLZMA_LIBPATH="D:/Lib/__staging__/xz_5.8.1/bld/Debug" -sZSTD_INCLUDE="D:/Lib/__staging__/zstd_0.4.2/lib" -sZSTD_LIBPATH="D:/Lib/__staging__/zstd_0.4.2/bld/lib/Debug" -sICU_PATH="D:/Lib/icu" -sICU_LINK_LIB_PATH="D:/Lib/icu/lib64" ... - has_icu builds : no [2] - zlib : no [2] - bzip2 : yes [2] - lzma : no [2] - zstd : yes [2] - sfinae_expr : yes [2] using zlib : 1.2.13 : # command <include> D:/Lib/zlib-1.3.1 <library-path> D:/Lib/zlib-1.3.1/bld/Debug ; using bzip2 : 1.0.8 : # command <include> D:/Lib/__staging__/bzip2_1.0.8 <library-path> D:/Lib/__staging__/bzip2_1.0.8/bld/Debug ; using lzma : 5.4.3 : # command <include> D:/Lib/__staging__/xz_5.8.1/src/liblzma/lzma <library-path> D:/Lib/__staging__/xz_5.8.1/bld/Debug ; using zstd : 1.5.5 : # command <include> D:/Lib/__staging__/zstd_0.4.2/lib <library-path>D:/Lib/__staging__/zstd_0.4.2/bld/lib/Debug ;

вт, 26 авг. 2025 г. в 20:56, Michael Murphy via Boost-users <boost-users@lists.boost.org>:
boost wont detect my cli-args or use the user-config.jam whats the problem here? ... using zlib : 1.2.13 : # command <include> D:/Lib/zlib-1.3.1 <library-path> D:/Lib/zlib-1.3.1/bld/Debug ;
using bzip2 : 1.0.8 : # command <include> D:/Lib/__staging__/bzip2_1.0.8 <library-path> D:/Lib/__staging__/bzip2_1.0.8/bld/Debug ;
using lzma : 5.4.3 : # command <include> D:/Lib/__staging__/xz_5.8.1/src/liblzma/lzma <library-path> D:/Lib/__staging__/xz_5.8.1/bld/Debug ;
using zstd : 1.5.5 : # command <include> D:/Lib/__staging__/zstd_0.4.2/lib <library-path>D:/Lib/__staging__/zstd_0.4.2/bld/lib/Debug ;
The option for binary directory is <search> not <library-path>. Also, it looks like you have spaces between <include> and its values. Don't do that, it is effectively <include>"".
-sZLIB_INCLUDE="D:/Lib/zlib-1.3.1" -sZLIB_LIBPATH="D:/Lib/zlib-1.3.1/Debug" -sBZIP2_INCLUDE="D:/Lib/__staging__/bzip2_1.0.8" -sBZIP2_LIBPATH="D:/Lib/__staging__/bzip2_1.0.8/bld/Debug" -sLZMA_INCLUDE="D:/Lib/__staging__/xz_5.8.1/src/liblzma" -sLZMA_LIBPATH="D:/Lib/__staging__/xz_5.8.1/bld/Debug" -sZSTD_INCLUDE="D:/Lib/__staging__/zstd_0.4.2/lib" -sZSTD_LIBPATH="D:/Lib/__staging__/zstd_0.4.2/bld/lib/Debug" -sICU_PATH="D:/Lib/icu" -sICU_LINK_LIB_PATH="D:/Lib/icu/lib64"
These variables are only used when you don't provide any values in your configuration (and you do provide values, even if the values are empty strings). Also, these should be environment variables. I'm not sure setting them via `-s` should work.
participants (2)
-
Michael Murphy
-
Дмитрий Архипов