Setting up a Project in macOS

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

To set up a new project to run with PVRVFrame, follow these steps:
  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.dylib. For OpenGL ES 2.0 and higher, it is required to link against both libEGL.dylib and libGLESv2.dylib.
    The libraries for macOS supplied with PVRVFrame are found in Library/OSX_x86. These libraries are:
    Content Description
    libEGL.dylib PVRVFrame driver file for EGL 1.4
    libGLES_CM.dylib PVRVFrame driver file for OpenGL ES 1.1
    libGLESv2.dylib PVRVFrame driver file for OpenGL ES 2.0
  4. Run the following terminal command:
    export DYLD_LIBRARY_PATH=<lib folder>;$DYLD_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 commands on an application built against the PVRVFrame libraries:
otool –L <path to application>