Open Anerson-Auf opened 20 hours ago
Please see #30604 for how to properly report a build failure.
Package: opencv4[calib3d,contrib,core,cuda,default-features,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,png,quirc,thread,tiff,webp,win32ui]:x64-windows@4.10.0#1
Host Environment
To Reproduce
vcpkg install opencv4[cuda]:x64-windows --recurse
Failure logs
-- Using cached opencv-opencv-4.10.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/opencv4/src/4.10.0-e5bca385b2.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/opencv-opencv-4.10.0.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 0014-fix-cmake-in-list.patch
-- Applying patch 0015-fix-freetype.patch
-- Applying patch 0017-fix-flatbuffers.patch
-- Applying patch 0019-opencl-kernel.patch
-- Applying patch 0020-miss-openexr.patch
-- Using source at D:/vcpkg/buildtrees/opencv4/src/4.10.0-e5bca385b2.clean
-- Using cached opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz.
-- Using cached opencv-cache/nvidia_optical_flow/a73cd48b18dcc0cc8933b30796074191-edb50da3cf849840d680249aa6dbef248ebce2ca.zip.
-- Using cached opencv-opencv_contrib-4.10.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/opencv4/src/4.10.0-64012148a7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/opencv-opencv_contrib-4.10.0.tar.gz
-- Applying patch 0007-contrib-fix-hdf5.patch
-- Applying patch 0013-contrib-fix-ogre.patch
-- Applying patch 0016-contrib-fix-freetype.patch
-- Applying patch 0018-contrib-fix-tesseract.patch
-- Using source at D:/vcpkg/buildtrees/opencv4/src/4.10.0-64012148a7.clean
-- Using cached opencv-cache/wechat_qrcode/238e2b2d6f3c18d6c3a30de0c31e23cf-detect.caffemodel.
-- Using cached opencv-cache/wechat_qrcode/cbfcd60361a73beb8c583eea7e8e6664-sr.caffemodel.
-- Using cached opencv-cache/wechat_qrcode/6fb4976b32695f9f5c6305c19f12537d-detect.prototxt.
-- Using cached opencv-cache/wechat_qrcode/69db99927a70df953b471daaba03fbef-sr.prototxt.
-- Using cached opencv-cache/xfeatures2d/boostdesc/0ea90e7a8f3f7876d450e4149c97c74f-boostdesc_bgm.i.
-- Using cached opencv-cache/xfeatures2d/boostdesc/232c966b13651bd0e46a1497b0852191-boostdesc_bgm_bi.i.
-- Using cached opencv-cache/xfeatures2d/boostdesc/324426a24fa56ad9c5b8e3e0b3e5303e-boostdesc_bgm_hd.i.
-- Using cached opencv-cache/xfeatures2d/boostdesc/202e1b3e9fec871b04da31f7f016679f-boostdesc_binboost_064.i.
-- Using cached opencv-cache/xfeatures2d/boostdesc/98ea99d399965c03d555cef3ea502a0b-boostdesc_binboost_128.i.
-- Using cached opencv-cache/xfeatures2d/boostdesc/e6dcfa9f647779eb1ce446a8d759b6ea-boostdesc_binboost_256.i.
-- Using cached opencv-cache/xfeatures2d/boostdesc/0ae0675534aa318d9668f2a179c2a052-boostdesc_lbgm.i.
-- Using cached opencv-cache/xfeatures2d/vgg/e8d0dcd54d1bcfdc29203d011a797179-vgg_generated_48.i.
-- Using cached opencv-cache/xfeatures2d/vgg/7126a5d9a8884ebca5aea5d63d677225-vgg_generated_64.i.
-- Using cached opencv-cache/xfeatures2d/vgg/7cd47228edec52b6d82f46511af325c5-vgg_generated_80.i.
-- Using cached opencv-cache/xfeatures2d/vgg/151805e03568c9f490a5e3a872777b75-vgg_generated_120.i.
-- Using cached opencv-cache/data/7505c44ca4eb54b4ab1e4777cb96ac05-face_landmark_model.dat.
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j13
Working Directory: D:/vcpkg/buildtrees/opencv4/x64-windows-dbg
See logs for more information:
D:\vcpkg\buildtrees\opencv4\install-x64-windows-dbg-out.log
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:438 (vcpkg_cmake_install)
scripts/ports.cmake:196 (include)
Encountered the same problem building opencv cuda today.
Is there anything I can try to do? Already update cuda last hour, still this problem
issue_body.md
Error:D:\vcpkg>vcpkg.exe install opencv4[cuda]:x64-windows Computing installation plan... The following packages will be rebuilt: opencv4[calib3d,contrib,core,cuda,default-features,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,png,quirc,thread,tiff,webp,win32ui]:x64-windows@4.10.0#1 warning: If you are sure you want to rebuild the above packages, run the command with the --recurse option.
D:\vcpkg>vcpkg.exe install opencv4[cuda]:x64-windows --recurse Computing installation plan... The following packages will be rebuilt: opencv4[calib3d,contrib,core,cuda,default-features,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,png,quirc,thread,tiff,webp,win32ui]:x64-windows@4.10.0#1 Detecting compiler hash for triplet x64-windows... -- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:2080". Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe Restored 0 package(s) from C:\Users\qw\AppData\Local\vcpkg\archives in 196 us. Use --debug to see more details. Removing 1/2 opencv4:x64-windows Elapsed time to handle opencv4:x64-windows: 143 ms Installing 2/2 opencv4[calib3d,contrib,core,cuda,default-features,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,png,quirc,thread,tiff,webp,win32ui]:x64-windows@4.10.0#1... Building opencv4[calib3d,contrib,core,cuda,default-features,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,png,quirc,thread,tiff,webp,win32ui]:x64-windows@4.10.0#1... -- Using cached opencv-opencv-4.10.0.tar.gz. -- Cleaning sources at D:/vcpkg/buildtrees/opencv4/src/4.10.0-e5bca385b2.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source D:/vcpkg/downloads/opencv-opencv-4.10.0.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 0014-fix-cmake-in-list.patch -- Applying patch 0015-fix-freetype.patch -- Applying patch 0017-fix-flatbuffers.patch -- Applying patch 0019-opencl-kernel.patch -- Applying patch 0020-miss-openexr.patch -- Using source at D:/vcpkg/buildtrees/opencv4/src/4.10.0-e5bca385b2.clean -- Using cached opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz. -- Using cached opencv-cache/nvidia_optical_flow/a73cd48b18dcc0cc8933b30796074191-edb50da3cf849840d680249aa6dbef248ebce2ca.zip. -- Using cached opencv-opencv_contrib-4.10.0.tar.gz. -- Cleaning sources at D:/vcpkg/buildtrees/opencv4/src/4.10.0-64012148a7.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source D:/vcpkg/downloads/opencv-opencv_contrib-4.10.0.tar.gz -- Applying patch 0007-contrib-fix-hdf5.patch -- Applying patch 0013-contrib-fix-ogre.patch -- Applying patch 0016-contrib-fix-freetype.patch -- Applying patch 0018-contrib-fix-tesseract.patch -- Using source at D:/vcpkg/buildtrees/opencv4/src/4.10.0-64012148a7.clean -- Using cached opencv-cache/wechat_qrcode/238e2b2d6f3c18d6c3a30de0c31e23cf-detect.caffemodel. -- Using cached opencv-cache/wechat_qrcode/cbfcd60361a73beb8c583eea7e8e6664-sr.caffemodel. -- Using cached opencv-cache/wechat_qrcode/6fb4976b32695f9f5c6305c19f12537d-detect.prototxt. -- Using cached opencv-cache/wechat_qrcode/69db99927a70df953b471daaba03fbef-sr.prototxt. -- Using cached opencv-cache/xfeatures2d/boostdesc/0ea90e7a8f3f7876d450e4149c97c74f-boostdesc_bgm.i. -- Using cached opencv-cache/xfeatures2d/boostdesc/232c966b13651bd0e46a1497b0852191-boostdesc_bgm_bi.i. -- Using cached opencv-cache/xfeatures2d/boostdesc/324426a24fa56ad9c5b8e3e0b3e5303e-boostdesc_bgm_hd.i. -- Using cached opencv-cache/xfeatures2d/boostdesc/202e1b3e9fec871b04da31f7f016679f-boostdesc_binboost_064.i. -- Using cached opencv-cache/xfeatures2d/boostdesc/98ea99d399965c03d555cef3ea502a0b-boostdesc_binboost_128.i. -- Using cached opencv-cache/xfeatures2d/boostdesc/e6dcfa9f647779eb1ce446a8d759b6ea-boostdesc_binboost_256.i. -- Using cached opencv-cache/xfeatures2d/boostdesc/0ae0675534aa318d9668f2a179c2a052-boostdesc_lbgm.i. -- Using cached opencv-cache/xfeatures2d/vgg/e8d0dcd54d1bcfdc29203d011a797179-vgg_generated_48.i. -- Using cached opencv-cache/xfeatures2d/vgg/7126a5d9a8884ebca5aea5d63d677225-vgg_generated_64.i. -- Using cached opencv-cache/xfeatures2d/vgg/7cd47228edec52b6d82f46511af325c5-vgg_generated_80.i. -- Using cached opencv-cache/xfeatures2d/vgg/151805e03568c9f490a5e3a872777b75-vgg_generated_120.i. -- Using cached opencv-cache/data/7505c44ca4eb54b4ab1e4777cb96ac05-face_landmark_model.dat. -- Found external ninja('1.11.0'). -- Configuring x64-windows -- Building x64-windows-dbg CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j13 Working Directory: D:/vcpkg/buildtrees/opencv4/x64-windows-dbg See logs for more information: D:\vcpkg\buildtrees\opencv4\install-x64-windows-dbg-out.log
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:438 (vcpkg_cmake_install) scripts/ports.cmake:196 (include)
error: building opencv4:x64-windows failed with: BUILD_FAILED See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information. Elapsed time to handle opencv4:x64-windows: 4.9 min 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?title=[opencv4]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.mdI already tried remove opencv4, then 'vcpkg install opencv4[cuda]', tried to install opencv4[cuda] above without pre-installed opencv4 with vcpkg, same error What i've already do:
git pull
and `vcpkg update' and 'vcpkg upgrade' CMAKE: cmake version 3.31.0-rc2 CUDA: Cuda compilation tools, release 12.4, V12.4.99 Build cuda_12.4.r12.4/compiler.33961263_0