Cross compiling driveworks is not working

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.2.10884
other (1.9.2.10899)

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi,
I wanted to Cross-Compiling for NVIDIA DRIVE OS Linux according the introduction from the chapter Samples Cross-Compilation From Source
DriveWorks SDK Reference: Getting Started Using the NVIDIA SDK Manager.
I got an error at the first steps.
cmake -B $DRIVEWORKS_WORKSPACE/build-aarch64-linux-gnu
-DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V5L.cmake
-DVIBRANTE_PDK=$LINUX_TOP -S /usr/local/driveworks/samples

I got this error


I have cmake version 3.25.0 and make in Ubuntu.
My NVIDIA_SDK=/home/had/nvidia/nvidia_sdk like the Target HW image folder path and the
$DRIVEWORKS_WORKSPACE denotes the location on the host file system below which I like the compiled samples to be built.

In addtion I found ib-target/version-nv-(pdk/sdk).txt is existing (version-nv-sdk.txt) in my folder.

It seems the two paths don’t match.

it should. I took a screenshot from sdk manager

I meant I saw "nvidia1’ in the path.

I found the issue that I have to replace the * with the drive os version.
It running , but I got this errors.


and this

Please share the steps you took and the commands executed, along with the issue log in text format instead of images. This will enable us to investigate and resolve the issue more efficiently. Thank you.

yes of course. This are the steps.
~$mkdir -p $DRIVEWORKS_WORKSPACE/build-aarch64-linux-gnu
~$ export LINUX_TOP=$NVIDIA_SDK/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux
~$ cmake -B $DRIVEWORKS_WORKSPACE/build-aarch64-linux-gnu -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK=$LINUX_TOP -S /usr/local/driveworks/samples

This is the issue log:
– Found vibrante lib: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/driveworks/samples/3rdparty/linux-aarch64/vibrante/lib/libudev.so
– Found vibrante lib: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/driveworks/samples/3rdparty/linux-aarch64/vibrante/lib/libusb-1.0.so
– Found vibrante_Xlib: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/driveworks/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXcursor.so
– **** Please copy the contents of /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/build-aarch64-linux-gnu/install/usr/local/driveworks/samples/bin' on the host filesystem to /usr/local/driveworks/samples/bin’ on the target filesystem. ****
CMake Error at cmake/FindCUDART.cmake:100 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:99 (find_package)

– Found CUDART: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/cuda/targets/aarch64-linux/include (found version “11.4.327”)
CMake Error at cmake/FindcuBLAS.cmake:100 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:100 (find_package)
– Found cuBLAS: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/cuda/targets/aarch64-linux/include (found version “11.4.327”)

and
– Found ‘dw/core/DynamicMemory.h’ in /usr/local/driveworks-5.10/targets/aarch64-Linux/include
– Found dwdynamicmemory library in /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/driveworks-5.10/targets/aarch64-Linux/lib/libdwdynamicmemory.so
CMake Error at cmake/FindcuDLA.cmake:98 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:120 (find_package)

– Found cuDLA: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/cuda/targets/aarch64-linux/include (found version “11.4.327”)
– Found cuPVA: /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux/filesystem/targetfs/usr/local/driveworks/targets/aarch64-Linux/include/cupva
– Could NOT find NvMedia (missing: NvMedia_INCLUDE_DIR NvMedia_LIBRARY)

Please use 6.0.6 path (DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS) instead of wildcards.

oh yes we used the version instead of wildcards. I forgot to add in the comment.
export LINUX_TOP=$NVIDIA_SDK/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/drive-linux and then get issue logs. I updated my previous comment with the version

Is the end of line period a typo?

Is this intended?

sorry. I updated the comment now. I added wrongly the dot and one line of the output.

I tried to follow this message from the errors **** Please copy the contents of /home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS/build-aarch64-linux-gnu/install/usr/local/driveworks/samples/bin' on the host filesystem to /usr/local/driveworks/samples/bin’ on the target filesystem. ****
I don’t have the folder install/usr/local/driveworks/samples/bin too. I assume they will created after the cmake.

Is it possible that DRIVEWORKS_WORKSPACE=/home/had/nvidia/nvidia_sdk/DRIVE_OS_6.0.6_SDK_Linux_DRIVE_AGX_ORIN_DEVKITS/DRIVEOS is not optimal?
or is the reason because of – Could NOT find NvMedia (missing: NvMedia_INCLUDE_DIR NvMedia_LIBRARY)?

I’ll check this with our team and get back to you. Thanks.

I deleted the folder and run it again. I got the same error, but another spot. Please look at the cmake error.log
CMakeError.log (10.7 KB)

This seems not for DriveWorks samples. Please track with another forum topic. Thanks.

In the meantime, you can refer to DriveWorks SDK Reference: Getting Started Using the NVIDIA DRIVE OS NGC Docker Container and try with docker container.

Cross compilation works on my side with cmake 3.16.3.
Please try with the cmake version installed by sdkmanager and ignore the message to execute the ‘make’ command.

Hi,
I got this error with my cmake version 3.25.0 .
make: *** No targets specified and no makefile found. Stop.
Where can I find the cmake from the sdkmanager and how to switch to the cmake from sdk manager?