Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Getting started with qnx projects in clion
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

Getting Started With QNX® Projects in CLion

Source: The JetBrains Blog•November 30, 2026 at 02:55 PM

Getting Started With QNX® Projects in CLion

QNX is a Unix-like real-time operating system used where C and C++ code must be fast, predictable, and maintainable for many years. It powers digital cockpits, medical devices, and robots – from robotic arms on factory lines to autonomous mobile robots in warehouses. Starting with CLion…

A Cross-Platform IDE for C and C++

News Tips & Tricks

QNXis a Unix-like real-time operating system used where C and C++ code must be fast, predictable, and maintainable for many years. It powers digital cockpits, medical devices, and robots – from robotic arms on factory lines to autonomous mobile robots in warehouses.

Starting with CLion 2026.3.0.3, you can build, deploy, and debug QNX applications in the IDE. The QNX OS for CLion plugin connects CLion to your QNX Software Development Platform (SDP), so code completion and navigation cover the QNX Neutrino APIs. The integration currently only works with Makefile projects. You can debug on a QNX target over SSH, including across shared library boundaries.

In this post, we’ll go from a clean Linux machine to a debugging session on a running QEMU target. At the end, we’ll run the same demo project on a Raspberry Pi 5 board to show how the integration works with real hardware.

What you’ll need:

  • CLion 2026.3.0.3 or later, with the QNX OS for CLion plugin enabled.
  • QNX SDP 8.0, installed through the QNX Software Center.
  • A QEMU or Raspberry Pi 5 target. We’ll use a QNX image running in QEMU on a Linux host as a primary example. The setup for a target running on a physical Raspberry Pi 5 board is mostly the same – we’ll explain how to configure it at the end of the post.
  • The sample project.

For testing and non-commercial use, you can get CLion and QNX SDP for free. For commercial development, you’ll need licenses for both. Also, CLion’s plugin doesn’t include or distribute QNX licenses. It works with an existing licensed QNX SDP installation.

The commands below are for Ubuntu. On other Linux distributions, use the equivalent commands for your package manager.

Step 1: Set up the QNX SDP and a QEMU target

Before opening anything in CLion, let’s prepare the QNX environment: the SDP, which provides the compilers, debugger, and target tools, and a virtual QNX target to run your code on.

Install the QNX SDP

  • Sign in to your account at qnx.com and download the QNX Software Center for Linux. You need to add a commercial or non-commercial license to your account before running the installer.
  • Run the installer from the directory you downloaded it to:
  • In the QNX Software Center, click Add Installation and select QNX Software Development Platform 8.0. By default, it goes to ~/qnx800:

To check the installation, load the SDP environment in a terminal:

The qnxsdp-env.sh script adds the QNX tools to your PATH and sets QNX_HOST and QNX_TARGET, which point the tools to the host binaries and to the QNX headers and libraries. These changes apply only to the current terminal session, so source it again in every new terminal where you want to use QNX command-line tools. Later, CLion will be configured to use the same script as the toolchain environment file, so you won’t need to source it manually for builds launched from the IDE.

You can also check the lists of available compiler targets:

You should see the GCC-based targets for x86–64 and ARM64:

Install QEMU

The SDP’s mkqnximage tool builds a ready-to-run QNX image for QEMU. It uses libvirt’s virtual network to connect the target to your machine. Install QEMU together with the networking packages:

If you plan to build an ARM64 image (--arch=aarch64le), also install qemu-system-arm.

Add your current user to the kvm and libvirt groups so that QEMU can use hardware virtualization:

Reboot your machine for the changes to take effect.

After the reboot, check that libvirt’s default network is active:

You don’t need to start libvirt yourself – it starts on demand when a client connects. If virsh reports Permission denied, your session probably doesn’t have the new group membership yet. Check it with id -nG, which should list kvm and libvirt.

If the default network is listed as inactive, start it and enable it on boot:

Create and boot a QNX target

mkqnximage comes with the SDP and writes the image to the current directory. After rebooting, load the SDP environment again, then create a directory for the image:

The target boots right in your terminal. When you see Startup complete, QNX is up and running, and its SSH server is already started:

The console drops you straight into a shell without requiring a login.

Run ifconfig there and note the inet address of the vtnet0 interface. On libvirt’s default network, it’s in the 192.168.122.x range:

