-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[opencv4[contrib,core,cuda,default-features,dnn,ffmpeg,jpeg,png,quirc,tiff,webp]:x64-windows -> 4.7.0#6] build failure #32673
Comments
It's a bug in opencv - I got opencv4 to build with CUDA 12.2 and cuDNN 8.9.3.28 by following this comment: You just need to copy normalize_bbox.hpp and region.hpp to another location and edit them, then copy them to [vcpkg directory]\buildtrees\opencv4\src\4.7.0-87379d1df6.clean\modules\dnn\src\cuda4dnn\primitives after opencv4 starts building, because vcpkg deletes and re-extracts the source when the build starts. |
I'm still validating the issue about
It is recommended to use Cleared on every install: |
Sorry I did't repro your issue.
|
I tried this on my system, and the installation went a little ahead than the last time but it failed again after about 1.4 hrs with a build failure.
Then I tried to download opencv4 individually using --editable, which again failed with an error. Installing 9/9 opencv4:x86-windows... Call Stack (most recent call first): error: building opencv4:x86-windows failed with: BUILD_FAILED Then just for the sake of trying I ran |
Operating system
Windows 11
Compiler
MSVC 19.29.30151.0
Steps to reproduce the behavior
`vcpkg install darknet[full]:x64-windows`
Failure logs
-- 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.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: C:/Users/ASUS/tmp/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Release --target install -- -v -j17
Working Directory: C:/Users/ASUS/tmp/vcpkg/buildtrees/opencv4/x64-windows-rel
See logs for more information:
C:\Users\ASUS\tmp\vcpkg\buildtrees\opencv4\install-x64-windows-rel-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:451 (vcpkg_cmake_install)
scripts/ports.cmake:147 (include)
error: building opencv4:x64-windows failed with: BUILD_FAILED
Elapsed time to handle opencv4:x64-windows: 48 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&body=Copy+issue+body+from+C%3A%2FUsers%2FASUS%2Ftmp%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
install-x64-windows-rel-out.log
Additional context
I have been trying to install opencv through vcpkg since 2 days. One after the other, it has been running into errors. I can't understand what I'm doing wrong. Please help.
The text was updated successfully, but these errors were encountered: