Set up your environment for QNX
Set up your environment to develop for QNX.
Read time 2 minutesLast updated 2 days ago
Set up your environment to develop with QNX.
To create a Unity application for QNX, you first need to set up your Unity project to support QNX. To support QNX, a Unity project requires certain environment variables and dependencies.
Set the environment variables
After you have installed the Unity Editor, you will need to set the environment variables. Open a terminal window and run one of the following commands to set the environment variables in the local shell and start the Editor from there.
- (Windows)
qnxsdp-env.bat - (Linux and macOS)
source path/qnxsdp-env.sh
Alternatively, you can set the environment variables and either locally in a terminal or globally, and then run the Editor.
QNX_TARGETQNX_HOSTThese are the environment variables you need to set:
QNX_TARGET=/path/to/target/qnxQNX_HOST=/path/to/host/platform/arch- Add to
PATH:(for QNX 7.1 only)$QNX_HOST/usr/bin
Dependencies
QNX must provide direct and indirect dependencies so Unity can run correctly.
Direct dependencies
Direct dependencies load at the application startup. Use the following dependencies for all versions of QNX:
libm.so.3libgcc_s.so.1libscreen.so.1
Then, add dependencies specific to your version of QNX:
QNX version | Supported dependencies |
|---|---|
| QNX 7.1 |
|
| QNX 8.0 |
|
Indirect dependencies
Indirect dependencies load when needed during the application runtime, as a shared library.
Type | Dependencies |
|---|---|
| Webcam | |
| OpenGL ES | |
| Devices | |
Troubleshooting
If you notice one of the following issues in the Build Profiles window, then the QNX SDP Environment isn't set up correctly:
- Unable to find QNX_TARGET in Environment.
- The build environment does not fit the selected QNX Version.
- The build environment does not contain the selected QNX Architecture.
Before starting the Editor, always check that you have the QNX SDP Environment set up correctly for the Editor to register it. For more information, refer to QNX Software Center.