Quickstart guide
This guide will help you use the QNX Toolkit to quickly develop a program so you can run it on a QNX OS target.
Prerequisites
The QNX Toolkit has the following prerequisites:
- Linux (at least Ubuntu 20 x86_64), or Windows (at least Windows 10 x86_64)
- QNX Software Development Platform (SDP) 8.0 installed, including the following updates:
Name Minimum version com.qnx.qnx800.host.linux.x86_64.qlicense 8.0.0.00075T202404171128L com.qnx.qnx800.host.win.x86_64.qlicense 8.0.0.00075T202404171128L - Installation of Microsoft Visual Studio Code
- VS Code Extension: Microsoft C/C++ (required for C/C++ development). The Microsoft C/C++ extension might prompt you to complete its walkthrough, but this isn’t necessary to complete installation.
- VS Code Extension: Trace Viewer for VSCode (required for the System Profiler)
- Java Runtime Environment (JRE) 17 or higher (required for the System Profiler). If you already have Java installed for QNX Momentics, then you can point to this same installation using the Java Search Path.
- System running QNX OS connected over IP or local virtual environment (QEMU, VMware, or VirtualBox)
- CMake (only for CMake project types). If you use makefiles or other project types, then this extension isn't required.
Installation
The QNX Toolkit is an extension for Visual Studio Code that can be downloaded and installed from the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=qnx.qnx-vscode
After successful installation of QNX Toolkit in Visual Studio Code, you can refer to the Overview tab found on the QNX Toolkit installation page and complete the Getting started with QNX Toolkit walkthrough. You can also refer to the steps below:
Getting started
To: | Go to: |
---|---|
Set the default path to the directory location where QNX projects, targets, and examples are created. By default, the QNX projects root is set to the qnxprojects directory inside your home directory. | Developing QNX Projects |
Configure the SDP path. | Configure the directory location of the QNX Software Development Platform using the Qnx: Sdp Path setting.
Alternatively, to use values from environment variables, enter use_env.
Scripts for setting up the environment are provided in the root directory of your QNX SDP installation.
After running the scripts, launch VS Code from the command line for the changes to take effect.
For more information about the specific environment variables, go to
Choosing the OS version for building programsin the Programmer's Guidechapter of Programming. Note:
QNX Toolkit requires an associated QNX SDP to operate; it must be installed independently. |
Create a default target. Enter an IP or hostname to connect to a QNX system on the network. Enter vm to begin creating a QNX OS virtual machine. | Managing targets |
Create a project. Create example projects to help you get started developing applications for the QNX OS. | Creating a project |
Debug and launch application. | Debugging and Launching |
Analyze system behavior with the System Profiler. | Using the System Profiler |