Cross compilation Driveworks samples

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 do a cross compilation of driveworks samples following this DriveWorks SDK Reference: Cross-Compiling for the NVIDIA DRIVE Platform (Linux) but I keep getting this error :

melyaagoubi@melyaagoubi-ThinkStation-P310:~/dw_samples/build-agx$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=/home/melyaagoubi/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS/drive-t186ref-linux/ -DTRT_VERSION:STRING= /usr/local/driveworks/samples/
– VIBRANTE_PDK = /home/melyaagoubi/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS/drive-t186ref-linux/
CMake Error at cmake/Toolchain-V5L.cmake:43 (message):
Can’t determine target device for PDK:
Call Stack (most recent call first):
/usr/share/cmake-3.17/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:16 (project)

CMake Error: CMake was unable to find a build program corresponding to “Unix Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!

Hi, @mohammed.el-yaagoubi
Is /home/melyaagoubi/nvidia/nvidia_sdk/DRIVE_OS_5.2.0_SDK_Linux_OS_DRIVE_AGX_XAVIER/DRIVEOS/drive-t186ref-linux/ the right directory? Were the target components installed successfully via SDK Manager ?
Have you cross-compiled successfully before?
DriveWorks 4.0 was released. Would you like to move to DRIVE OS 5.2.6 and DriveWorks 4.0?

Yes AGX DRIVE is the right target and all the components were successfully installed via SDK Manager.
I have already done a cross-compilation before.
No I would like to keep DRIVE OS 5.2.0 and DriveWorks 3.5

I haven’t seen the failure. Could you figure out why it worked before?

It is the first time I get this error. Should I define the path with export CMAKE_MAKE_PROGRAM ?

I don’t think it’s necessary.
I would think about why last time didn’t have the error.
Was the last successful build done on the same host?

Yes it was done on the same host. I can do a compilation but it is the cross compilation that causes problems

Please remove the line ending slash of your DVIBRANTE_PDK path in your command and try again.

change from:

Does it solve your problem?