INSTRUCTIONS FOR THE COMPILATION AND RUNNING EXAMPLES Following the structure of directories above, the libraries tiff, shapelib and terralib must be compiled. Some environment variables should be placed in a file in the directory of the user's login, in order to compile the libraries and the examples. Considering that the user is using the bash shell, the following environment variables should be placed in the ".bash_profile" or ".bashrc" file of the user's login directory: DIRTERRALIB=/home/user/terralib (directory of TerraLib) export DIRTERRALIB LD_LIBRARY_PATH=$DIRTERRALIB/Debug/linux-g++ (debug version) LD_LIBRARY_PATH=$DIRTERRALIB/Release/linux-g++ (release version) export LD_LIBRARY_PATH If the user's shell is the C-shell, the environment variables should be placed in the ".cshrc" file of the user's login directory: setenv DIRTERRALIB /home/user/terralib setenv LD_LIBRARY_PATH=$DIRTERRALIB/Debug/linux-g++ (debug version) setenv LD_LIBRARY_PATH=$DIRTERRALIB/Release/linux-g++ (release version) For the compilation of the example application, use the commands: % cd /home/user/terralib/examples % make debug (debug version) % make (release version) PS: it may be necessary to modify the path of TerraLib files in the Makefile file of the example. EXAMPLE EXECUTION For the EXAMPLE execution, the following commands should be given: % cd /home/user/terralib/Debug/examples/linux-g++/name_of_example (debug version) % cd /home/user/terralib/Release/examples/linux-g++/name_of_example (release version) % ./name_of_example If for some reason the example could not be executed, verify whether some library is missing through the following command: % ldd ./name_of_example This command lists all the libraries needed to execute the example. If some library is not found, put the path of the missing library in the LD_LIBRARY_PATH environment variable in your .bash_profile (bash environment) or .cshrc (C-shell environment) file.