Setting up a Project in Linux

The four-step process required to set up a new project in Linux which uses PVRVFrame

To set up a new project in Linux to run with PVRVFrame:

  1. Create a new makefile, adding source and include files as necessary.
  2. Add the following directory to the include paths of the project:
  3. Link against the supplied libraries. For OpenGL ES 1.1 projects, it is only required to link against libGLES_CM.so. For OpenGL ES 2.0 and higher, it is required to link against both libEGL.so and libGLESv2.so.

    The libraries for Linux supplied with PVRVFrame are found in Library/Linux_x86_{32 or 64}. These libraries are:

    Content Description
    libEGL.so PVRVFrame driver file for EGL 1.4
    libGLES_cm.so PVRVFrame driver file for OpenGL ES 1.1
    libGLESv2.so PVRVFrame driver file for OpenGL ES 2.0 and higher
    Note: The Linux SDK installer installs stub libraries for linking against at build-time (in /PowerVR_SDK/SDK_3.5/Builds/Linux/x86_64/Lib, for example).

    The libraries have the same names as the PVRVFrame libraries (libEGL.so, libGLESv2.so, libGLES_CM.so), but they are separate libraries, only for build-time linking.

  4. Run the following terminal command:
    export LD_LIBRARY_PATH=<lib folder>;$LD_LIBRARY_PATH
Note: It is possible to check that the correct versions of the libraries are being used and that the location of these libraries is set correctly.
To do this, run the following command on an application built against the PVRVFrame libraries:
ldd <path to application>