Creating a project
You can create several different types of projects. You can also open sample projects to get up and running quickly with QNX sample code.
The following project types are available:
Project Type | Recommended usage |
---|---|
QNX Recursive Makefile | To create an application or library project which uses QNX's recursive make build system. |
Simple Makefile | To build a QNX OS application or utility using a traditional makefile. |
None | To create an empty QNX project. |
QNX CMake Project | To create an application or library project which uses the CMake build system, in conjunction with the QNX compiler tool chain. |
Other | To create a custom project. |
Create a QNX recursive makefile project
To create a QNX recursive makefile project:
- From the command palette, click Create New QNX Project.
- Enter a name for the project.
- Select QNX Recursive Makefile.
- Select the project language.
- Select artifact type (Executable, Shared Library, or Shared Library and Test Executable). The project is created and you can view the directory structure in the Workspace.

Create a simple makefile project
You can create a simple, GNU-style makefile.
To create a simple makefile project:
- From the command palette, click Create New QNX Project.
- Enter a name for the project.
- Select Simple Makefile.
- Select the project language.
- Select artifact type (Executable, Shared Library, or Shared Library and Test Executable). The project is created and you can view the directory structure in the Workspace.

Create a QNX CMake Project
You can create a QNX CMake project. This type of project uses the CMake build system, in conjunction with the QNX compiler toolchain.
To create a QNX CMake project:
- From the command palette, click Create New QNX Project.
- Enter a name for the project.
- Select QNX CMake Project.
- Select project language.
- Select artifact type (Executable, Shared Library, and Shared Library and Test Executable). The project is created and you can view the directory structure in the Workspace.

Generate an example project
To generate an example project:
- From the command palette, click Generate QNX Example Projects.
- Select a project from the list of example projects in the drop-down menu.
The project is created and you can view the directory structure in the Workspace.
CAUTION:
The QNX Toolkit extension requires a trusted workspace. In Restricted Mode, the QNX and Trace Viewer icons don't show up in the
VS Code Activity Bar.
Page updated: