PS C:\WINDOWS\system32> vcpkg install opencv:x86-windows
Computing installation plan...
The following packages will be built and installed:
* libpng[core]:x86-windows
* libwebp[core,nearlossless,simd,unicode]:x86-windows
opencv[core,dnn,jpeg,opengl,png,tiff,webp]:x86-windows
* opencv4[core,dnn,jpeg,opengl,png,tiff,webp]:x86-windows
* opengl[core]:x86-windows
* protobuf[core]:x86-windows
* tiff[core]:x86-windows
* zlib[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
Starting package 1/8: zlib:x86-windows
Building package zlib[core]:x86-windows...
Could not locate cached archive: C:\Users\amurault\AppData\Local\vcpkg\archives\4a\4ae4fb9a7c3e0874a2279922cbd01f8076b08fd1.zip
-- Using cached C:/Users/amurault/documents/vcpkg/downloads/zlib1211.tar.gz
-- Cleaning sources at C:/Users/amurault/documents/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/amurault/documents/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Using source at C:/Users/amurault/documents/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Fixing pkgconfig - release
-- Checking file: C:/Users/amurault/documents/vcpkg/packages/zlib_x86-windows/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig - debug
-- Checking file: C:/Users/amurault/documents/vcpkg/packages/zlib_x86-windows/debug/lib/pkgconfig/zlib.pc
-- CHECK_LIB_zlibd_DEBUG:CHECK_LIB_zlibd_DEBUG-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:239 (message):
Library "zlibd" was not found! If it is a system library use the
SYSTEM_LIBRARIES parameter for the vcpkg_fixup_pkgconfig call! Otherwise,
correct the *.pc file
Call Stack (most recent call first):
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:348 (vcpkg_fixup_pkgconfig_check_files)
ports/zlib/portfile.cmake:46 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:79 (include)
Error: Building package zlib:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: zlib:x86-windows
Vcpkg version: 2020.06.15-nohash
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install opencv:x86-windowsFailure logs
Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.