C
NVIDIA Jetson Quick Start Guide
Qt offers all the necessary tools to design, develop, build, and deploy your application onto the target.
This guide describes how to use the GUIs of Qt tools to develop Linux applications on an NVIDIA Jetson device. It describes the overall process and provides step-by-step instructions for the following tasks:
- Designing a simple UI using Qt Design Studio.
- Creating a project in Qt Creator and utilizing the ready-made Boot to Qt image for the NVIDIA Jetson device.
- Building and debugging the project on the target hardware.
Note: Qt for Device Creation requires a license. If you don't have one, you can request a free trial.
Overview
The following figure illustrates the basic concept of the software development process when you're using Qt tools and Boot to Qt Software Stack.
- Development Host is a development computer running Qt tools on Windows, Linux, or macOS.
- Qt tools includes development tools such as Qt Creator and Qt Design Studio, and quality assurance (QA) tools such as Squish.
- QBSP SDK contains a cross-compilation toolchain that is integrated into Qt Creator, and a device image that can be used to boot your device using Boot to Qt Software Stack.
- Target HW is your development target that runs your embedded Linux application.
- Upload and debug an application (via Ethernet, Wi-Fi, or USB). Use Qt Creator to upload and debug your application on the target HW.
- Flash a QBSP image represents ways (such as SD card) to install Linux on the target hardware.
Applicable NVIDIA Jetson Target Devices
The instructions in this guide apply to the NVIDIA Jetson AGX Xavier Developer Kit.
Note: For more details on the supported target devices and development hosts, see Supported Target Devices and Development Hosts.
Installing Qt
Follow the procedures in this guide to get all the required resources, including Qt Creator and Qt Design Studio.
- Sign in to Qt Account Downloads.
- Download the Qt online installer. The installer is available for the following hosts:
- Linux
- Mac
- Windows
- Open the installer.
- Continue to Installation Folder and select Custom installation.
- Select Next.
- In Select Components, select the latest official release of Qt. The required developer and designer tools (such as Qt Creator and Qt Design Studio) are preselected in the installer.
- Select Next.
- Continue to Ready to Install and select Install.
Note: If you have Qt already installed, use the Qt Maintenance Tool to install the missing tools.
Installing Boot to Qt Software Stack Using the Qt Online Installer
- Open the Qt online installer.
- Continue to Select Components and open the top-level Boot to Qt Software Stack dropdown menu.
- Open the correct Qt release -specific Boot to Qt Software Stack dropdown menu.
- Select NVIDIA Jetson AGX Xavier Developer Kit.
- Continue to Ready to Install and select Install.
Creating an Application UI
You can use Qt Design Studio to create a cross-platform UI, also for embedded Linux applications.
- Open Qt Design Studio.
- Select Create Project.
- In Presets, select General.
- Name your project (also notice the project path to open it with Qt Creator).
- Adjust display resolution and orientation to suit your display.
- Make sure your Target Qt Version matches the version of Qt installed on your machine.
- Select Create.
Now you can modify your UI as you wish. Once it is ready, select Save All to make sure that you can open your UI project in Qt Creator.
Installing Boot to Qt on the Target Device
Before you can test your Qt applications on the target device, you must flash the target device with an image containing the Boot to Qt Software Stack. After you have successfully flashed your device, Boot to Qt Startup Screen appears on the screen when you power on the device.
This device can be booted from an internal eMMC or from an SD card. However, the Boot to Qt image only supports an internal eMMC.
Note: Qt Flashing Wizard is not applicable to this device.
Flashing Boot to Qt Image onto the System's Internal eMMC
- Connect the target device to the PC with a suitable USB-C cable.
Note: Connecting the device via a USB hub will significantly decrease the transmission speed during flashing.
- Put the target device into the factory recovery mode.
- Press and hold the factory recovery button.
- If the device is not turned on, press and release the power button. If the device is already turned on, press and release the reset button.
- Release the factory recovery button.
- Run the following scripts to flash the image onto the system's internal eMMC:
cd <INSTALL_DIR>/<Qt version>/Boot2Qt/jetson-agx-xavier-devkit/images mkdir tegraflash cd tegraflash tar xf ../b2qt-embedded-qt6-image-jetson-agx-xavier-devkit.tegraflash.tar.gz ./prepare-image.sh sudo ./doflash.sh
For more detailed information, see Flashing the Jetson Dev Kit.
Note: Flashing the internal eMMC is supported only on a Linux host.
Setting Up a Device
- Open Qt Creator.
- Select Edit > Preferences.
- In the Preferences window:
- Select Devices.
- Select Add > Boot2Qt Device > Start Wizard.
- In the Boot2Qt Network Device Setup window:
- Enter the Device name.
- Enter the Device address (IP address of the NVIDIA Jetson device).
- Select Finish.
- On the Devices tab:
- Select OK.
In addition to using the device over an IP network, it can be used over a USB network when connected via USB On-the-Go (OTG) to the host.
Note: When Qt Creator uploads the application over the IP network, the NVIDIA Jetson device has to be in the same network as your development host PC.
Configuring and Building an Application in Qt Creator
- Open Qt Creator.
- Navigate to the project you created with Qt Design Studio.
- Select CMakeLists.txt to open the project.
- In the Configure Project window:
- Select your NVIDIA Jetson kit.
- Select Configure Project.
Finally, select Build > Build Project to build the project you configured.
Running an Application on a Device
After setting up your device, you can upload and start your application on the NVIDIA Jetson device.
- Open Qt Creator.
- Select File > Open File or Project.
- Navigate to the project you configured earlier and select Open.
- In the Projects window:
- Edit the Run Settings if necessary.
- Select Run.
Note: To make changes to your application, you can update it on the device simply by running it again.
For detailed information about how to deploy Qt projects to the device, see Tutorial: Deploying Your First Project with Boot to Qt.
Debugging an Application
For more information on using Qt Creator to debug an application, see Debugging.
Troubleshooting
If you have any issues with your NVIDIA Jetson device, such as how to setup boot switches or connect the debug terminal, turn to NVIDIA Jetson platform and NVIDIA developer forum for more information.
For more information on troubleshooting Boot to Qt, see Troubleshooting.
Available under certain Qt licenses.
Find out more.