Opencv Compilation on Drive OS 5.2.0

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
[yes] DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
[yes] Linux
QNX
other

Hardware Platform
[yes] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
[yes] 1.5.0.7774
other

Host Machine Version
[yes] native Ubuntu 18.04
other

Hi, I am trying to compile/install opencv on drive OS 5.2.0.
I have followed this link OpenCV compilation - #4 by SteveNV , and tried to install from target, sudo dpkg -i /var/cuda-repo-10-2-local-10.2.19/cuda-toolkit-10-2_10.2.19-1_arm64.deb is not available on target as well in host. Please let me know how to get this.

Hi @mukilan.vijayakumar ,

DRIVE OS 5.2.0 is not intended to support it anymore. Please see the details in below topic.

Hi Vick,

We can install opencv using NCG?
I am new to NCG, please let me know what it is and how to get it?

NCG will be available with the upcoming release.
But unfortunately OpenCV is not officially supported nor is it optimized on the Drive platform.
Please see one recent post below:

Hi Vick,
so we cannot cross compile opencv on Drive OS 5.2.0 in any way or it can be cross compiled but its not optimized for Drive?

can we cross compile / compile on target without cuda support?

It hasn’t been verified. You can go ahead and try it.

Hi Vick,

Installed opencv on target now without cuda, however I need to add opencv support on our tensorrt example.
till now I have build tensorrt examples on Host and run it on target. is it possible to compile tensort samples on target itself?

when I try, I get lot of dependencies related to Nvinfer and cuda include files, only lib is been copied to target I think during SDK flashing.

DRIVE OS only supports cross-compile TensorRT samples for AArch64.

Hi,
I am facing issue while cross compile tensorrt sample with openGL.
I have copied OpenGL related libs from Drive Agx to my Host machine for cross complile.
OpenCV also I need to remove GTK while compile.

Trying to create a application where we do pre and post processing using opencv and CNN using TensorRT and rendering output using OpenGL.

glerror (9.9 KB)

Please see if Building and Running Samples in “Graphics Programming” will help on your problem. Thanks.