Deploy a QNX project
Deploy your project for QNX.
Read time 3 minutesLast updated 2 months ago
Unity uses EGL handled by SDL2, which requires SDL to dynamically load and from the . Unity does not parse the file but instead uses environment variables to locate these libraries.
libEGLlibGLESv2graphics.conf fileconfSetup
Use the following instructions to deploy QNX.
-
Use one of the methods to locate thefile that your screen loads:
graphics.conf- Start with the
screenoption.-c [path/to/graphics.conf] - Let your automatically find the
screenfile in the folder insidegraphics.conf.GRAPHICS_ROOT
- Start
-
Make sure the folder that containsis part of
graphics.conf.LD_LIBRARY_PATH -
Locatein
begin egl display 1:graphics.conf- The line starting with should contain
egl-dlls, which is the requiredlibEGL[-_tag].so(for example,libEGL).libEGL_viv.so - The line starting with should contain
glesv2-dlls, which is thelibGLESv2[-_tag](for example,libGLESv2).libGLESv2_viv.so - Both libraries should be in the same folder as .
graphics.conf - Both library file names must be set up as environment variables.
- The line starting with
-
If you are using, set the following environment variables.
kshSDL_VIDEO_EGL_DRIVER=[name_of_libEGL_in_graphics_conf].so (e.g., run export SDL_VIDEO_EGL_DRIVER=libEGL_viv.so)SDL_VIDEO_GL_DRIVER=[name_of_libGLESv2_in_graphics_conf].so (e.g., run export SDL_VIDEO_GL_DRIVER=libGLESv2_viv.so) -
If you are on, you need to set the environment with the unity player start. For example,
sh.run SDL_VIDEO_EGL_DRIVER=libEGL_viv.so SDL_VIDEO_GL_DRIVER=libGLESv2_viv.so ./qnxplayer -
Start the Unity Player.
Application window configuration using environment variable
Use the environment variable to configure the properties for your Unity application windows. This variable allows you to override Unity's default windowing behavior by using the platform-specific window properties. You can define properties including display index, position, size, and hardware pipeline in the file for your application windows to use.
UNITY_QNX_WINDOW_CLASS_LISTgraphics.confTo set the environment variable, consider the following points:
UNITY_QNX_WINDOW_CLASS_LIST- Pass a list of separated by commas. For example,
SCREEN_PROPERTY_CLASS IDs. Each entry in the list corresponds to amain,fullscreen_overlayin yourSCREEN_PROPERTY_CLASSfile.graphics.conf - Do not include any white space.
- Specify up to 8 windows, as supported by Unity.
- Ensure that listed class IDs are defined in your file.
graphics.conf
When you launch your application, each entry in the list applies to its corresponding window in order. For example, the first entry in the list applies to the first Unity window (main window) and the second entry applies to the second window.
Example
export UNITY_QNX_WINDOW_CLASS_LIST=main,fullscreen_overlayThis assigns properties to windows in the following order:
- window properties to the first window (the SDL window with ID 1)
main - window properties to the second window
fullscreen_overlay