Run CUDA and DriveWorks samples on dev system

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
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

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04

I am trying to run some CUDA and DriveWorks samples but I am having some errors when I try to run this cmake command to build-agx, some errors occur

This is my nvidia driver and cuda toolkit version on the host ubuntu 18.04 machine

Please give me some suggestions to solve this.
Thank you!

Dear @ninh.phamngoc,

Please use absolute path for CMAKE_TOOLCHAIN_FILE and make sure you have followed the DW cross compilation steps in the documentation.
Below commands worked for me

mkdir ~/DW-2.2-cross
cd ~/DW-2.2-cross
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-2.2/samples/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=/home/sindarapu/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_PEGASUS_XT/DRIVEOS/drive-t186ref-linux /usr/local/driveworks-2.2/samples

Dear @ninh.phamngoc,
Could you provide any update for this topic?

Sorry for late reply. Seems like it didn’t work correctly. It still gave me the same errors

CMakeOutput.log (104.3 KB)
These are the error I received and the ouput log file as well. Please give me some suggestions to solve this problem.
Thank you~

Dear @ninh.phamngoc,
I see CUDA 11.8 installed on host . Could you please remove all the other CUDA version and CUDA libs and check uninstall/installing DRIVE release again on host.
If possible, It is preferable to check on freshly installed machine to avoid system stability and lib compatibility issues.

Dear @ninh.phamngoc,
Could you provide any update on this issue?