Could NOT find CUDNN (missing: CUDNN_LIBRARY CUDNN_INCLUDE_DIR) (Required is at least version “7.5“)

windows11   Cmake  cuda12

Cmake编译 OPENCV_DNN_CUDA 报错:

CMake Error at modules/dnn/CMakeLists.txt:39 (message):
DNN: CUDA backend requires cuDNN. Please resolve dependency or disable
OPENCV_DNN_CUDA=OFF
Call Stack (most recent call first):
modules/world/CMakeLists.txt:13 (include)
modules/world/CMakeLists.txt:32 (include_one_module)
 

解决方法:

search:cudnn

添加cudnn.lib

 

你可能感兴趣的:(开发语言,c++,linux)