Error with Cross-Compiling for the NVIDIA DRIVE Platform

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
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’m trying to cross-compile the DriveWorks sample for the NVIDIA DRIVE Platform with reference to:

I thought it was necessary to specify the cudnn path with the DCMAKE_PREFIX_PATH option, so I added this to the cmake options and ran it.
As a result, the following error occurred.
Can you help me resolve this error?

jpc00208119@JPC00208119:~/test/samples/build$ sudo cmake -DCMAKE_BUILD=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=/home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux -DTRT_VERSION:STRING= -DCMAKE_PREFIX_PATH="/home/jpc00208119/test/samples/3rdparty/linux-x86/cudnn-" ..
-- VIBRANTE_PDK = /home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux
-- Vibrante version
-- Found /home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/lib-target/
--  - Includes: [/home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/include]
--  - Libraries: [/home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/lib-target/]
-- Found: /home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/lib-target/
-- Header at: /home/jpc00208119/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/include
-- DW_EXPERIMENTAL_FORCE_EGL set and EGL Support Enabled
-- Cross Compiling for Vibrante
-- Building with TRT version and cudnn version, pdk version
-- Building GLFW for X11 (static)
CMake Error at cmake/Samples3rdparty.cmake:14 (find_package):
  Could not find a package configuration file provided by "vibrante" with any
  of the following names:


  Add the installation prefix of "vibrante" to CMAKE_PREFIX_PATH or set
  "vibrante_DIR" to a directory containing one of the above files.  If
  "vibrante" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:58 (include)

-- Configuring incomplete, errors occurred!
See also "/home/jpc00208119/test/samples/build/CMakeFiles/CMakeOutput.log".
See also "/home/jpc00208119/test/samples/build/CMakeFiles/CMakeError.log".

I referred to the post below.

My DRIVE AGX has been flushed by the SDK manager.

Dear @Keisuke.Sakamoto,
Please install the cuda cross compilation libs and follow the instructions provided in DriveWorks SDK Reference: Cross-Compiling for the NVIDIA DRIVE Platform (Linux).

$ cd $HOME 
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release  -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-3.5/samples/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=/path/to/drive-t186ref-linux -DTRT_VERSION:STRING= /usr/local/driveworks-3.5/samples/
$ make -j
$ make install

Hello SivaRamaKrishnaNV,

Thank you for your help.
My problem seemed to be due to not having driveworks_cross_linux–drive-linux-.deb installed on my host system.
After installing this I was able to run cmake.

Thank you,


Dear @Keisuke.Sakamoto,
Ok. You need to select flashing target as well when you install using sdkmanager. It installs the required cross compilation setup on host