Version: Unity 6.2 Alpha (6000.2)
Language : English
Build for QNX from the command line
iOS

Deploy a QNX project

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.

  1. 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 the graphics.conf file in the folder inside GRAPHICS_ROOT.
  2. Make sure the folder that contains graphics.conf is part of LD_LIBRARY_PATH.

  3. Locate begin egl display 1 in graphics.conf:

    • The line starting with egl-dllsshould contain libEGL[-_tag].so, which is the required libEGL (for example, libEGL_viv.so).
    • The line starting with glesv2-dlls should contain libGLESv2[-_tag], which is the libGLESv2 (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.
  4. 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)
    
  5. 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.

  6. Start the Unity Player.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Build for QNX from the command line
iOS
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961