Error in Native compiling of opencv in AGX Drive

Hi,

I followed the tutorial OpenCV - compile OpenCV 4.1.1 on Drive Software 10.0 to compile Opencv natively in the Nvidia Drive AGX.
But i get the following errors when I execute the below statement:

$ sudo dpkg -i /var/cuda-repo-10-2-local-10.2.19/cuda-toolkit-10-2_10.2.19-1_arm64.deb

Error:

nvidia@tegra-ubuntu:~$ sudo dpkg -i /var/cuda-repo-10-2-local-10.2.19/cuda-toolkit-10-2_10.2.19-1_arm64.deb

(Reading database … 119896 files and directories currently installed.)
Preparing to unpack …/cuda-toolkit-10-2_10.2.19-1_arm64.deb …
Unpacking cuda-toolkit-10-2 (10.2.19-1) over (10.2.19-1) …
dpkg: dependency problems prevent configuration of cuda-toolkit-10-2:
cuda-toolkit-10-2 depends on cuda-tools-10-2 (>= 10.2.19); however:
Package cuda-tools-10-2 is not configured yet.
cuda-toolkit-10-2 depends on cuda-samples-10-2 (>= 10.2.19); however:
Package cuda-samples-10-2 is not installed.
cuda-toolkit-10-2 depends on cuda-documentation-10-2 (>= 10.2.19); however:
Package cuda-documentation-10-2 is not installed.
cuda-toolkit-10-2 depends on cuda-libraries-dev-10-2 (>= 10.2.19); however:
Package cuda-libraries-dev-10-2 is not installed.
cuda-toolkit-10-2 depends on cuda-nvml-dev-10-2 (>= 10.2.19); however:
Package cuda-nvml-dev-10-2 is not installed.

dpkg: error processing package cuda-toolkit-10-2 (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
cuda-toolkit-10-2

Please provide me the solution to perform native compilation of Opencv in Nvidia Drive AGX.


Please provide the following info:
Hardware Platform: DRIVE AGX Xavier™ Developer Kit
Software Version: DRIVE Software 10
Host Machine Version: native Ubuntu 18.04
SDK Manager Version: 1.3.1.7110

Hi @ars4922,

That’s expected. Please go ahead and follow the steps to build OpenCV on the target system. Thanks!

What is that file “cuda-toolkit-10-2_10.2.19-1_arm64.deb” ??

It’s part of DRIVE Software 10.0 installation. You can check any information about it via dpkg related commands.