my device is Jetson AGX Xavier, I install jetpack 5.0.2 on it, then I tried to build a docker image; the base image is nvcr.io/nvidia/l4t-tensorrt:r8.4.1-runtime, I tried to make install opencv-cuda(opencv4.6.0) in it, I met
CMake Warning at cmake/OpenCVFindLibsPerf.cmake:45 (message):
OpenCV is not able to find/configure CUDA SDK (required by WITH_CUDA).
CUDA support will be disabled in OpenCV build.
To eliminate this warning remove WITH_CUDA=ON CMake configuration option.
Call Stack (most recent call first):
CMakeLists.txt:733 (include)
I also tried -D CUDA_BIN_PATH=/usr/local/cuda \ -D CUDNN_INCLUDE_DIR=/usr/local/cuda/include \ -D CUDA_CUDA_LIBRARY=/usr/local/cuda/lib64/stubs/libcuda.so \, but it didn’t work
If there is a newline after each backslash, it should be ok.
So does it successfully configures, builds and installs ?
Do you see any error further than the above warning ?
It might not be an opencv build script issue, but just a CUDA/CMake install issue that you’re hitting here.
Can another software configured by cmake find CUDA in your container ?