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.
Note: You must install the QNX platform package before you can set up your environment. For more information, refer to Install the platform package for QNX.
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.
qnxsdp-env.bat
(Windows)source path/qnxsdp-env.sh
(Linux and macOS)Alternatively, you can set the environment variables QNX_TARGET
and QNX_HOST
either locally in a terminal or globally, and then run the Editor.
These are the environment variables you need to set:
QNX_TARGET=/path/to/target/qnx7
QNX_HOST=/path/to/host/platform/arch
MAKEFLAGS=-I$QNX_TARGET/usr/include
(for QNX 7.0 only)PATH:
$QNX_HOST/usr/bin
(for QNX 7.1 only)QNX must provide direct and indirect dependenciesAn indirect, or transitive dependency occurs when your project requests a package which itself “depends on” another package. For example, if your project depends on the alembic@1.0.7
package which in turn depends on the timeline@1.0.0
package, then your project has an direct dependency on Alembic and an indirect dependency on Timeline. More info
See in Glossary so Unity can run correctly.
Direct dependencies load at the application startup.
libm.so.3
libgcc_s.so.1
libc.so.5
libsocket.so.3
libasound.so.3
libscreen.so.1
Indirect dependencies load when needed during the application runtime, as a shared library.
Type | Dependencies |
---|---|
Webcam | libcamapi.so |
OpenGL ES |
libEGL.so.1 libGLESv2.so.2
|
Devices | libudev.so.1 |
If you notice one of the following issues in the Build Settings window, then the QNX SDP Environment isn’t set up correctly:
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.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.