Deploy QNX
Unity uses EGL handled by SDL2, which requires SDL to dynamically load libEGL
and libGLESv2
from the graphics.conf file
. Unity does not parse the conf
file but instead uses environment variables to locate these libraries.
Setup
Use the following instructions to deploy QNX.
Use one of the methods to locate the
graphics.conf
file that your screen loads:- Start
screen
with the-c [path/to/graphics.conf]
option. - Let your
screen
automatically find thegraphics.conf
file in the folder insideGRAPHICS_ROOT
.
- Start
Make sure the folder that contains
graphics.conf
is part ofLD_LIBRARY_PATH
.Locate
begin egl display 1
ingraphics.conf
:- The line starting with
egl-dlls
should containlibEGL[-_tag].so
, which is the requiredlibEGL
(for example,libEGL_viv.so
). - The line starting with
glesv2-dlls
should containlibGLESv2[-_tag]
, which is thelibGLESv2
(for example,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
ksh
, set the following environment variables.SDL_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
sh
, you need to set the environment with the unity player start. For example,run SDL_VIDEO_EGL_DRIVER=libEGL_viv.so SDL_VIDEO_GL_DRIVER=libGLESv2_viv.so ./qnxplayer
.Start the Unity player.