Problem with Installation of jetson-inference / cmake

Hi everyone,

I am new to the scene, but would like to use a JETSON module to have images evaluated by an AI. The images are to be imported via a network (without integrating a camera).
I was looking for a suitable example and always fail to install jetson-inference. Everything is still copied from repo, but then it ends with cmake …/ step.
Installation similar to here

Is there a newer installation documentation which I can use?
I am using Nvidia Jetson Orin™ Nano 8 GB with an SSD (2 TB).

Thanks you a quick response.
Greetings

Hi,

Could you share more details about the command you run and the error message with us?

Thanks.

Yes and I am sorry that it was missing in the first post.

I followed the instruction from here: GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.

First was the setup with JetPack.

Then Running the Docker Container and here comes the first error
git clone --recursive --depth=1 GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
user@nvidia0:~/jetson-inference$ docker/run.sh
ARCH: aarch64
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R36.3.0
[sudo] password for user:
localuser:root being added to access control list
CONTAINER_IMAGE: dustynv/jetson-inference:r36.3.0
DATA_VOLUME: --volume /home/user/jetson-inference/data:/jetson-inference/data --volume /home/user/jetson-inference/python/training/classification/data:/jetson-inference/python/training/classification/data --volume /home/user/jetson-inference/python/training/classification/models:/jetson-inference/python/training/classification/models --volume /home/user/jetson-inference/python/training/detection/ssd/data:/jetson-inference/python/training/detection/ssd/data --volume /home/user/jetson-inference/python/training/detection/ssd/models:/jetson-inference/python/training/detection/ssd/models --volume /home/user/jetson-inference/python/www/recognizer/data:/jetson-inference/python/www/recognizer/data
DISPLAY_DEVICE: -e DISPLAY=:1 -v /tmp/.X11-unix/:/tmp/.X11-unix
sudo: docker: command not found


Even if i follow the instruction like in the video (Building the Project from Source) I get stuck with the installation.

sudo apt-get update
sudo apt-get install git cmake libpython3-dev python3-numpy
git clone --recursive --depth=1 GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
cd jetson-inference
mkdir build
cd build
cmake …/

but then cames a warning:
CMake Warning (dev) in tools/camera-capture/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run “cmake --help-policy CMP0021” for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of
“camera-capture”:

"CUDA_TOOLKIT_INCLUDE-NOTFOUND"

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tools/camera-capture/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run “cmake --help-policy CMP0021” for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of
“camera-capture”:

"CUDA_TOOLKIT_INCLUDE-NOTFOUND"

CMake Warning (dev) in utils/video/video-viewer/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run “cmake --help-policy CMP0021” for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of “video-viewer”:

"CUDA_TOOLKIT_INCLUDE-NOTFOUND"

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in python/bindings/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run “cmake --help-policy CMP0021” for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

Found relative path while evaluating include directories of
“jetson-inference-python-310”:

"CUDA_TOOLKIT_INCLUDE-NOTFOUND"

This warning is for project developers. Use -Wno-dev to suppress it.

– Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

Do you have an idea what is going wrong here?

Thank you!

1 Like

Hi,

1.

For sudo: docker: command not found, please check below to install docker:

2.

For "CUDA_TOOLKIT_INCLUDE-NOTFOUND", do you install CUDA (included in JetPack components)?
If yes, please try to set the below environment variables:

$ export PATH=/usr/local/cuda-12.2/bin:$PATH
$ export LD_LIBRARY_PATH=/usr/local/cuda-12.2/lib64:$LD_LIBRARY_PATH

Thanks.

Hi,

Thank you for your reply.
You were correct with both points.

  1. After I realized that docker is not installed, I did it and it worked fine.
  2. I was of the opinion that I had already installed CUDA with the JetPack as part of the main installation via SDK manger - but it was not… So I searched for a tutorial “how to install CUDA on ubuntu” (CUDA Installation Guide for Linux).

… and unfortunately I failed again. I don’t know if it’s because of the Linux version and the installed JetPack.
FYI: I am using a SSD memory instead of micro SD card (is this the reason?!)

So I checked my packages by using
sudo apt-cache show nvidia-jetpack
and this is the result

