Skip to content

[win32] [msvc] minizip-ng 4.1.0 still fails to locate zlib-ng within the installation path. #952

@Demonese

Description

@Demonese

First, I compiled and installed zlib-ng (Debug configuration):

cmake -S %cd%\zlib-ng -B %cd%\zlib-ng-build -G "Visual Studio 18 2026" -A x64 -DCMAKE_INSTALL_PREFIX=%cd%\install -DZLIB_ALIASES=OFF -DBUILD_TESTING=OFF -DWITH_GTEST=OFF

cmake --build   %cd%\zlib-ng-build --config Debug
cmake --install %cd%\zlib-ng-build --config Debug

(Omitting large amount of command line output)...

-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/zlib-ngd.lib
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/bin/zlib-ngd2.dll
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/zlibstatic-ngd.lib
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/include/zlib-ng.h
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/include/zlib_name_mangling-ng.h
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/include/zconf-ng.h
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/pkgconfig/zlib-ng.pc
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/cmake/zlib-ng/zlib-ng-targets.cmake
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/cmake/zlib-ng/zlib-ng-targets-debug.cmake
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/cmake/zlib-ng/zlib-ng-config.cmake
-- Installing: C:/Users/Admin/AppData/Local/Temp/x-ng/install/lib/cmake/zlib-ng/zlib-ng-config-version.cmake

Then, I tried to configure minizip-ng:

cmake -S %cd%\minizip-ng -B %cd%\minizip-ng-build -G "Visual Studio 18 2026" -A x64 -DCMAKE_INSTALL_PREFIX=%cd%\install -DMZ_COMPAT=OFF -DMZ_BZIP2=OFF -DMZ_LZMA=OFF -DMZ_ZSTD=OFF -DMZ_FETCH_LIBS=OFF -DMZ_ZLIB_FLAVOR=zlib-ng

-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200.
-- The C compiler identification is MSVC 19.50.35723.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Using CMake version 4.2.3
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for symlink
-- Looking for symlink - not found
-- Looking for readlink
-- Looking for readlink - not found
-- ZLIB library not found
-- Compression not supported due to missing libraries
-- Looking for BCryptGenRandom
-- Looking for BCryptGenRandom - found
-- The following features have been enabled:

 * MZ_PKCRYPT, Enables PKWARE traditional encryption
 * MZ_WZAES, Enables WinZIP AES encryption

-- The following features have been disabled:

 * MZ_COMPAT, Enables compatibility layer
 * MZ_ZLIB, Enables ZLIB compression
 * MZ_BZIP2, Enables BZIP2 compression
 * MZ_LZMA, Enables LZMA & XZ compression
 * MZ_ZSTD, Enables ZSTD compression
 * MZ_LIBCOMP, Enables Apple compression
 * MZ_FETCH_LIBS, Enables fetching third-party libraries if not found
 * MZ_FORCE_FETCH_LIBS, Enables fetching third-party libraries always
 * MZ_OPENSSL, Enables OpenSSL for encryption
 * MZ_LIBBSD, Builds with libbsd crypto random
 * MZ_ICONV, Enables iconv string encoding conversion library
 * MZ_COMPRESS_ONLY, Only support compression
 * MZ_DECOMPRESS_ONLY, Only support decompression
 * MZ_FILE32_API, Builds using posix 32-bit file api
 * MZ_BUILD_TESTS, Builds minizip test executable
 * MZ_BUILD_UNIT_TESTS, Builds minizip unit test project
 * MZ_BUILD_FUZZ_TESTS, Builds minizip fuzzer executables
 * MZ_CODE_COVERAGE, Builds with code coverage flags

-- Configuring done (8.1s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/Admin/AppData/Local/Temp/x-ng/minizip-ng-build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions