wiki:programmersguide/terralib

Version 1 (modified by jano.simas, 10 years ago) (diff)

--

Compiling Terralib

Some tips to help solving terralib problems.

RPATH problems

Terralib problems are frequently caused by error in rpath (finding the lib files).

Using these variables in CMake should solve most, if not all, of them:

-DCMAKE_INSTALL_PREFIX:PATH="/home/user/terralib-release"

-DCMAKE_INSTALL_RPATH:PATH="/home/user/terralib-release/lib"

-DCMAKE_SKIP_BUILD_RPATH:BOOL="OFF"

-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL="OFF"

-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL="ON"

Dev compilation

Another CMake flag that is needed, if using terralib from compilation folder, is to let terralib find plugins and cofig files in the codebase folder:

-DTERRALIB_BUILD_AS_DEV:BOOL="ON"