building and running jetson inference examples on the jetson xavier nx

A more complete and correct version of these instructions is here: https://arcanesciencelab.wordpress.com/2020/05/31/building-and-running-jetson-inference-examples-on-the-jetson-xavier-nx-corrected/


These are directions for building and running the Jetson Inference examples on the Jetson Xavier NX running JetPack 4.4 Developer Preview. Jetson Inference was originally released for the Jetson Nano. It’s been a while since I worked with these examples on that platform, and I did not document anything, as it all seemed to work back then.

These are tl;dr instructions for guaranteed application building.

First, install the following packages:

sudo apt install libglew-dev qt5-default

Then clone a copy of Jetson Inference. You can do this anywhere, but do it in a part of the file system where you have normal (non-root) access.

git clone https://github.com/dusty-nv/jetson-inference.git

This will produce a new folder jetson-inference. Change directory into jetson-inference and execute the following git command.

git submodule update --init

Execute CMake to create the necessary build infrastructure.

cmake .

Then execute make.

make

Assuming you have all six NX cores enabled, and are building on an SSD (not the boot SDXC card), then it should build fairly quickly.

Now for the running part. As a very basic smoke test, attach a Raspberry Pi Camera Module V2 to the CAM0 port. That port is on the edge of the bottom circuit board right above the power barrel connector. You might want to power down the NX when you do this.

When you come back up change back to the jetson-inference folder, and then:

./aarch64/bin/camera-capture

You should see something on your desktop similar to the following screen capture.

The application, when running, will take over the entire desktop. The small window will allow you to set up the application for other tasks, and if you kill the window, then the entire application exits.

I’m in the process of testing out other features found in the Jetson Interface examples on the NX and will report anything untoward or unusual when time permits. My honeydew list is calling…