[package] zlib-ng/2.2.2: Support for WindowsStore
variant in zlib-ng
Conan recipe
#26358
Labels
bug
Something isn't working
Description
I am trying to build
zlib-ng
using the official Conan recipe with thezlib_compat=True
option set forarch=armv8
andos=WindowsStore
. However, it seems the recipe does not account for theWindowsStore
variant when setting the library name.Could you please confirm if this is a known issue or suggest any workarounds for building in this configuration?
Thank you!
Package and Environment Details
Conan profile
Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows
Host profile (profile_hololens):
[settings]
arch=armv8
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.version=193
os=WindowsStore
os.version=10.0
Steps to reproduce
conan create . --version=2.2.2 -o zlib-ng/*:zlib_compat=True --profile:host=profile_hololens --profile:build=default --build=missing
Logs
Click to expand log
======== Exporting recipe to the cache ========
zlib-ng/2.2.2: Exporting package recipe: c:\dev\conan-center-index\recipes\zlib-ng\all\conanfile.py
zlib-ng/2.2.2: exports: File 'conandata.yml' found. Exporting it...
zlib-ng/2.2.2: Copied 1 '.yml' file: conandata.yml
zlib-ng/2.2.2: Copied 1 '.py' file: conanfile.py
zlib-ng/2.2.2: Exported to cache folder: C:\Users\User.conan2\p\zlib-6d482d7929fdd\e
zlib-ng/2.2.2: Exported: zlib-ng/2.2.2#2b4e786aec60d3cabe47a64034759614 (2025-01-11 11:36:58 UTC)
======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=WindowsStore
os.version=10.0
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows
======== Computing dependency graph ========
Graph root
cli
Requirements
zlib-ng/2.2.2#2b4e786aec60d3cabe47a64034759614 - Cache
======== Computing necessary packages ========
Requirements
zlib-ng/2.2.2#2b4e786aec60d3cabe47a64034759614:9eabe9e260a7ae60702d7f63db6d818147ca4121 - Build
======== Installing packages ========
zlib-ng/2.2.2: Calling source() in C:\Users\User.conan2\p\zlib-6d482d7929fdd\s\src
zlib-ng/2.2.2: Unzipping 2.2.2.tar.gz to .
-------- Installing package zlib-ng/2.2.2 (1 of 1) --------
zlib-ng/2.2.2: Building from source
zlib-ng/2.2.2: Package zlib-ng/2.2.2:9eabe9e260a7ae60702d7f63db6d818147ca4121
zlib-ng/2.2.2: Copying sources to build folder
zlib-ng/2.2.2: Building your package in C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b
zlib-ng/2.2.2: Calling generate()
zlib-ng/2.2.2: Generators folder: C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build\generators
zlib-ng/2.2.2: CMakeToolchain generated: conan_toolchain.cmake
zlib-ng/2.2.2: CMakeToolchain generated: C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build\generators\CMakePresets.json
zlib-ng/2.2.2: CMakeToolchain generated: C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\src\CMakeUserPresets.json
zlib-ng/2.2.2: Generating aggregated env files
zlib-ng/2.2.2: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
zlib-ng/2.2.2: Calling build()
zlib-ng/2.2.2: Running CMake.configure()
zlib-ng/2.2.2: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/src"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- Using CMake version 3.31.2
-- ZLIB_HEADER_VERSION: 1.3.1
-- ZLIBNG_HEADER_VERSION: 2.2.2
-- Using Conan toolchain: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/build/generators/conan_toolchain.cmake
-- The C compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Arch detected: 'x86_64'
-- Basearch of 'x86_64' has been detected as: 'x86'
-- Using CMake toolchain: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/build/generators/conan_toolchain.cmake
-- Looking for arm_acle.h
-- Looking for arm_acle.h - not found
-- Looking for sys/auxv.h
-- Looking for sys/auxv.h - not found
-- Looking for sys/sdt.h
-- Looking for sys/sdt.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for linux/auxvec.h
-- Looking for linux/auxvec.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Check size of _off64_t
-- Check size of _off64_t - failed
-- Check size of __off64_t
-- Check size of __off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for posix_memalign
-- Looking for posix_memalign - not found
-- Looking for aligned_alloc
-- Looking for aligned_alloc - not found
-- Performing Test HAVE_NO_INTERPOSITION
-- Performing Test HAVE_NO_INTERPOSITION - Failed
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN - Failed
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL
-- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL - Failed
-- Performing Test HAVE_ATTRIBUTE_ALIGNED
-- Performing Test HAVE_ATTRIBUTE_ALIGNED - Failed
-- Performing Test HAVE_BUILTIN_ASSUME_ALIGNED
-- Performing Test HAVE_BUILTIN_ASSUME_ALIGNED - Success
-- Performing Test HAVE_BUILTIN_CTZ
-- Performing Test HAVE_BUILTIN_CTZ - Failed
-- Performing Test HAVE_BUILTIN_CTZLL
-- Performing Test HAVE_BUILTIN_CTZLL - Failed
-- Performing Test HAVE_PTRDIFF_T
-- Performing Test HAVE_PTRDIFF_T - Success
-- Performing Test HAVE_XSAVE_INTRIN
-- Performing Test HAVE_XSAVE_INTRIN - Success
-- Performing Test HAVE_SSE2_INTRIN
-- Performing Test HAVE_SSE2_INTRIN - Success
-- Performing Test HAVE_SSSE3_INTRIN
-- Performing Test HAVE_SSSE3_INTRIN - Success
-- Performing Test HAVE_SSE42_INTRIN
-- Performing Test HAVE_SSE42_INTRIN - Success
-- Performing Test HAVE_PCLMULQDQ_INTRIN
-- Performing Test HAVE_PCLMULQDQ_INTRIN - Success
-- Performing Test HAVE_AVX2_INTRIN
-- Performing Test HAVE_AVX2_INTRIN - Success
-- Performing Test HAVE_AVX512_INTRIN
-- Performing Test HAVE_AVX512_INTRIN - Success
-- Performing Test HAVE_AVX512VNNI_INTRIN
-- Performing Test HAVE_AVX512VNNI_INTRIN - Success
-- Performing Test HAVE_VPCLMULQDQ_INTRIN
-- Performing Test HAVE_VPCLMULQDQ_INTRIN - Success
-- Architecture-specific source files: arch/x86/x86_features.c;arch/x86/chunkset_sse2.c;arch/x86/compare256_sse2.c;arch/x86/slide_hash_sse2.c;arch/x86/adler32_ssse3.c;arch/x86/chunkset_ssse3.c;arch/x86/adler32_sse42.c;arch/x86/crc32_pclmulqdq.c;arch/x86/slide_hash_avx2.c;arch/x86/chunkset_avx2.c;arch/x86/compare256_avx2.c;arch/x86/adler32_avx2.c;arch/x86/adler32_avx512.c;arch/x86/adler32_avx512_vnni.c;arch/x86/crc32_vpclmulqdq.c
-- The following features have been enabled:
-- The following features have been disabled:
-- Configuring done (44.4s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/build
zlib-ng/2.2.2: Running CMake.build()
zlib-ng/2.2.2: RUN: cmake --build "C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build" --config Release
MSBuild version 17.12.12+1cce77968 for .NET Framework
1>Checking Build System
Building Custom Rule C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/src/CMakeLists.txt
adler32_c.c
adler32_fold_c.c
chunkset_c.c
compare256_c.c
crc32_braid_c.c
crc32_fold_c.c
slide_hash_c.c
adler32.c
compress.c
crc32.c
crc32_braid_comb.c
deflate.c
deflate_fast.c
deflate_huff.c
deflate_medium.c
deflate_quick.c
deflate_rle.c
deflate_slow.c
deflate_stored.c
functable.c
infback.c
inflate.c
inftrees.c
insert_string.c
insert_string_roll.c
trees.c
uncompr.c
zutil.c
cpu_features.c
x86_features.c
chunkset_sse2.c
compare256_sse2.c
slide_hash_sse2.c
adler32_ssse3.c
chunkset_ssse3.c
adler32_sse42.c
crc32_pclmulqdq.c
gzlib.c
gzread.c
gzwrite.c
slide_hash_avx2.c
chunkset_avx2.c
compare256_avx2.c
adler32_avx2.c
adler32_avx512.c
adler32_avx512_vnni.c
crc32_vpclmulqdq.c
Creating library C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/build/Release/zlib.lib and object C:/Users/User/.conan2/p/b/zli
b-d95d55f0803f7/b/build/Release/zlib.exp
zlib.vcxproj -> C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build\Release\zlib1.dll
Building Custom Rule C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/src/CMakeLists.txt
adler32_c.c
adler32_fold_c.c
chunkset_c.c
compare256_c.c
crc32_braid_c.c
crc32_fold_c.c
slide_hash_c.c
adler32.c
compress.c
crc32.c
crc32_braid_comb.c
deflate.c
deflate_fast.c
deflate_huff.c
deflate_medium.c
deflate_quick.c
deflate_rle.c
deflate_slow.c
deflate_stored.c
functable.c
infback.c
inflate.c
inftrees.c
insert_string.c
insert_string_roll.c
trees.c
uncompr.c
zutil.c
cpu_features.c
x86_features.c
chunkset_sse2.c
compare256_sse2.c
slide_hash_sse2.c
adler32_ssse3.c
chunkset_ssse3.c
adler32_sse42.c
crc32_pclmulqdq.c
gzlib.c
gzread.c
gzwrite.c
slide_hash_avx2.c
chunkset_avx2.c
compare256_avx2.c
adler32_avx2.c
adler32_avx512.c
adler32_avx512_vnni.c
crc32_vpclmulqdq.c
zlibstatic.vcxproj -> C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build\Release\zlibstatic.lib
Building Custom Rule C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/b/src/CMakeLists.txt
zlib-ng/2.2.2: Package '9eabe9e260a7ae60702d7f63db6d818147ca4121' built
zlib-ng/2.2.2: Build folder C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build
zlib-ng/2.2.2: Generating the package
zlib-ng/2.2.2: Packaging in folder C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\p
zlib-ng/2.2.2: Calling package()
zlib-ng/2.2.2: Running CMake.install()
zlib-ng/2.2.2: RUN: cmake --install "C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\b\build" --config Release --prefix "C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p"
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/zlib.lib
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/bin/zlib1.dll
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/zlibstatic.lib
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/include/zlib.h
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/include/zlib_name_mangling.h
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/include/zconf.h
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/pkgconfig/zlib.pc
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/cmake/ZLIB/ZLIB.cmake
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/cmake/ZLIB/ZLIB-release.cmake
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/cmake/ZLIB/zlib-config.cmake
-- Installing: C:/Users/User/.conan2/p/b/zlib-d95d55f0803f7/p/lib/cmake/ZLIB/zlib-config-version.cmake
zlib-ng/2.2.2: package(): Packaged 1 '.dll' file: zlib1.dll
zlib-ng/2.2.2: package(): Packaged 3 '.h' files: zconf.h, zlib.h, zlib_name_mangling.h
zlib-ng/2.2.2: package(): Packaged 2 '.lib' files: zlib.lib, zlibstatic.lib
zlib-ng/2.2.2: package(): Packaged 1 '.md' file: LICENSE.md
zlib-ng/2.2.2: Created package revision 185f68c6805a0692a8d6ba995553b7b2
zlib-ng/2.2.2: Package '9eabe9e260a7ae60702d7f63db6d818147ca4121' created
zlib-ng/2.2.2: Full package reference: zlib-ng/2.2.2#2b4e786aec60d3cabe47a64034759614:9eabe9e260a7ae60702d7f63db6d818147ca4121#185f68c6805a0692a8d6ba995553b7b2
zlib-ng/2.2.2: Package folder C:\Users\User.conan2\p\b\zlib-d95d55f0803f7\p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: zlib-ng/2.2.2
======== Launching test_package ========
======== Computing dependency graph ========
Graph root
zlib-ng/2.2.2 (test package): c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\conanfile.py
Requirements
zlib-ng/2.2.2#2b4e786aec60d3cabe47a64034759614 - Cache
======== Computing necessary packages ========
Requirements
zlib-ng/2.2.2#2b4e786aec60d3cabe47a64034759614:9eabe9e260a7ae60702d7f63db6d818147ca4121#185f68c6805a0692a8d6ba995553b7b2 - Cache
======== Installing packages ========
zlib-ng/2.2.2: Already installed! (1 of 1)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: zlib-ng/2.2.2
======== Testing the package ========
Removing previously existing 'test_package' build folder: c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release
zlib-ng/2.2.2 (test package): Test package build: build\msvc-193-armv8-14-release
zlib-ng/2.2.2 (test package): Test package build folder: c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release
zlib-ng/2.2.2 (test package): Writing generators to c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\generators
zlib-ng/2.2.2 (test package): Generator 'CMakeDeps' calling 'generate()'
zlib-ng/2.2.2 (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(ZLIB)
target_link_libraries(... ZLIB::ZLIB)
zlib-ng/2.2.2 (test package): Generator 'VirtualRunEnv' calling 'generate()'
zlib-ng/2.2.2 (test package): Calling generate()
zlib-ng/2.2.2 (test package): Generators folder: c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\generators
zlib-ng/2.2.2 (test package): CMakeToolchain generated: conan_toolchain.cmake
zlib-ng/2.2.2 (test package): CMakeToolchain generated: c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\build\msvc-193-armv8-14-release\generators\CMakePresets.json
zlib-ng/2.2.2 (test package): CMakeToolchain generated: c:\dev\conan-center-index\recipes\zlib-ng\all\test_package\CMakeUserPresets.json
zlib-ng/2.2.2 (test package): Generating aggregated env files
zlib-ng/2.2.2 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']
======== Testing the package: Building ========
zlib-ng/2.2.2 (test package): Calling build()
zlib-ng/2.2.2 (test package): Running CMake.configure()
zlib-ng/2.2.2 (test package): RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="c:/dev/conan-center-index/recipes/zlib-ng/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "c:/dev/conan-center-index/recipes/zlib-ng/all/test_package"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- Using Conan toolchain: C:/dev/conan-center-index/recipes/zlib-ng/all/test_package/build/msvc-193-armv8-14-release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 14 with extensions OFF
-- The C compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Conan: Target declared 'ZLIB::ZLIB'
CMake Error at build/msvc-193-armv8-14-release/generators/cmakedeps_macros.cmake:67 (message):
Library 'z' not found in package. If 'z' is a system library, declare it
with 'cpp_info.system_libs' property
Call Stack (most recent call first):
build/msvc-193-armv8-14-release/generators/ZLIB-Target-release.cmake:23 (conan_package_library_targets)
build/msvc-193-armv8-14-release/generators/ZLIBTargets.cmake:24 (include)
build/msvc-193-armv8-14-release/generators/ZLIBConfig.cmake:16 (include)
CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
ERROR: zlib-ng/2.2.2 (test package): Error in build() method, line 25
cmake.configure()
ConanException: Error 1 while executing
The text was updated successfully, but these errors were encountered: