Open cyh19910216 opened 4 months ago
@cyh19910216, I can not reproduce your error on my local machine:
Elapsed time to handle opencv:x64-windows: 765 ms
Total install time: 3.1 h
opencv provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(OpenCV CONFIG REQUIRED)
# note: 59 additional targets are not displayed.
target_link_libraries(main PRIVATE opencv_ml opencv_dnn opencv_dpm opencv_hdf)
Please make sure you are using the latest port files with git pull and vcpkg update. Delete all opencv caches and try again.
@cyh19910216, I can not reproduce your error on my local machine:
Elapsed time to handle opencv:x64-windows: 765 ms Total install time: 3.1 h opencv provides CMake targets: # this is heuristically generated, and may not be correct find_package(OpenCV CONFIG REQUIRED) # note: 59 additional targets are not displayed. target_link_libraries(main PRIVATE opencv_ml opencv_dnn opencv_dpm opencv_hdf)
Please make sure you are using the latest port files with git pull and vcpkg update. Delete all opencv caches and try again.
Thank you! But I fail again. I have used "git pull" and "vcpkg update", and deleted the folders "opencv", "opencv4", "opencv-cache" and "temp". But it fails again.
CPU: Intel Core i5-1155G7 GPU: NVIDIA GeForce MX450 CUDA: 12.4
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
The latest version of OpenCV available in vcpkg is 4.8.0.
OpenCV version 4.8.0 supports the latest CUDA version, which is 12.0.
so, use CUDA 12.0
and,close all antivirus software before installation.
Operating system
Windows 11 23H2 x64
Compiler
Visual Studio 2022 17.9.6
Steps to reproduce the behavior
Failure logs
PS D:\Data\vcpkg> .\vcpkg install opencv[contrib,cuda,cudnn,eigen,ffmpeg,opengl,openmp]:x64-windows Computing installation plan... The following packages will be built and installed: opencv[contrib,core,cuda,cudnn,default-features,eigen,ffmpeg,opengl,openmp]:x64-windows@4.8.0#1
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:479 (vcpkg_cmake_install) scripts/ports.cmake:175 (include)
error: building opencv4:x64-windows failed with: BUILD_FAILED Elapsed time to handle opencv4:x64-windows: 18 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%2FData%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md install-x64-windows-dbg-out.logAdditional context
No response