3.2.1. Using the OpenGL ES emulator

Your OpenGL ES 2.0 application must use the OpenGL ES 2.0 libraries:

  1. To build an OpenGL ES application on the OpenGL ES emulator, you must provide the path to libGLESv2.so and libEGL.so during link stage. Use the command:

    -L path_to_emulator/bin
    
  2. Before you can run OpenGL ES 2.0 applications, the library search path must include the required OpenGL ES emulator libraries. Add the path of the Emulator libraries to the system environment variable LD_LIBRARY_PATH:

    • The command to do this using the bash Linux shell is:

                          export LD_LIBRARY_PATH=<installation root directory for OpenGL ES Emulator>/bin
      
    • The command to do this using the tcsh Linux shell is:

                          setenv LD_LIBRARY_PATH <installation root directory for OpenGL ES Emulator>/bin
      

For information on building the Cube example, see Building the example applications on Linux.

Copyright © 2009-2012 ARM. All rights reserved.ARM DUI 0511E
Non-ConfidentialID042812