Hi
I am trying to compile opencv with CUDA enabled on Nvidia Drive AGX Orin platform having aarch64 architecture. On performing sudo make install I get below error :
/opencv_github/opencv/modules/core/include/opencv2/core/private.cuda.hpp:59:12: fatal error: cuda.h: No such file or directory
59 | # include <cuda.h>
| ^~~~~~~~
compilation terminated.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:1006: modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o] Error 1
make[2]: Leaving directory ‘/home/adas6/sample_apps/conda/coe_yolov8/opencv_github/opencv/build’
make[1]: *** [CMakeFiles/Makefile2:7173: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[1]: Leaving directory ‘/home/adas6/sample_apps/conda/coe_yolov8/opencv_github/opencv/build’
make: *** [Makefile:166: all] Error 2
I am executing the steps mentioned in this link :
OpenCV-cuDNN
I tried to also pass CUDA_INCLUDE_DIRS=/usr/local/cuda/include during cmake but still observe this error. cuda.h file is present in the directory.