5.5.2. Setting the LD_LIBRARY_PATH variable in Linux

To use Mesa with your Linux application:

  1. Build the Mesa library and note the location of the generated libGL.so file.

  2. Open a terminal window.

  3. If you have the tcsh shell, enter the following command:

    setenv LD_LIBRARY_PATH path_to_mesa_lib/:$LD_LIBRARY_PATH

    If you have the bash shell, enter the following command:

    export LD_LIBRARY_PATH=path_to_mesa_lib/:$LD_LIBRARY_PATH

    Note

    The modified path only applies to applications started in the terminal window.

  4. Start your graphics application. For example, to start the cube example, enter ./cube.

    For more information on building and running the cube example, see Building the example applications on Linux.

  5. After you finish viewing the application, close the terminal window.

Copyright © 2009-2012 ARM. All rights reserved.ARM DUI 0511F
Non-ConfidentialID052512