-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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] Build error on x64-windows-static #43203
Comments
I have installed CUDA 10.2, cuDNN 8.7 and I also got the cudnn cuda 10.2 specific binaries here: https://developer.nvidia.com/rdp/cudnn-archive#a-collapse870-102 I feel like I am missing something dumb.... I am using visual studio 2022.... v143 of msvc.... Is there some incompatability issue I am missing? Is there a workaround to it? My end goal is to use the opencv EAST model for identifying text in scenes. I would like to be able to use the cuda version so it is faster when I debug it. I do not understand why it says: -- Verifying WITH_CUFFT=ON => 'HAVE_CUFFT'=FALSE -- Verifying WITH_CUBLAS=ON => 'HAVE_CUBLAS'=FALSE -- Verifying WITH_CUDNN=ON => 'HAVE_CUDNN'=FALSE CMake Warning at cmake/OpenCVUtils.cmake:785 (message): |
Could you please try #42371 to see if it fixes your error? |
Duplicate of #42604. |
Hi I just want to double check that you mean for me to test to see if this still happens in 4.11, is that right? |
ok I did a "git pull" on vcpkg then gh pr checkout 42371 and the build still failed. Here are the logs... Package: opencv4[calib3d,contrib,core,cuda,cudnn,default-features,dnn,dnn-cuda,dshow,fs,gapi,highgui,intrinsics,jpeg,opencl,openmp,png,quirc,thread,tiff,webp,win32ui,world]:x64-windows-static@4.10.0#2 Host Environment
To Reproduce
Failure logs
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\install-x64-windows-static-dbg-out.log
Additional context vcpkg.json
|
cc @cenit |
Wanted to put this in the bug... I re-ran the build, but this time I copied the file:
to the directory:
I also thought I'd mention that the following line makes me think I am using the wrong version of MSVC:
It is getting late and I should probably sleep… but I noticed that the logs might indicate I am not using a manifest but I am:
I don’t think it is the version of msvc I was confused by what I was looking at. Those warning aren’t associated with any error. Error still seems to be that it’s not finding cuda or cudnn: NVIDIA CUDA: NO And then: ENABLE_CUDA_FIRST_CLASS_LANGUAGE=ON => 'HAVE_CUDA'=FALSE Frustrated because I can’t tell what the error actually is. Ok one more thing, I noticed that in vcpkg that the baseline string is the same both prior to and after putting your changes in but I updated that baseline value I thought: Do not underestimate my ability to fat finger something… it is legendary… did I just not get the changes in right? Package: opencv4[calib3d,contrib,core,cuda,cudnn,default-features,directml,dnn,dnn-cuda,dshow,fs,gapi,highgui,intrinsics,jpeg,msmf,opencl,openmp,png,quirc,thread,tiff,webp,win32ui,world]:x64-windows-static@4.10.0#3 Host Environment
To Reproduce
Failure logs
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-out.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-dbg-CMakeConfigureLog.yaml.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-rel-CMakeConfigureLog.yaml.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-rel-CMakeCache.txt.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-dbg-CMakeCache.txt.log
Additional context vcpkg.json
|
this config was much better. I just need to add another patch to that PR and it should work to you |
all the other reports stop much earlier in the config phase, the one above based on my open PR looks doable (if you want to add the patch linked above manually, otherwise please wait some hours and i'll do it) |
THANK YOU!! The project I am on will improve some services for kids and families. I will test it out. |
Package: opencv4[calib3d,contrib,core,cuda,cudnn,default-features,dnn,dnn-cuda,dshow,fs,gapi,highgui,intrinsics,jpeg,opencl,openmp,png,quirc,thread,tiff,webp,win32ui,world]:x64-windows-static@4.10.0#2
Host Environment
vcpkg-scripts version: 80d54ff 2024-12-23 (3 weeks ago)
To Reproduce
vcpkg install
Failure logs
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-out.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-dbg-CMakeConfigureLog.yaml.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-rel-CMakeConfigureLog.yaml.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-rel-CMakeCache.txt.log
D:\proj\vs\VC\vcpkg\buildtrees\opencv4\config-x64-windows-static-dbg-CMakeCache.txt.log
Additional context
vcpkg.json
The text was updated successfully, but these errors were encountered: