I comipling the opencv 4.5.5 with cuda on my orin nx get error:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cufft_LIBRARY (ADVANCED)
*** linked by target “opencv_cudev” in directory /home/hbis/Downloads/opencv-4.5.5/opencv_contrib/modules/cudev***
*** linked by target “opencv_core” in directory /home/hbis/Downloads/opencv-4.5.5/modules/core***
*** linked by target “opencv_cudaarithm” in directory /home/hbis/Downloads/opencv-4.5.5/opencv_contrib/modules/cudaarithm***
I use jetpack 6.0, the cuda ver is 12.2, here is my cmake :
cmake
-D WITH_CUDA=ON
-D CUDA_ARCH_BIN=“8.7”
-D CUDA_cufft_LIBRARY=/usr/local/cuda-12.2/lib64
-D WITH_cuDNN=ON
-D OPENCV_DNN_CUDA=ON
-D CUDA_ARCH_PTX=“”
-D cuDNN_VERSION=‘8.9’
-D cuDNN_INCLUDE_DIR=‘/usr/include/’
-D OPENCV_GENERATE_PKGCONFIG=ON
-D OPENCV_EXTRA_MODULES_PATH=/home/hbis/Downloads/opencv-4.5.5/opencv_contrib/modules
-D WITH_GSTREAMER=ON
-D WITH_FFMPEG=ON
-D WITH_LIBV4L=ON
-D BUILD_opencv_python3=ON
-D BUILD_opencv_python2=OFF
-D PYTHON_EXECUTABLE=usr/bin/python3
-D BUILD_TESTS=OFF
-D BUILD_PERF_TESTS=OFF
-D BUILD_EXAMPLES=OFF
-DOPENCV_DOWNLOAD_MIRROR_ID=gitcode
-D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
…