Package: nvidia-jetpack
Source: nvidia-jetpack (6.0)
Version: 6.0+b106
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 6.0+b106), nvidia-jetpack-dev (= 6.0+b106)
Homepage: Jetson - Embedded AI Computing Platform | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_6.0+b106_arm64.deb
Size: 29296

Description: NVIDIA Jetpack Meta Package

Package: nvidia-jetpack
Source: nvidia-jetpack (6.0)
Version: 6.0+b87
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 6.0+b87), nvidia-jetpack-dev (= 6.0+b87)
Homepage: Jetson - Embedded AI Computing Platform | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_6.0+b87_arm64.deb
Size: 29298

Description: NVIDIA Jetpack Meta Package


However, I tried to install CUDA:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda

and the last command brings me following result:

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
cuda : Depends: cuda-12-2 (>= 12.2.12) but it is not going to be installed
libnvidia-decode-535 : Depends: libnvidia-compute-535 (= 535.183.01-0ubuntu0.22.04.1) but it is not going to be installed
nvidia-compute-utils-535 : Depends: libnvidia-compute-535 but it is not going to be installed
nvidia-driver-535 : Depends: libnvidia-gl-535 (= 535.183.01-0ubuntu0.22.04.1) but it is not going to be installed
Depends: libnvidia-compute-535 (= 535.183.01-0ubuntu0.22.04.1) but it is not going to be installed
Depends: libnvidia-extra-535 (= 535.183.01-0ubuntu0.22.04.1) but it is not going to be installed
Depends: nvidia-utils-535 (= 535.183.01-0ubuntu0.22.04.1) but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).


When I try to run
sudo apt --fix-broken install
I get following result:


Unpacking libnvidia-compute-535:arm64 (535.183.01-0ubuntu0.22.04.1) …
dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-535_535.183.01-0ubuntu0.22.04.1_arm64.deb (–unpack):
trying to overwrite ‘/usr/lib/aarch64-linux-gnu/libcuda.so’, which is also in package nvidia-l4t-cuda 36.3.0-20240719161631
Preparing to unpack …/libnvidia-gl-535_535.183.01-0ubuntu0.22.04.1_arm64.deb …
Unpacking libnvidia-gl-535:arm64 (535.183.01-0ubuntu0.22.04.1) …
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-535_535.183.01-0ubuntu0.22.04.1_arm64.deb (–unpack):
trying to overwrite ‘/usr/share/glvnd/egl_vendor.d/10_nvidia.json’, which is also in package nvidia-l4t-3d-core 36.3.0-202407
19161631
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack …/libnvidia-extra-535_535.183.01-0ubuntu0.22.04.1_arm64.deb …
Unpacking libnvidia-extra-535:arm64 (535.183.01-0ubuntu0.22.04.1) …
dpkg: error processing archive /var/cache/apt/archives/libnvidia-extra-535_535.183.01-0ubuntu0.22.04.1_arm64.deb (–unpack):
trying to overwrite ‘/usr/lib/aarch64-linux-gnu/gbm/nvidia-drm_gbm.so’, which is also in package nvidia-l4t-gbm 36.3.0-202407
19161631
Preparing to unpack …/nvidia-utils-535_535.183.01-0ubuntu0.22.04.1_arm64.deb …
Unpacking nvidia-utils-535 (535.183.01-0ubuntu0.22.04.1) …
dpkg: error processing archive /var/cache/apt/archives/nvidia-utils-535_535.183.01-0ubuntu0.22.04.1_arm64.deb (–unpack):
trying to overwrite ‘/usr/bin/nvidia-xconfig’, which is also in package nvidia-l4t-x11 36.3.0-20240719161631
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-compute-535_535.183.01-0ubuntu0.22.04.1_arm64.deb
/var/cache/apt/archives/libnvidia-gl-535_535.183.01-0ubuntu0.22.04.1_arm64.deb
/var/cache/apt/archives/libnvidia-extra-535_535.183.01-0ubuntu0.22.04.1_arm64.deb
/var/cache/apt/archives/nvidia-utils-535_535.183.01-0ubuntu0.22.04.1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Sorry for all the questions. Maybe it’s simple and I’m missing something.

Thank you very much for your help!

Hi,

Jetson’s CUDA is included in the JetPack package so you should find it on the /user/local/cuda/.

But the package you installed recently is for the x86 system which is not compatible.
Please remove it and try it again.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.