I am trying to install opencv and opencv_contrib on my Jetson_Orin.
I cloned opencv and opencv_contrib from the github and now trying to build it with the cmake-gui. But the configuration step is failing stating some files are missing.
The ERROR message is as follows
Error in configuration process. project files may be invalid.
Configuration incomplete, errors occurred! See also "home/.../opencv/build/CMakeFiles/CMakeOutput.log" See also "home/.../opencv/build/CMakeFiles/CMakeError.log"
I checked the CMake error log, which read as below.
...........opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/videoio.h: No such file or directory 1 | #include <sys/videoio.h> | ^~~~~~~~~~~~~~~ compilation terminated.
P.S: picture added for reference
I read the configuration results in the cmake-gui.
It says it “could not find the cudnn for the CUDA”
I did install cudnn 8.2.4 for the CUDA 11.4
when I run
1. ~$ which nvcc /usr/local/cuda-11.4/bin/nvcc
2. ~$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_May__4_00:02:26_PDT_2022 Cuda compilation tools, release 11.4, V11.4.239 Build cuda_11.4.r11.4/compiler.31294910_0
3. ~$ whereis cuda-11.4 cuda-11: /usr/local/cuda-11.4 /usr/local/cuda-11
4. ~$ whereis cudnn cudnn: /usr/include/cudnn.h
Could it be because of the different paths CUDA and CUDNN are in, the issue is?
I am not sure how to resolve this. Requesting for help.