This is how CLion will reach the target over SSH in the next steps. The default image comes with a few users whose passwords match their usernames. For example, you can log in as root with the password root. Give it a try from the host:

To shut down the target, press Ctrl+A, then X, in its console, or run mkqnximage --stop from ~/qnx-target in another terminal.

To start it again, run mkqnximage --run from ~/qnx-target, in a terminal where you’ve sourced qnxsdp-env.sh.

If you want to avoid the source step in every new terminal, you can add the line to ~/.bashrc: echo 'source ~/qnx800/qnxsdp-env.sh > /dev/null' >> ~/.bashrc

Step 2: Connect CLion to the SDP

We’ll use a simple C application to demonstrate how to configure, build, run, and debug a QNX Makefile project in CLion. Clone it from the CLion Welcome screen using Clone Repository, or from File | New | Get from Version Control.

CLion recognizes the Makefile and offers to load the project with the Clean project option selected.

Keep it selected and click OK. CLion learns about your sources by analyzing what make would do, and it skips source files whose targets are already up to date.

At this point, CLion doesn’t know about the SDP yet, so the first load reports No compilation commands found, and the editor says that files don’t belong to any project target. That’s expected – we’ll fix it in a minute.

If CLion doesn’t load the folder as a Makefile project, right-click Makefile in the Project view and choose Load Makefile Project.

Go to Settings | Build, Execution, Deployment | Embedded Development | QNX OS and configure the following:

  • SDP path: The automatically detected folder with the SDP installed. If you want to use a different directory, make sure it contains the qnxsdp-env.sh script.
  • Target: The SSH connection to the target. Select <create configuration> and set up a new connection: Host: The target’s IP address from Step 1. Port: 22. Username: root. Authentication type: Password. Password: root (you can also select Save password). Keep the Legacy session backend selected. Click Test Connection to check that CLion can reach the target.
  • Host: The target’s IP address from Step 1.
  • Port: 22.
  • Username: root.
  • Authentication type: Password.
  • Password: root (you can also select Save password).
  • Keep the Legacy session backend selected.
  • Click Test Connection to check that CLion can reach the target.
  • Upload path: The directory where CLion uploads the built binary. You can use the default /tmp path.

For building and code insight, configuring just the SDP path is enough.

Click OK. CLion reloads the Makefile project and can now analyze your code with qcc and the QNX headers from the SDP.

Step 3: Build and run the project

To build a sample project, click the corresponding icon on the main toolbar:

Make sure the all run configuration is selected. The other configurations are generated by the QNX build system, so you can ignore or delete them.

By default, the sample builds for both x86–64 and ARM64 architectures. To build only what you need, go to Settings | Build, Execution, Deployment | Makefile and set Build options, for example, to: --jobs=8 CPULIST=x86_64 VARIANTLIST=g. This builds just an x86–64 debug binary. CPULIST and VARIANTLIST are standard variables of the QNX recursive build. Note that the field replaces CLion’s default --jobs option, so you’ll need to add it back yourself.

Before running the program, set the executable path and program arguments in the all configuration:

  • Select Run | Edit Configurations | all | Edit.
  • Set the executable path in Executable. For this sample project, it’s ~/CLionProjects/qnx-sample-blog/nto/x86_64/o-g/qnx-sample-blog_g.
  • Add the program arguments. In our case, a b c.
  • Click OK, and then Run.

You’ll see the output like this:

Step 4: Create a QNX debug profile and start debugging

A debug profile tells CLion which debugger to use and where to run the program. The plugin adds a new profile type designed specifically for debugging QNX targets.

Create the profile

Go to Settings | Build, Execution, Deployment | Debugger | Debug Profiles, click +, and select QNX OS.

Then fill in the fields:

  • Name: Choose any name you like.
  • Debugger: The SDP’s GDB for your target architecture: ~/qnx800/host/linux/x86_64/usr/bin/ntox86_64-gdb for x86–64. For an ARM64 target, use ntoaarch64-gdb from the same directory.

Available for all projects is selected by default, so you can reuse the profile in your other QNX projects.

Click OK and select the configured debug profile in the toolbar switcher.

Start debugging

Open argstats.c and set a breakpoint on line 14, at size_t len = strlen(argv[i]);. Click Debug.

