Still struggling to run samples :(

Good day, trying to compile / run the C++ sample code - but really keep on running getting error- -after-error … here is output of one of a simple sample projects (Jetson inference)

I really would like to get just one (the simplest one) working – then we can try more complex samples)

root@Jetsonsun:/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference# cd build/root@Jetsonsun:/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build# make[  1%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(40): error: identifier “uint64_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(40): error: identifier “uint64_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(41): error: identifier “uint32_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(41): error: identifier “uint32_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(42): error: identifier “uint16_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(42): error: identifier “uint16_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(50): error: identifier “uint64_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(50): error: identifier “uint64_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(51): error: identifier “uint32_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(51): error: identifier “uint32_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(52): error: identifier “uint16_t” is undefined
/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build/aarch64/include/jetson-utils/endian.h(52): error: identifier “uint16_t” is undefined
12 errors detected in the compilation of “/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/utils/cuda/cudaYUV-YV12.cu”.CMake Error at jetson-utils_generated_cudaYUV-YV12.cu.o.cmake:279 (message):Error generating file /media/pc/7CD9-533C/Jetsonsamples/jetson-inference/jetson-inference/build/utils/CMakeFiles/jetson-utils.dir/cuda/./jetson-utils_generated_cudaYUV-YV12.cu.o
make[2]: *** [utils/CMakeFiles/jetson-utils.dir/build.make:2098: utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o] Error 1make[1]: *** [CMakeFiles/Makefile2:720: utils/CMakeFiles/jetson-utils.dir/all] Error 2root@Jetsonsun:/media/pc/7CD9-533C/Jetson samples/jetson-inference/jetson-inference/build#

Thanks in advance !

*** Please note that this reply is generated by LLM automatically ***

I’d be happy to help you troubleshoot the issues you’re facing with compiling and running the C sample code on your Jetson AGX Orin device.

Firstly, I’d like to acknowledge that the Jetson AGX Orin is a powerful device with a complex software architecture, and it’s not uncommon to encounter errors when trying to compile and run sample code.

To better understand the issue, could you please provide more details about the error messages you’re seeing? This will help me narrow down the possible causes and provide more specific guidance.

That being said, here are some general troubleshooting steps you can try:

  1. Verify the toolchain: Make sure you have the correct toolchain installed and configured for your Jetson AGX Orin device. You can refer to the “Jetson Linux Toolchain” section in the documentation for more information.
  2. Check the sample code: Ensure that the sample code you’re trying to compile and run is compatible with your Jetson AGX Orin device. You can check the documentation for the specific sample code you’re using to see if it has any specific requirements or dependencies.
  3. Review the build process: Take a closer look at the build process for the sample code. Make sure that all the necessary dependencies are being linked correctly, and that there are no errors during the compilation process.
  4. Check the environment variables: Verify that the environment variables are set correctly for your Jetson AGX Orin device. This includes variables such as CROSS_COMPILE, ARCH, and TARGET.
  5. Try a different sample code: If you’re still having issues with the sample code you’re trying to compile and run, try using a different sample code to see if the issue is specific to that particular code.

In terms of comparing the Jetson AGX Orin to other devices, it’s worth noting that the Jetson AGX Orin has a unique architecture that requires specific toolchains and software configurations. While some sample code may work on other devices, it may not work on the Jetson AGX Orin without modifications.

To give you a better idea of the differences between the Jetson AGX Orin and other devices, here’s a brief comparison:

  • Jetson Xavier NX Series: The Jetson Xavier NX Series has a similar architecture to the Jetson AGX Orin, but with some key differences. The Xavier NX Series has a more compact design and is optimized for edge AI applications.
  • Jetson AGX Xavier Series: The Jetson AGX Xavier Series is a more powerful device than the Jetson AGX Orin, with a more advanced architecture and additional features such as support for PCIe and SATA.
  • Other devices: Other devices, such as the Raspberry Pi or the NVIDIA Drive PX 2, have different architectures and software configurations that may not be compatible with the Jetson AGX Orin.

I hope this information helps! If you have any further questions or would like more specific guidance, please don’t hesitate to ask.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Thank you for reaching out. I will tackle this tomorrow morning when I’m back in the office.

Pieter Claassens

// C++, C# Developer | Pentester | ICT security presales consultant

+27 83 561 8577 || +27 68 742 8101 (WhatsApp)

Hi,

Please note that jetson-inference is deprecated since the repo owner has stepped down.
You will need to set up the device with JetPack 6.0 to be compatible with the jetson-inference.
Then you can find the building steps in detail below:

Thanks.

Man, getting this NVIDIA drivers installed is really turning into a headache ! Here is an output of my latest attempt …

root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# sudo apt-get install nvidia-settings
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-settings : Depends: libc6 (>= 2.38) but 2.31-0ubuntu9.18 is to be installed
Depends: libgdk-pixbuf-2.0-0 (>= 2.22.0) but it is not installable
Depends: libglib2.0-0t64 (>= 2.16.0) but it is not installable
Depends: libgtk-3-0t64 (>= 3.0.0) but it is not installable
Depends: libgtk2.0-0t64 (>= 2.8.0) but it is not installable
Depends: libjansson4 (>= 2.14) but 2.12-1build1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# ubuntu-drivers devices

root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# ^C
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# sudo apt-get install root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# sudo apt-get install nvidia-settings
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29
E: Couldn’t find any package by glob ‘root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29’
E: Couldn’t find any package by regex ‘root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29’
E: Unable to locate package apt-get
E: Unable to locate package install
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Reading package lists… Done
bash: Reading: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Building dependency tree
bash: Building: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Reading state information… Done
bash: Reading: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Some packages could not be installed. This may mean that you have
bash: Some: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# requested an impossible situation or if you are using the unstable
bash: requested: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# distribution that some required packages have not yet been created
bash: distribution: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# or been moved out of Incoming.
bash: or: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# The following information may help to resolve the situation:
bash: The: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build#
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# The following packages have unmet dependencies:
bash: The: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# nvidia-settings : Depends: libc6 (>= 2.38) but 2.31-0ubuntu9.18 is to be installed
bash: syntax error near unexpected token (' root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Depends: libgdk-pixbuf-2.0-0 (>= 2.22.0) but it is not installable bash: syntax error near unexpected token (’
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Depends: libglib2.0-0t64 (>= 2.16.0) but it is not installable
bash: syntax error near unexpected token (' root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Depends: libgtk-3-0t64 (>= 3.0.0) but it is not installable bash: syntax error near unexpected token (’
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Depends: libgtk2.0-0t64 (>= 2.8.0) but it is not installable
bash: syntax error near unexpected token (' root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# Depends: libjansson4 (>= 2.14) but 2.12-1build1 is to be installed bash: syntax error near unexpected token (’
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# E: Unable to correct problems, you have held broken packages.
bash: E:: command not found
root@Jetsonsun:/home/pc/Downloads/glibc-2.42/build/glibc-2.42/glibc-build/glibc-2.29/build# apt-get install libjansson4
Reading package lists… Done
Building dependency tree
Reading state information… Done
libjansson4 is already the newest version (2.12-1build1).

so, libjansson4 is already the newest version but above it complains that it Depends on libjansson4 – mind boggling!

Two more things I tried:

  1. CLI command → "ubuntu-drivers devices: —> none suggested - i.e. empty results
  2. sudo apt-get install -y nvidia-open → Error:

|"The following packages have unmet dependencies:
nvidia-open : Depends: nvidia-driver-580-open (>= 580.65.06) but it is not going to be installed or
nvidia-driver-580-server-open (>= 580.65.06) but it is not installable
E: Unable to correct problems, you have held broken packages.

Hi there, still having a few issues, dumped all the errors, etc in the forum post: https://forums.developer.nvidia.com/t/still-struggling-to-run-samples/343945/6?u=pieter17

Pieter Claassens

// C++, C# Developer | Pentester | ICT security presales consultant

+27 83 561 8577 || +27 68 742 8101 (WhatsApp)

Also kind of stuck here with the driver installation > out put of sudo apt-get install -y nvidia-open command:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-open : Depends: nvidia-driver-580-open (>= 580.65.06) but it is not going to be installed or
nvidia-driver-580-server-open (>= 580.65.06) but it is not installable
E: Unable to correct problems, you have held broken packages.

Okay - I’m going back to basics here… following the Tutorial 01 - Say Hello to CUDA .. (@ https://cuda-tutorial.readthedocs.io) .. I used the sample code , compiled it sucessfully but .. I am checking if the method invocation is working .. nope… compiled without error - runs okay - but ya - not the method I am calling…

trying to install nvidia-open → comlains about : the install script compalims about nvidia-driver-580-open & *-server-open… (not installable)

Good morning,

Okay - tried again this morning (installing nvidia-open) with root privileges:

Error: “Could not find a version that satisfies the requirement nvidia-open (from versions: none)”

Error: “No matching distribution found for nvidia open”

// tried with root privileges…

More installation errors.
I would really appreciate some tips / guidelines on this please :)

sudo apt-get install -y nvidia-open

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-open : Depends: nvidia-driver-580-open (>= 580.65.06) but it is not going to be installed or
nvidia-driver-580-server-open (>= 580.65.06) but it is not installable
E: Unable to correct problems, you have held broken packages.


sudo apt install nvidia-jetpack

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-jetpack : Depends: nvidia-jetpack-runtime (= 5.1.3-b29) but it is not going to be installed
Depends: nvidia-jetpack-dev (= 5.1.3-b29) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

— more containers errors —

**root@Jetsonsun:/home/kopbeen/vision#

sudo apt install nvidia-container**

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-container : Depends: libnvidia-container-tools (= 1.10.0-1) but 1.17.8-1 is to be installed
Depends: nvidia-container-toolkit (= 1.11.0~rc.1-1) but 1.17.8-1 is to be installed
Depends: libnvidia-container1 (= 1.10.0-1) but 1.17.8-1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@Jetsonsun:/home/kopbeen/vision# sudo apt install nvidia-container1
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package nvidia-container1
root@Jetsonsun:/home/kopbeen/vision#

sudo apt install libnvidia-container1

Reading package lists… Done
Building dependency tree
Reading state information… Done
libnvidia-container1 is already the newest version (1.17.8-1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
root@Jetsonsun:/home/kopbeen/vision# *

sudo apt install nvidia-container-toolkit*

Reading package lists… Done
Building dependency tree
Reading state information… Done
nvidia-container-toolkit is already the newest version (1.17.8-1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
root@Jetsonsun:/home/kopbeen/vision# *sudo apt install libnvidia-container-tools*
Reading package lists… Done
Building dependency tree
Reading state information… Done
libnvidia-container-tools is already the newest version (1.17.8-1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
root@Jetsonsun:/home/kopbeen/vision#

sudo apt install nvidia-container

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-container : Depends: libnvidia-container-tools (= 1.10.0-1) but 1.17.8-1 is to be installed
Depends: nvidia-container-toolkit (= 1.11.0~rc.1-1) but 1.17.8-1 is to be installed
Depends: libnvidia-container1 (= 1.10.0-1) but 1.17.8-1 is to be installed
E: Unable to correct problems, you have held broken packages.

Hi,

Sorry for the late update.
GPU driver for JetPack 6.x is integrated in the OS, so you don’t need to install it.

To run the jetson-inference sample, please try the following steps:

  1. Set up your device with JetPack 6.0 with all components installed.
  2. Build the repo from source with the command in this link.

Thanks.