Closed olm-marc closed 1 year ago
actually it can be reproduce much simpler, usign this command line ./vcpkg install --host-triplet=x64-windows-static --triplet=x64-windows-static
with this vcpkg.json in the vcpkg root folder { "dependencies": [{"name":"opencv4"}], "overrides":[{ "name": "opencv4", "version":"4.5.5"
}],
"builtin-baseline": "501db0f17ef6df184fcdbfbe0f87cde2313b6ab1"
}
error: The following files are already installed in C:/tmp/vcpkg/vcpkg/vcpkg_installed/x64-windows-static and are in conflict with opencv4:x64-windows-static Installed by libwebp:x64-windows-static lib/libwebp.lib
Please ensure you're using the latest port files with git pull
and vcpkg update
.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[opencv4]+Build+error
Include '[opencv4] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895
vcpkg-scripts version: d4d39d71b 2023-05-15 (13 hours ago)
with opencv 4.7.0, no errors.
@olm-marc, Thanks for posting this issue, Do you need a specific opencv4 version?
Hello. thank you for the answer. I work for a movie company. We need to guarantee when compile a tool that it would deliver the same output pixel wise on the screen. So we cannot afford any discrepancy in the library version when recompiling the tool without changing our tool version. there is some tools that we compiled using opencv 4.5.5, and that s why i m trying to use the 4.5.5 version. Also i need to use the static version of the library for deployment reasons.
This issue could be reproduced with vcpkg 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895 and VS2022 17.5.4:
error: The following files are already installed in F:/test/vcpkg/vcpkg_installed/x64-windows-static and are in conflict with opencv4:x64-windows-static
Installed by libwebp:x64-windows-static
lib/libwebp.lib
Stored binaries in 1 destinations.
@olm-marc, I tried to clone a vcpkg again and the installation was successful. Could you try again?
PS F:\test\vcpkg> ./vcpkg install --host-triplet=x64-windows-static
warning: Starting with the September 2023 release, the default triplet for vcpkg libraries will change from x86-windows to the detected host triplet (x64-windows-static). To resolve this message, add --triplet x86-windows to keep the same behavior.
Detecting compiler hash for triplet x64-windows-static...
Detecting compiler hash for triplet x86-windows...
The following packages will be removed:
libjpeg-turbo:x64-windows-static
liblzma:x64-windows-static
tiff:x64-windows-static
vcpkg-cmake:x64-windows
vcpkg-cmake-config:x64-windows
zlib:x64-windows-static
The following packages will be built and installed:
* libjpeg-turbo[core]:x86-windows -> 2.1.5.1 -- F:\test\vcpkg\buildtrees\versioning_\versions\libjpeg-turbo\2b3b3fe0c258463586c0e421a2665ca1d2df9b4d
* liblzma[core]:x86-windows -> 5.4.1#1 -- F:\test\vcpkg\buildtrees\versioning_\versions\liblzma\9a3ebbf75e1c3adb76d7e71717c1f03bb291036a
* libpng[core]:x86-windows -> 1.6.39#1 -- F:\test\vcpkg\buildtrees\versioning_\versions\libpng\af144fe56e6e4c08cd8089d2e1dd46bae60a5062
* libwebp[core,libwebpmux,nearlossless,simd,unicode]:x86-windows -> 1.3.0 -- F:\test\vcpkg\buildtrees\versioning_\versions\libwebp\d11b6a22e2acdba95c761dd4045cd8d66095f42d
opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x86-windows -> 4.5.5 -- F:\test\vcpkg\buildtrees\versioning_\versions\opencv4\afed148d21295bf99e8ac657fdb808ed82467871
* protobuf[core]:x64-windows-static -> 3.21.12 -- F:\test\vcpkg\buildtrees\versioning_\versions\protobuf\3b145508ba614fe26989b23f6317f15bf6467be4
* protobuf[core]:x86-windows -> 3.21.12 -- F:\test\vcpkg\buildtrees\versioning_\versions\protobuf\3b145508ba614fe26989b23f6317f15bf6467be4
* quirc[core]:x86-windows -> 1.1#3 -- F:\test\vcpkg\buildtrees\versioning_\versions\quirc\85b17d675bbbb05448d16af79d434bc5fca51f7b
* tiff[core,jpeg,lzma,zip]:x86-windows -> 4.5.0#2 -- F:\test\vcpkg\buildtrees\versioning_\versions\tiff\b96d20619404c16ef469583437a776b2e74afcef
* vcpkg-cmake[core]:x64-windows-static -> 2022-12-22 -- F:\test\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake\1913f86defd2140d0a6751be2d51952e4090efa4
* vcpkg-cmake-config[core]:x64-windows-static -> 2022-02-06#1 -- F:\test\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\8d54cc4f487d51b655abec5f9c9c3f86ca83311f
* zlib[core]:x86-windows -> 1.2.13 -- F:\test\vcpkg\buildtrees\versioning_\versions\zlib\ad5a49006f73b45b715299515f31164131b51982
Additional packages (*) will be modified to complete this operation.
Removing 1/18 tiff:x64-windows-static
Elapsed time to handle tiff:x64-windows-static: 42.2 ms
Removing 2/18 libjpeg-turbo:x64-windows-static
Elapsed time to handle libjpeg-turbo:x64-windows-static: 39.9 ms
Removing 3/18 liblzma:x64-windows-static
Elapsed time to handle liblzma:x64-windows-static: 45.5 ms
Removing 4/18 vcpkg-cmake-config:x64-windows
Elapsed time to handle vcpkg-cmake-config:x64-windows: 17.3 ms
Removing 5/18 zlib:x64-windows-static
Elapsed time to handle zlib:x64-windows-static: 25 ms
Removing 6/18 vcpkg-cmake:x64-windows
Elapsed time to handle vcpkg-cmake:x64-windows: 18.8 ms
Restored 0 package(s) from C:\Users\test\AppData\Local\vcpkg\archives in 10.9 ms. Use --debug to see more details.
Installing 7/18 vcpkg-cmake-config:x64-windows-static...
Building vcpkg-cmake-config[core]:x64-windows-static...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\8d54cc4f487d51b655abec5f9c9c3f86ca83311f
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake-config_x64-windows-static/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake-config_x64-windows-static/share/vcpkg-cmake-config/vcpkg-port-config.cmake
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake-config_x64-windows-static/share/vcpkg-cmake-config/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle vcpkg-cmake-config:x64-windows-static: 205 ms
Installing 8/18 vcpkg-cmake:x64-windows-static...
Building vcpkg-cmake[core]:x64-windows-static...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake\1913f86defd2140d0a6751be2d51952e4090efa4
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake_x64-windows-static/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake_x64-windows-static/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake_x64-windows-static/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake_x64-windows-static/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: F:/test/vcpkg/packages/vcpkg-cmake_x64-windows-static/share/vcpkg-cmake/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle vcpkg-cmake:x64-windows-static: 186 ms
Installing 9/18 libwebp:x86-windows...
Building libwebp[core,libwebpmux,nearlossless,simd,unicode]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\libwebp\d11b6a22e2acdba95c761dd4045cd8d66095f42d
-- Using cached webmproject-libwebp-v1.3.0.tar.gz.
-- Cleaning sources at F:/test/vcpkg/buildtrees/libwebp/src/v1.3.0-907b664bb7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/test/vcpkg/downloads/webmproject-libwebp-v1.3.0.tar.gz
-- Applying patch 0002-cmake-config.patch
-- Applying patch 0007-fix-arm-build.patch
-- Applying patch 0008-sdl.patch
-- Applying patch 0010-fix_build.patch
-- Using source at F:/test/vcpkg/buildtrees/libwebp/src/v1.3.0-907b664bb7.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/lib/pkgconfig/libsharpyuv.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/lib/pkgconfig/libwebp.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/lib/pkgconfig/libwebpdecoder.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/lib/pkgconfig/libwebpdemux.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/lib/pkgconfig/libwebpmux.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/debug/lib/pkgconfig/libsharpyuv.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/debug/lib/pkgconfig/libwebp.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/debug/lib/pkgconfig/libwebpdecoder.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/debug/lib/pkgconfig/libwebpdemux.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libwebp_x86-windows/debug/lib/pkgconfig/libwebpmux.pc
-- Installing: F:/test/vcpkg/packages/libwebp_x86-windows/share/libwebp/usage
-- Installing: F:/test/vcpkg/packages/libwebp_x86-windows/share/libwebp/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle libwebp:x86-windows: 49 s
Installing 10/18 zlib:x86-windows...
Building zlib[core]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\zlib\ad5a49006f73b45b715299515f31164131b51982
-- Downloading https://github.com/madler/zlib/archive/v1.2.13.tar.gz -> madler-zlib-v1.2.13.tar.gz...
-- Extracting source F:/test/vcpkg/downloads/madler-zlib-v1.2.13.tar.gz
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch 0002-skip-building-examples.patch
-- Applying patch 0003-build-static-or-shared-not-both.patch
-- Applying patch 0004-android-and-mingw-fixes.patch
-- Using source at F:/test/vcpkg/buildtrees/zlib/src/v1.2.13-f30d2a168d.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing: F:/test/vcpkg/packages/zlib_x86-windows/share/zlib/vcpkg-cmake-wrapper.cmake
-- Fixing pkgconfig file: F:/test/vcpkg/packages/zlib_x86-windows/lib/pkgconfig/zlib.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/zlib_x86-windows/debug/lib/pkgconfig/zlib.pc
-- Installing: F:/test/vcpkg/packages/zlib_x86-windows/share/zlib/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle zlib:x86-windows: 9.9 s
Installing 11/18 liblzma:x86-windows...
Building liblzma[core]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\liblzma\9a3ebbf75e1c3adb76d7e71717c1f03bb291036a
-- Using cached xz-5.4.1.tar.xz.
-- Cleaning sources at F:/test/vcpkg/buildtrees/liblzma/src/f890ee5207-326fe62969.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/test/vcpkg/downloads/xz-5.4.1.tar.xz
-- Applying patch fix_config_include.patch
-- Applying patch win_output_name.patch
-- Applying patch add_support_ios.patch
-- Applying patch build-tools.patch
-- Using source at F:/test/vcpkg/buildtrees/liblzma/src/f890ee5207-326fe62969.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig file: F:/test/vcpkg/packages/liblzma_x86-windows/lib/pkgconfig/liblzma.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/liblzma_x86-windows/debug/lib/pkgconfig/liblzma.pc
-- Installing: F:/test/vcpkg/packages/liblzma_x86-windows/share/liblzma/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle liblzma:x86-windows: 31 s
Installing 12/18 libjpeg-turbo:x86-windows...
Building libjpeg-turbo[core]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\libjpeg-turbo\2b3b3fe0c258463586c0e421a2665ca1d2df9b4d
-- Using cached libjpeg-turbo-libjpeg-turbo-2.1.5.1.tar.gz.
-- Cleaning sources at F:/test/vcpkg/buildtrees/libjpeg-turbo/src/2.1.5.1-f411453282.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/test/vcpkg/downloads/libjpeg-turbo-libjpeg-turbo-2.1.5.1.tar.gz
-- Applying patch add-options-for-exes-docs-headers.patch
-- Applying patch workaround_cmake_system_processor.patch
-- Using source at F:/test/vcpkg/buildtrees/libjpeg-turbo/src/2.1.5.1-f411453282.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libjpeg-turbo_x86-windows/lib/pkgconfig/libjpeg.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libjpeg-turbo_x86-windows/lib/pkgconfig/libturbojpeg.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libjpeg-turbo_x86-windows/debug/lib/pkgconfig/libjpeg.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libjpeg-turbo_x86-windows/debug/lib/pkgconfig/libturbojpeg.pc
-- Installing: F:/test/vcpkg/packages/libjpeg-turbo_x86-windows/share/libjpeg-turbo/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle libjpeg-turbo:x86-windows: 30 s
Installing 13/18 tiff:x86-windows...
Building tiff[core,jpeg,lzma,zip]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\tiff\b96d20619404c16ef469583437a776b2e74afcef
-- Using cached libtiff-libtiff-v4.5.0.tar.gz.
-- Cleaning sources at F:/test/vcpkg/buildtrees/tiff/src/v4.5.0-22050060ce.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/test/vcpkg/downloads/libtiff-libtiff-v4.5.0.tar.gz
-- Applying patch FindCMath.patch
-- Using source at F:/test/vcpkg/buildtrees/tiff/src/v4.5.0-22050060ce.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig file: F:/test/vcpkg/packages/tiff_x86-windows/lib/pkgconfig/libtiff-4.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/tiff_x86-windows/debug/lib/pkgconfig/libtiff-4.pc
-- Installing: F:/test/vcpkg/packages/tiff_x86-windows/share/tiff/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle tiff:x86-windows: 40 s
Installing 14/18 quirc:x86-windows...
Building quirc[core]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\quirc\85b17d675bbbb05448d16af79d434bc5fca51f7b
-- Note: quirc only supports static library linkage. Building static library.
-- Downloading https://github.com/dlbeer/quirc/archive/7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz -> dlbeer-quirc-7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz...
-- Extracting source F:/test/vcpkg/downloads/dlbeer-quirc-7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz
-- Using source at F:/test/vcpkg/buildtrees/quirc/src/b114181c40-f1e71e0d5b.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing: F:/test/vcpkg/packages/quirc_x86-windows/share/quirc/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle quirc:x86-windows: 3.3 s
Installing 15/18 libpng:x86-windows...
Building libpng[core]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\libpng\af144fe56e6e4c08cd8089d2e1dd46bae60a5062
-- Downloading https://github.com/glennrp/libpng/archive/v1.6.39.tar.gz -> glennrp-libpng-v1.6.39.tar.gz...
-- Extracting source F:/test/vcpkg/downloads/glennrp-libpng-v1.6.39.tar.gz
-- Applying patch cmake.patch
-- Applying patch fix-export-targets.patch
-- Applying patch pkgconfig.patch
-- Applying patch fix-msa-support-for-mips.patch
-- Using source at F:/test/vcpkg/buildtrees/libpng/src/v1.6.39-a77eb96d39.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing: F:/test/vcpkg/packages/libpng_x86-windows/share/png/vcpkg-cmake-wrapper.cmake
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libpng_x86-windows/lib/pkgconfig/libpng16.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/libpng_x86-windows/debug/lib/pkgconfig/libpng16.pc
-- Installing: F:/test/vcpkg/packages/libpng_x86-windows/debug/lib/pkgconfig/libpng.pc
-- Installing: F:/test/vcpkg/packages/libpng_x86-windows/lib/pkgconfig/libpng.pc
-- Installing: F:/test/vcpkg/packages/libpng_x86-windows/share/libpng/usage
-- Installing: F:/test/vcpkg/packages/libpng_x86-windows/share/libpng/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle libpng:x86-windows: 13 s
Installing 16/18 protobuf:x64-windows-static...
Building protobuf[core]:x64-windows-static...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\protobuf\3b145508ba614fe26989b23f6317f15bf6467be4
-- Downloading https://github.com/protocolbuffers/protobuf/archive/v3.21.12.tar.gz -> protocolbuffers-protobuf-v3.21.12.tar.gz...
-- Extracting source F:/test/vcpkg/downloads/protocolbuffers-protobuf-v3.21.12.tar.gz
-- Applying patch fix-static-build.patch
-- Applying patch fix-default-proto-file-path.patch
-- Applying patch compile_options.patch
-- Using source at F:/test/vcpkg/buildtrees/protobuf/src/v3.21.12-fdb7676342.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x64-windows-static/lib/pkgconfig/protobuf-lite.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x64-windows-static/lib/pkgconfig/protobuf.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x64-windows-static/debug/lib/pkgconfig/protobuf-lite.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x64-windows-static/debug/lib/pkgconfig/protobuf.pc
-- Installing: F:/test/vcpkg/packages/protobuf_x64-windows-static/share/protobuf/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle protobuf:x64-windows-static: 3.2 min
Installing 17/18 protobuf:x86-windows...
Building protobuf[core]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\protobuf\3b145508ba614fe26989b23f6317f15bf6467be4
-- Using cached protocolbuffers-protobuf-v3.21.12.tar.gz.
-- Cleaning sources at F:/test/vcpkg/buildtrees/protobuf/src/v3.21.12-fdb7676342.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/test/vcpkg/downloads/protocolbuffers-protobuf-v3.21.12.tar.gz
-- Applying patch fix-static-build.patch
-- Applying patch fix-default-proto-file-path.patch
-- Applying patch compile_options.patch
-- Using source at F:/test/vcpkg/buildtrees/protobuf/src/v3.21.12-fdb7676342.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x86-windows/lib/pkgconfig/protobuf-lite.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x86-windows/lib/pkgconfig/protobuf.pc
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x86-windows/debug/lib/pkgconfig/protobuf-lite.pc
-- Fixing pkgconfig file: F:/test/vcpkg/packages/protobuf_x86-windows/debug/lib/pkgconfig/protobuf.pc
-- Installing: F:/test/vcpkg/packages/protobuf_x86-windows/share/protobuf/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle protobuf:x86-windows: 3.1 min
Installing 18/18 opencv4:x86-windows...
Building opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x86-windows...
-- Installing port from location: F:\test\vcpkg\buildtrees\versioning_\versions\opencv4\afed148d21295bf99e8ac657fdb808ed82467871
-- Downloading https://github.com/opencv/opencv/archive/4.5.5.tar.gz -> opencv-opencv-4.5.5.tar.gz...
-- Extracting source F:/test/vcpkg/downloads/opencv-opencv-4.5.5.tar.gz
-- Applying patch 0001-disable-downloading.patch
-- Applying patch 0002-install-options.patch
-- Applying patch 0003-force-package-requirements.patch
-- Applying patch 0004-fix-policy-CMP0057.patch
-- Applying patch 0005-fix-eigen.patch
-- Applying patch 0006-fix-uwp.patch
-- Applying patch 0008-devendor-quirc.patch
-- Applying patch 0009-fix-protobuf.patch
-- Applying patch 0010-fix-uwp-tiff-imgcodecs.patch
-- Applying patch 0011-remove-python2.patch
-- Applying patch 0012-fix-zlib.patch
-- Applying patch 0013-fix-opengl.patch
-- Applying patch 0014-fix-gstreamer.patch
-- Applying patch 0015-fix-freetype.patch
-- Using source at F:/test/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean
-- Downloading https://github.com/tiny-dnn/tiny-dnn/archive/v1.0.0a3.tar.gz -> opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz...
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Using cached mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/test/vcpkg/downloads/tools/msys2/5b9374e6ec2c4e17
-- Installing: F:/test/vcpkg/packages/opencv4_x86-windows/share/opencv4/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle opencv4:x86-windows: 9.4 min
Total install time: 19 min
opencv4 provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(OpenCV CONFIG REQUIRED)
# note: 10 additional targets are not displayed.
target_link_libraries(main PRIVATE opencv_ml opencv_dnn opencv_core opencv_flann)
We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.
sorry i didnt have time to try again, but i will try and let you know. thank you for the help
@olm-marc, Have you tested it locally?
Stored binaries in 1 destinations.
Please ensure you're using the latest port files with git pull
and vcpkg update
.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[opencv4]+Build+error
Include '[opencv4] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895
vcpkg-scripts version: 80ecf3249 2023-06-16 (2 days ago)
-- Running vcpkg install - failed CMake Error at C:/tmp/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (message): vcpkg install failed. See logs for more information: C:\tmp\testvcpkg\build\vcpkg-manifest-install.log Call Stack (most recent call first): build/CMakeFiles/3.26.1/CMakeSystem.cmake:6 (include) CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!
C:\tmp\vcpkg\vcpkg>
here is what i got. it seemed to start ok... but still had the error in the end.
i runned git pull and vcpkg update vcpkg upgrade. everything it up to date... but still i got the message.
C:\tmp\vcpkg\vcpkg>cmake -B c:/tmp/testvcpkg/build -S C:\tmp\testvcpkg\ -DCMAKE_TOOLCHAIN_FILE=c:/tmp/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DVCPKG_HOSTTRIPLET=x64-windows-static -- Running vcpkg install Detecting compiler hash for triplet x64-windows-static... The following packages will be built and installed: opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x64-windows-static -> 4.5.5 -- C:\tmp\vcpkg\vcpkg\buildtrees\versioning\versions\opencv4\afed148d21295bf99e8ac657fdb808ed82467871 Restored 1 package(s) from C:\Users\marc\AppData\Local\vcpkg\archives in 8.7 s. Use --debug to see more details. Installing 1/1 opencv4:x64-windows-static... error: The following files are already installed in C:/tmp/testvcpkg/build/vcpkg_installed/x64-windows-static and are in conflict with opencv4:x64-windows-static Installed by libwebp:x64-windows-static lib/libwebp.lib
Please ensure you're using the latest port files with git pull
and vcpkg update
.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[opencv4]+Build+error
Include '[opencv4] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895
vcpkg-scripts version: 80ecf3249 2023-06-16 (2 days ago)
-- Running vcpkg install - failed CMake Error at C:/tmp/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (message): vcpkg install failed. See logs for more information: C:\tmp\testvcpkg\build\vcpkg-manifest-install.log Call Stack (most recent call first): build/CMakeFiles/3.26.1/CMakeSystem.cmake:6 (include) CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!
Very strange, I tried it again locally, and it can still be installed normally, and the vcpkg used is also provided by you: vcpkg.json:
{
"dependencies": [{"name":"opencv4"}],
"overrides":[{
"name": "opencv4",
"version":"4.5.5"
}],
"builtin-baseline": "501db0f17ef6df184fcdbfbe0f87cde2313b6ab1"
}
PS F:\test\vcpkg> ./vcpkg install --host-triplet=x64-windows-static
warning: Starting with the September 2023 release, the default triplet for vcpkg libraries will change from x86-windows to the detected host triplet (x64-windows-static). To resolve this message, add --triplet x86-windows to keep the same behavior.
Detecting compiler hash for triplet x64-windows-static...
Detecting compiler hash for triplet x86-windows...
All requested packages are currently installed.
Restored 0 package(s) from C:\Users\test\AppData\Local\vcpkg\archives in 160 us. Use --debug to see more details.
Total install time: 603 us
opencv4 provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(OpenCV CONFIG REQUIRED)
# note: 10 additional targets are not displayed.
target_link_libraries(main PRIVATE opencv_ml opencv_dnn opencv_core opencv_flann)
is there anything i should do to be sure it work like yo do?
The vcpkg repo can't merge fixes for the opencv 4.5 which only exists in (git) history. But you can check the git history for relevant changes, e.g. https://github.com/microsoft/vcpkg/pull/23864/files#diff-b24f4564e20f46ee4355c28c848daeeb3a51492f70943de49f716da263b70477
i tried to do a fresh vcpkg install with latest version and still got the error: -- Using source at C:/tmp/vcpkg/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean -- Downloading https://github.com/tiny-dnn/tiny-dnn/archive/v1.0.0a3.tar.gz -> opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz... -- Found external ninja('1.10.2'). -- Configuring x64-windows-static -- Building x64-windows-static-dbg -- Building x64-windows-static-rel -- Downloading https://mirror.msys2.org/mingw/mingw32/mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst;https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/mingw32/mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/mingw32/mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/mingw32/mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/mingw32/mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst -> mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst... -- Downloading https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst -> msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst... -- Using msys root at C:/tmp/vcpkg/vcpkg/downloads/tools/msys2/6f3fa1a12ef85a6f -- Installing: C:/tmp/vcpkg/vcpkg/packages/opencv4_x64-windows-static/share/opencv4/copyright -- Performing post-build validation error: The following files are already installed in C:/tmp/testvcpkg/build/vcpkg_installed/x64-windows-static and are in conflict with opencv4:x64-windows-static Installed by libwebp:x64-windows-static lib/libwebp.lib
Stored binaries in 1 destinations in 1 min.
Elapsed time to handle opencv4:x64-windows-static: 12 min
Please ensure you're using the latest port files with git pull
and vcpkg update
.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[opencv4]+Build+error
Include '[opencv4] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-06-15-8c254a5fb6c503615834fc66bd0717664a339a2e
vcpkg-scripts version: 1286cac87 2023-06-22 (4 hours ago)
-- Running vcpkg install - failed CMake Error at C:/tmp/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (message): vcpkg install failed. See logs for more information: C:\tmp\testvcpkg\build\vcpkg-manifest-install.log Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.26/Modules/CMakeDetermineSystem.cmake:148 (include) CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!
i tried to do a fresh vcpkg install with latest version and still got the error
This doesn't change much if you still install the same port version (4.5.5 i.e. 4.5.5#0). Ensure that you install at least 4.5.5#2 which added a ... webp change.
@olm-marc, Does version 4.5.5#2 meet your needs?
@olm-marc, Does version 4.5.5#2 meet your needs?
sorry for the late answer. yes it worked. how can i know the list of version that are available?
This requires us to look at the historical modification records of opencv4, https://github.com/microsoft/vcpkg/commits/78784c0b0aa87ae63bce01c2c040ce1b3269ecd1/ports/opencv4/vcpkg.json and judge which version fixes this problem according to the modification. https://github.com/microsoft/vcpkg/pull/23864 This PR has changed the findpackage of libwebp, corresponding Version is 4.5.5#2
sorry to ask that, but where do you see the version 4.5.5#2? is this the vcpkg.json change in port-version? "git-tree": "90f4418431aa3ddcdbd34c33d5e654cda5cda26a", "version": "4.5.5", "port-version": 2
sorry to ask that, but where do you see the version 4.5.5#2? is this the vcpkg.json change in port-version? "git-tree": "90f4418431aa3ddcdbd34c33d5e654cda5cda26a", "version": "4.5.5", "port-version": 2
Yes, "version" represents the official version, and "port-version" represents the number of modifications made on the basis of this version (except for port updates)
(base) PS D:\CPP\vcpkg> vcpkg install opencv:x64-windows Computing installation plan... The following packages will be built and installed: opencv[core,default-features]:x64-windows -> 4.8.0
Call Stack (most recent call first): installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process) installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build) ports/opencv4/portfile.cmake:467 (vcpkg_cmake_install) scripts/ports.cmake:168 (include)
error: building opencv4:x64-windows failed with: BUILD_FAILED
Elapsed time to handle opencv4:x64-windows: 5.7 min
Please ensure you're using the latest port files with git pull
and vcpkg update
.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[opencv4]+Build+error&body=Copy+issue+body+from+D%3A%2FCPP%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
Operating system
Windows
Compiler
MSVC
Steps to reproduce the behavior
Failure logs
-- Running vcpkg install Detecting compiler hash for triplet x64-windows-static... The following packages will be built and installed: opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x64-windows-static -> 4.5.5 -- C:\tmp\vcpkg\vcpkg\buildtrees\versioning_\versions\opencv4\afed148d21295bf99e8ac657fdb808ed82467871 Restored 1 package(s) from C:\Users\marc\AppData\Local\vcpkg\archives in 8.3 s. Use --debug to see more details. Installing 1/1 opencv4:x64-windows-static... error: The following files are already installed in C:/tmp/testvcpkg/build/vcpkg_installed/x64-windows-static and are in conflict with opencv4:x64-windows-static Installed by libwebp:x64-windows-static lib/libwebp.lib
Please ensure you're using the latest port files with
git pull
andvcpkg update
. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4 You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[opencv4]+Build+error Include '[opencv4] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above. vcpkg-tool version: 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895 vcpkg-scripts version: d4d39d71b 2023-05-15 (12 hours ago)-- Running vcpkg install - failed CMake Error at C:/tmp/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (message): vcpkg install failed. See logs for more information: C:\tmp\testvcpkg\build\vcpkg-manifest-install.log Call Stack (most recent call first): build/CMakeFiles/3.26.1/CMakeSystem.cmake:6 (include) CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!
Additional context
No response