Now you can explore the sample further. For example, step through the code or set a conditional breakpoint to jump straight to a specific iteration. Check CLion’s debugger documentation to learn more about its functionality.

Try agentic debugging

The sample program contains a bug that we intentionally left in to demonstrate agentic debugging in CLion. If you pass more than three arguments, for example, a b c d, the program crashes with SIGSEGV. You can then ask an AI agent to find the cause and fix it, and the agent uses CLion’s Model Context Protocol (MCP) tools to run a debug session on its own.

For this post, we used Claude Code with the Opus 5.5 model, explicitly asking the agent to find the cause of the crash and debug the program. That was enough for the agent to understand that it should use the appropriate IDE debugger tools. Other models, for example smaller ones, may look for the bug by reading the code or debug the program with a command-line debugger. In larger projects with thousands of lines of code and many dependencies, skipping the MCP tools may take more steps and use more tokens; so make sure your prompt is sufficiently descriptive.

Run the project on a Raspberry Pi 5 board

Configuring CLion for a QNX target on real hardware, such as Raspberry Pi 5, works much like the QEMU setup. The main differences are how you get the target’s IP address and which debugger you select.

The section assumes that you have set up the QNX SDP in Step 1, connected the board to your computer, and booted a QNX target. For this post, we used the UART serial port to obtain the IP address, then the LAN port to communicate with the device via SSH when running and debugging the program. The QNX image was taken from the SDP 8.0 BSP for Raspberry Pi 5 package available in the QNX Software Center.

After opening the project in CLion, enable the Serial Connections tool window in the toolbar on the left. Then connect to your device, which is /dev/ttyACM0 in our case:

In the console, run ifconfig to find the target’s IP address:

Copy the inet address from the output and paste it into the Target field in Settings | Build, Execution, Deployment | Embedded Development | QNX OS, as described in Step 2.

Because the board uses ARM64 architecture, you have to choose the corresponding executables:

  • In the Executable field of your run configuration (see Step 3).
  • In the Debugger field of your debug profile (see Step 4).

Running and debugging then work the same way as with the QEMU target.

What’s next

This is the first version of QNX support in CLion, and we’re already working on the next steps. We’re exploring how CLion’s AI capabilities, such as MCP tools for agentic debugging, can further support QNX-specific development tasks. We’re also looking into support for attaching the debugger to a process that is already running on the target.

Try the QNX integration and tell us what you think. Your feedback can help shape what comes next. Share your thoughts in the comments below or report issues and ideas in our issue tracker.

QNX® is a trademark or registered trademark of BlackBerry Limited, the exclusive rights to which are expressly reserved.

DOWNLOAD CLION

Discover more

← All articles

What this article says

More in Software Development

All →
Product usage emails: send email from the events your app tracks
Loops

Product usage emails: send email from the events your app tracks

Guest phone numbers missing from your online bookings? Here's what to do in RMS
Rms Cloud

Guest phone numbers missing from your online bookings? Here's what to do in RMS

Apple strikes deals with news publishers to make Siri AI more usefulПресса
Apple

Apple strikes deals with news publishers to make Siri AI more useful

How athenaPayer® helps scale medical ePA
Athenahealth

How athenaPayer® helps scale medical ePA

L3Harris Updated Statement Related to the Nov. 13 Ground Stop
L3Harris

L3Harris Updated Statement Related to the Nov. 13 Ground Stop

Understanding hotel KPIs and performance metrics
Cloudbeds

Understanding hotel KPIs and performance metrics

More from JetBrains

Kodee’s Kotlin Roundup: Build Your Next App With One Prompt, a New Coroutines Course, and Kotlin on LinkedIn
JetBrains

Kodee’s Kotlin Roundup: Build Your Next App With One Prompt, a New Coroutines Course, and Kotlin on LinkedIn

Sunsetting the R plugin
JetBrains

Sunsetting the R plugin

Getting Started With Air in RustRover
JetBrains

Getting Started With Air in RustRover

JetBrains Subscription Prices Will Increase on February 1, 2027
JetBrains

JetBrains Subscription Prices Will Increase on February 1, 2027

Keep Your AI Coding Agent on a Short Leash with TDD
JetBrains

Keep Your AI Coding Agent on a Short Leash with TDD

Introducing the Kotlin Security Newsletter
JetBrains

Introducing the Kotlin Security Newsletter