Compiling opencv on Drive AGX Orin target

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi,

I am trying to compile OpenCV 4.8.0 on Drive AGX Orin Target with CuDNN.

this is bash script with commands.
VERSION=4.8.0

test -e ${VERSION}.zip || wget https://github.com/opencv/opencv/archive/refs/tags/${VERSION}.zip

test -e opencv-${VERSION} || unzip ${VERSION}.zip

test -e opencv_extra_${VERSION}.zip || wget -O opencv_extra_${VERSION}.zip https://github.com/opencv/opencv_contrib/archive/refs/tags/${VERSION}.zip

test -e opencv_contrib-${VERSION} || unzip opencv_extra_${VERSION}.zip

cd opencv-${VERSION}

mkdir build

cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE \

-D CMAKE_INSTALL_PREFIX=/usr/local \

-D WITH_TBB=ON \

-D ENABLE_FAST_MATH=1 \

-D CUDA_FAST_MATH=1 \

-D WITH_CUBLAS=1 \

-D WITH_CUDA=ON \

-D BUILD_opencv_cudacodec=ON \

-D WITH_CUDNN=ON \

-D OPENCV_DNN_CUDA=ON \

-D WITH_QT=OFF \

-D WITH_OPENGL=ON \

-D BUILD_opencv_apps=OFF \

-D BUILD_opencv_python2=OFF \

-D OPENCV_GENERATE_PKGCONFIG=ON \

-D OPENCV_PC_FILE_NAME=opencv.pc \

-D OPENCV_ENABLE_NONFREE=ON \

-D OPENCV_EXTRA_MODULES_PATH=…/…/opencv_contrib-${VERSION}/modules \

-D INSTALL_PYTHON_EXAMPLES=OFF \

-D INSTALL_C_EXAMPLES=OFF \

-D BUILD_EXAMPLES=OFF \

-D CUDA_ARCH_BIN=8.7 \

-D WITH_FFMPEG=ON \

-D CUDNN_INCLUDE_DIR=/usr/include/aarch64-linux-gnu \

-D CUDNN_LIBRARY=/usr/lib/aarch64-linux-gnu/libcudnn.so \

make -j 8

sudo make -j 8 install

But I am getting this error
"
CMake Error at modules/dnn/CMakeLists.txt …
DNN: CUDA backend requires cuDNN. Please resolve dependency of disable
OPENCV_DNN_CUDA=OFF
"

Please help me to compile opencv 4.8.0 with cuDNN on Drive AGX orin target.

Thanks,
Mahesh

Dear @maheshk ,
We don’t officially support OpenCV on Orin. So we have not tested installation.
May I know what functionalities you are looking from openCV?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.