Please provide the following info (tick the boxes after creating this topic):
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
Target Operating System
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)
SDK Manager Version
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
I needed to create the driveworks samples with Docker. I followed this step
cmake -B /home/nvidia/build-aarch64-linux-gnu \ -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V5L.cmake \ -DVIBRANTE_PDK=/drive/drive-linux -S /usr/local/driveworks/samples
and got this warnings:
Cannot generate a safe runtime search path for target
sample_dataspeedBridge because there is a cycle in the constraint graph:
dir 0 is [/drive/drive-linux/filesystem/targetfs/usr/local/cuda/targets/aarch64-linux/lib/stubs]
dir 1 must precede it due to runtime library [libcublasLt.so]
dir 1 is [/drive/drive-linux/filesystem/targetfs/usr/local/cuda/targets/aarch64-linux/lib]
dir 2 is [/drive/drive-linux/filesystem/targetfs/usr/local/driveworks-5.10/targets/aarch64-Linux/lib]
dir 4 must precede it due to runtime library [libcupva_host.so]
dir 5 must precede it due to runtime library [libglfw.so]
dir 3 is [/drive/drive-linux/filesystem/targetfs/usr/local/driveworks/samples/3rdparty/linux-aarch64/vibrante/lib]
dir 4 is [/drive/drive-linux/filesystem/targetfs/usr/local/driveworks/targets/aarch64-Linux/lib]
dir 2 must precede it due to runtime library [libdw_base.so.5.10]
dir 5 must precede it due to runtime library [libglfw.so]
dir 5 is [/home/nvidia/build-aarch64-linux-gnu/3rdparty/src/glfw]
dir 6 is [/drive/drive-linux/filesystem/targetfs/usr/local/driveworks/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]
Some of these libraries may not be found correctly.```
Could you please provide the full log for further analysis? Also, if you haven’t done so already, please proceed with executing ‘make’ to build the project.
I will add the cmake log
cmake log (79.2 KB)
and the make log.
make log (70.3 KB)
It seems like there are missing folders.
Are there any sample applications that you needed but were not built out?
I got this error.
[30-05-2023 18:36:43] Driveworks exception thrown: DW_FILE_NOT_FOUND: Rig::fromFile: cannot open file: /usr/local/driveworks-5.10/data/samples/sensors/camera/camera/rig.json
The path /samples/sensors/camera/camera/rig.json doesn’t exist in my folder.
I need all the files from the not existing folders.
It appears that the error you encountered is not related to cross-compiling. I understand that you came across this issue while running a specific sample application, whether it was cross-compiled or prebuilt. To address this, could you please create another topic with detailed information regarding the problem? This will allow us to provide you with appropriate assistance. Thank you.
the topic is already there Driveworks sample_camera_usb failed - #3 by louis.ho and I mentioned there that I assume the reason for it would be the missing files from cross compiling .
Got it. If I understand correctly, the topic you mentioned is specifically related to the “sample_camera_usb” application. However, the current topic pertains to an error you encountered while running the “sample_camera” application, specifically a missing file error (Driveworks exception thrown: DW_FILE_NOT_FOUND: Rig::fromFile: cannot open file: /usr/local/driveworks-5.10/data/samples/sensors/camera/camera/rig.json). Is my understanding accurate?
Yes,I got this errors
[30-05-2023 18:36:43] Driveworks exception thrown: DW_FILE_NOT_FOUND: Rig::fromFile: cannot open file: /usr/local/driveworks-5.10/data/samples/sensors/camera/camera/rig.json when I wanted to run sample_camera_usb. I found out this path
/samples/sensors/camera/camera/rig.json didn’t exist.
I remembered that I got warning from cross compiling. I assume the cross compiling caused the missing file and this leads to the error for the sample_camera_usb. If we solve the missing file, maybe this solve the /sample_camera_usb.
should be sample_camera instead of sample_camera_usb.
Have you followed all the steps mentioned in NVIDIA DRIVE Orin Target System Linux aarch64? particularly, those in Samples Binaries Installation. It’s important to ensure that all the instructions are followed accurately to avoid any issues.
I thought the Samples Binaries Installation is “also an alternative, to install and run precompiled samples with no cross-compilation required, please see* Samples Binaries Installation above.” ( Samples Cross-Compilation From Source) and don’t have connection with our case.
I tried both sample_camera and sample_camera_usb . Both are not working and I got the same errors.
I don’t think I had to pay attention to smapes Binaries Installation, because " The NVIDIA DriveWorks SDK is precompiled and preinstalled for the Linux aarch64 architecture on the NVIDIA DRIVE OS Docker image under the path
/usr/local/driveworks/targets/aarch64-Linux to enable cross-compiling samples and applications that leverage the NVIDIA DriveWorks SDK. Source code and CMake project and toolchain files for the NVIDIA DriveWorks SDK samples are located under the path
/usr/local/driveworks/samples ." from samples cross compilation source chapter (DriveWorks SDK Reference: Getting Started Using the NVIDIA DRIVE OS NGC Docker Container)
The file is part of the driveworks-data_*_all.deb package mentioned in Samples Binaries Installation. It appears that the document assumes developers are starting with precompiled binaries and may have missed some steps in the cross-compiling section. Please try with precompiled binaries first. Thanks.
I got the missing files /usr/local/driveworks-5.10/data/samples/sensors/camera/camera/rig.json.
I am still missing /usr/local/driveworks/samples/src.
I don’t have any src files. How can I get the missing src files? I need them for the development.
Cross-compiling is the recommended approach so it’s expected that you won’t find the source files (/usr/local/driveworks/samples/src) on the target device.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.