Closed leea51 closed 1 year ago
To Reproduce -- command line
C:\dev\qtcreator>vcpkg --feature-flags=versions --recurse install
Failure logs
Detecting compiler hash for triplet x64-windows...
The following packages will be built and installed:
* brotli[core]:x64-windows -> 1.0.9#3 -- C:\dev\vcpkg\buildtrees\versioning_\versions\brotli\7b182b3e0615d6f3538b5eeac680f7eb8af5abd0
* bzip2[core,tool]:x64-windows -> 1.0.8#3 -- C:\dev\vcpkg\buildtrees\versioning_\versions\bzip2\6ee6ad1d0bf78137f7f77671f393abc83363a710
* double-conversion[core]:x64-windows -> 3.2.0 -- C:\dev\vcpkg\buildtrees\versioning_\versions\double-conversion\b85d7877f614063165639f251200a65e8d5c9ba5
* egl-registry[core]:x64-windows -> 2021-11-23#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\egl-registry\43e62391cc7413e33585df55584769bcb69bf563
* freeglut[core]:x64-windows -> 3.2.2 -- C:\dev\vcpkg\buildtrees\versioning_\versions\freeglut\f4eceb7b1ee13b64d859833d2dce4152233c99bc
* freetype[brotli,bzip2,core,png,zlib]:x64-windows -> 2.12.1#2 -- C:\dev\vcpkg\buildtrees\versioning_\versions\freetype\f1d6772ea2cb8cd74146b263b5dab534a10dd641
* harfbuzz[core]:x64-windows -> 5.0.1#3 -- C:\dev\vcpkg\buildtrees\versioning_\versions\harfbuzz\b649285d2988a5388e2a4cb1b74f9348d005c8f0
* icu[core]:x64-windows -> 71.1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\icu\13fe0c9056059654ea7e482cd06ff70c26f9e029
* jasper[core,default-features,opengl]:x64-windows -> 2.0.33#6 -- C:\dev\vcpkg\buildtrees\versioning_\versions\jasper\fb8dca022aa130726431991cc9c70cc3162ea657
* libjpeg-turbo[core]:x64-windows -> 2.1.4 -- C:\dev\vcpkg\buildtrees\versioning_\versions\libjpeg-turbo\07c9848d16ee346b314e87e6c0d856bfb0745af9
* liblzma[core]:x64-windows -> 5.2.5#6 -- C:\dev\vcpkg\buildtrees\versioning_\versions\liblzma\96b6aac6211ad3fd3da29508a519c3cd5f09716d
* libpng[core]:x64-windows -> 1.6.38 -- C:\dev\vcpkg\buildtrees\versioning_\versions\libpng\923c99cca2e5f79dfc04e9432ac1146ee6da5b11
* libwebp[core,libwebpmux,nearlossless,simd,unicode]:x64-windows -> 1.2.4 -- C:\dev\vcpkg\buildtrees\versioning_\versions\libwebp\6bce9ad4c595a817fb1f227661c5bc955b177754
opencv4[core,dnn,jpeg,png,quirc,tiff,webp]:x64-windows -> 4.5.2 -- C:\dev\vcpkg\buildtrees\versioning_\versions\opencv4\ac5c96fd5709b302c81b76814a3ccfd99dcdecdc
* opengl[core]:x64-windows -> 2022-03-14#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\opengl\1c402a05f67513fe35a8991b8865db4db6181ec7
* openssl[core]:x64-windows -> 3.0.7#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\openssl\a2607b45f60f01df2d549c97a51f5aa558ce97e9
* pcre2[core]:x64-windows -> 10.40 -- C:\dev\vcpkg\buildtrees\versioning_\versions\pcre2\725d8f25eea7d10b24944f314db69aa8b29d4932
* pkgconf[core]:x64-windows -> 1.8.0#3 -- C:\dev\vcpkg\buildtrees\versioning_\versions\pkgconf\a0408f161d8a23907635840add678d5946024d09
* protobuf[core]:x64-windows -> 3.21.8 -- C:\dev\vcpkg\buildtrees\versioning_\versions\protobuf\9207a92857403f8749919a7d93c36b91466bef97
qt5[activeqt,core,declarative,essentials,imageformats,multimedia,networkauth,quickcontrols2,svg,tools]:x64-windows -> 5.15.2 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5\3ab863fc125546487759d6672f0e459da27f5f41
* qt5-activeqt[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-activeqt\db3ab0ee7d95b99b7f1567517e5d67ef8fe016ed
* qt5-base[core]:x64-windows -> 5.15.7#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-base\03b57b46f1e3be1f7aa32cfe41ef54ace61cb87f
* qt5-declarative[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-declarative\67a157b6111ccfc3ed401efd1cc403a2824d5acf
* qt5-imageformats[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-imageformats\019d2b693d40b53785d13277801a8e71322509e4
* qt5-multimedia[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-multimedia\236a24977c1a7e1758713cfc91462817c2aea15c
* qt5-networkauth[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-networkauth\7e4a60e292b0836d6b98fcec831f2875b8121fc6
* qt5-quickcontrols2[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-quickcontrols2\e5f37da41e1b446de989d69c42ae41453b866c34
* qt5-svg[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-svg\179679edb737374596bc76c5f7aa8f9493190515
* qt5-tools[core]:x64-windows -> 5.15.7 -- C:\dev\vcpkg\buildtrees\versioning_\versions\qt5-tools\64d67d5b5c32111d980b50cf465149ada151aa54
* quirc[core]:x64-windows -> 1.1#3 -- C:\dev\vcpkg\buildtrees\versioning_\versions\quirc\85b17d675bbbb05448d16af79d434bc5fca51f7b
* sqlite3[core]:x64-windows -> 3.39.2 -- C:\dev\vcpkg\buildtrees\versioning_\versions\sqlite3\b673cfda60055677c42fe66cdd0655ad4a1110dd
* tiff[core,jpeg,lzma,zip]:x64-windows -> 4.4.0#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\tiff\7d5e9083d0072a4370b44f434cd4dac7b3bee7bc
* vcpkg-cmake[core]:x64-windows -> 2022-10-30 -- C:\dev\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake\063c28b7401ba0090497ba7b0931b2eb09b18a24
* vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\8d54cc4f487d51b655abec5f9c9c3f86ca83311f
* vcpkg-cmake-get-vars[core]:x64-windows -> 2022-09-04 -- C:\dev\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-get-vars\898079c6021ced406d7c75f852e67a5e8861db9b
* vcpkg-pkgconfig-get-modules[core]:x64-windows -> 2022-02-10#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\vcpkg-pkgconfig-get-modules\48bfa748f78837921860329547ed6e5799665698
* vcpkg-tool-meson[core]:x64-windows -> 0.63 -- C:\dev\vcpkg\buildtrees\versioning_\versions\vcpkg-tool-meson\bee0cb6c5edf45133ebc9643b86c9c775ab36cfe
* zlib[core]:x64-windows -> 1.2.13 -- C:\dev\vcpkg\buildtrees\versioning_\versions\zlib\ad5a49006f73b45b715299515f31164131b51982
* zstd[core]:x64-windows -> 1.5.2#1 -- C:\dev\vcpkg\buildtrees\versioning_\versions\zstd\2f8a5da3f925dc994500dabb2d3b5c7e11df0afd
Additional packages (*) will be modified to complete this operation.
Restored 10 package(s) from C:\Users\USER\AppData\Local\vcpkg\archives in 1.358 s. Use --debug to see more details.
Installing 1/39 vcpkg-cmake-config:x64-windows...
Elapsed time to handle vcpkg-cmake-config:x64-windows: 39.8 ms
Installing 2/39 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 101.8 ms
Installing 3/39 libwebp:x64-windows...
Elapsed time to handle libwebp:x64-windows: 167.6 ms
Installing 4/39 zlib:x64-windows...
Elapsed time to handle zlib:x64-windows: 59.92 ms
Installing 5/39 liblzma:x64-windows...
Elapsed time to handle liblzma:x64-windows: 100.6 ms
Installing 6/39 libjpeg-turbo:x64-windows...
Elapsed time to handle libjpeg-turbo:x64-windows: 112.7 ms
Installing 7/39 tiff:x64-windows...
Elapsed time to handle tiff:x64-windows: 71.4 ms
Installing 8/39 quirc:x64-windows...
Elapsed time to handle quirc:x64-windows: 47.17 ms
Installing 9/39 libpng:x64-windows...
Elapsed time to handle libpng:x64-windows: 93.99 ms
Installing 10/39 protobuf:x64-windows...
Elapsed time to handle protobuf:x64-windows: 561.2 ms
Installing 11/39 opencv4:x64-windows...
Building opencv4[core,dnn,jpeg,png,quirc,tiff,webp]:x64-windows...
-- Installing port from location: C:\dev\vcpkg\buildtrees\versioning_\versions\opencv4\ac5c96fd5709b302c81b76814a3ccfd99dcdecdc
-- Using cached opencv-opencv-4.5.2.tar.gz.
-- Cleaning sources at C:/dev/vcpkg/buildtrees/opencv4/src/4.5.2-755f235ba0.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/dev/vcpkg/downloads/opencv-opencv-4.5.2.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-qt-integration.patch
-- Using source at C:/dev/vcpkg/buildtrees/opencv4/src/4.5.2-755f235ba0.clean
-- Using cached opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz.
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j9
Working Directory: C:/dev/vcpkg/buildtrees/opencv4/x64-windows-dbg
See logs for more information:
C:\dev\vcpkg\buildtrees\opencv4\install-x64-windows-dbg-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:78 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:18 (vcpkg_build_cmake)
buildtrees/versioning_/versions/opencv4/ac5c96fd5709b302c81b76814a3ccfd99dcdecdc/portfile.cmake:407 (vcpkg_install_cmake)
scripts/ports.cmake:147 (include)
error: building opencv4:x64-windows failed with: BUILD_FAILED
error: 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: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
vcpkg-scripts version: c1c8763f7 2022-11-14 (69 minutes ago)
can you try installing opencv4[core]? a build failure may occr due to a third libary of opencv
If it is installed, try adding a library one by one
opencv4[core] install fails in manifest mode
C:\dev\qtcreator>vcpkg --feature-flags=versions install
error: while loading C:\dev\qtcreator\vcpkg.json:
$.overrides[0].name (an identifier): must be lowercase alphanumeric+hyphens and not reserved (see https://github.com/Microsoft/vcpkg/tree/master/docs/users/manifests.md for more information)Extended documentation available at 'https://github.com/Microsoft/vcpkg/tree/master/docs/users/manifests.md'.
opencv4[core] does not appear in the vcpkg search
C:\dev>vcpkg search opencv4
opencv4 4.6.0#8 computer vision library
opencv4[ade] graph api
opencv4[contrib] opencv_contrib module
opencv4[cuda] CUDA support for opencv
opencv4[cudnn] cuDNN support for opencv
opencv4[dc1394] Dc1394 support for opencv
opencv4[default-features] Platform-dependent default features
opencv4[dnn] Enable dnn module
opencv4[eigen] Eigen support for opencv
opencv4[ffmpeg] ffmpeg support for opencv
opencv4[freetype] Freetype support for opencv
opencv4[gdcm] GDCM support for opencv
opencv4[gstreamer] gstreamer support for opencv
opencv4[gtk] GTK support for opencv
opencv4[halide] Halide support for opencv
opencv4[ipp] Enable Intel Integrated Performance Primitives
opencv4[jasper] JPEG 2000 support for opencv
opencv4[jpeg] JPEG support for opencv
opencv4[lapack] LAPACK support for opencv
opencv4[nonfree] allow nonfree and unredistributable libraries
opencv4[openexr] OpenEXR support for opencv
opencv4[opengl] opengl support for opencv
opencv4[openmp] Enable openmp support for opencv
opencv4[ovis] opencv_ovis module
opencv4[png] PNG support for opencv
opencv4[python] Python wrapper support for opencv
opencv4[qt] Qt GUI support for opencv
opencv4[quirc] Enable QR code module
opencv4[sfm] opencv_sfm module
opencv4[tbb] Enable Intel Threading Building Blocks
opencv4[tiff] TIFF support for opencv
opencv4[vtk] vtk support for opencv
opencv4[webp] WebP support for opencv
opencv4[world] Compile to a single package support for opencv
The result may be outdated. Run `git pull` to get the latest results.
If your port is not listed, please open an issue at and/or consider making a pull request. - https://github.com/Microsoft/vcpkg/issues
vcpkg.json:
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "qtcreator",
"version": "0.0.1",
"builtin-baseline": "c1c8763f7ed5af4bd3bc373d8790632be91a87fc",
"dependencies": [
{
"name": "opencv4",
"default-features": false,
"features": [ "core" ]
},
"qt5"
],
"overrides": [
{ "name": "opencv4", "version-string": "4.5.2" },
{ "name": "qt5", "version-string": "5.15.2" }
]
}
It appears to install fine in the global environment
C:\Users\USER>vcpkg install opencv4[core]
Computing installation plan...
The following packages will be built and installed:
opencv4[core]:x64-windows -> 4.6.0#8
* vcpkg-cmake[core]:x64-windows -> 2022-10-30
* vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
* vcpkg-get-python-packages[core]:x64-windows -> 2022-06-30
* zlib[core]:x64-windows -> 1.2.13
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 3 package(s) from C:\Users\USER\AppData\Local\vcpkg\archives in 118.3 ms. Use --debug to see more details.
Installing 1/5 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 28.81 ms
Installing 2/5 vcpkg-cmake-config:x64-windows...
Elapsed time to handle vcpkg-cmake-config:x64-windows: 32.41 ms
Installing 3/5 vcpkg-get-python-packages:x64-windows...
Building vcpkg-get-python-packages[core]:x64-windows...
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\USER\AppData\Local\vcpkg\archives\fa\fac92d62c145e3c9b6f074c6cc1734c32d1466012dee00bf904a1e0cb91e85b7.zip"
Elapsed time to handle vcpkg-get-python-packages:x64-windows: 180.1 ms
Installing 4/5 zlib:x64-windows...
Elapsed time to handle zlib:x64-windows: 55.24 ms
Installing 5/5 opencv4:x64-windows...
Building opencv4[core]:x64-windows...
-- Downloading https://github.com/opencv/opencv/archive/4.6.0.tar.gz -> opencv-opencv-4.6.0-1.tar.gz...
-- Extracting source C:/dev/vcpkg/downloads/opencv-opencv-4.6.0-1.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-eigen.patch
-- Applying patch 0005-fix-policy-CMP0057.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 0015-fix-freetype.patch
-- Applying patch 0017-mingw-strsafe-no-deprecate.patch
-- Using source at C:/dev/vcpkg/buildtrees/opencv4/src/4.6.0-9a95a1b699.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
-- Using msys root at C:/dev/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Installing: C:/dev/vcpkg/packages/opencv4_x64-windows/share/opencv4/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\USER\AppData\Local\vcpkg\archives\0b\0b708e7c6ee3567668668a320c54c7f721b163b857d23f0261bce5d293e06c4d.zip"
Elapsed time to handle opencv4:x64-windows: 10.98 min
Total install time: 11.06 min
If you do not install the meta-port *opencv*, the package opencv4 is compatible with CMake
if you set the OpenCV_DIR *before* the find_package call
set(OpenCV_DIR "C:/dev/vcpkg/installed/x64-windows/share/opencv4")
find_package(OpenCV REQUIRED)
I need to use manifest mode, though, so I can control the version number
The point is to disable default features. In classic mode, it is activate by the pseudo feature core
. In manifest mode, use "default-features": false
.
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "qtcreator",
"version": "0.0.1",
"builtin-baseline": "c1c8763f7ed5af4bd3bc373d8790632be91a87fc",
"dependencies": [
{
"name": "opencv4",
"default-features": false
},
"qt5"
],
"overrides": [
{ "name": "opencv4", "version-string": "4.5.2" },
{ "name": "qt5", "version-string": "5.15.2" }
]
}
That worked. Thank you so much!
I'm getting a build error with Visual Studio in manifest mode with opencv4:x64-windows (version: "4.5.2"). I am not using CMake.
Host Environment
To Reproduce
Setup vcpkg
Create Manifest file
vcpkg.json:
integrate Visual Studio project
Last vcpkg commit
Failure logs
Additional context I deleted both the project folder and vcpkg folder and recloned both of them with the same result. vcpkg has no global packages and I did not run integrate install with the new version. I also executed 'integrate remove' with the previous vcpkg global setup before deletion and it was located in a different location folder. Environment variables were updated to the new path.
Visual Studio vcpkg project settings:
install-x64-windows-dbg-out.log