Commit b4fd2e1f authored by Manuel Grizonnet's avatar Manuel Grizonnet

PKG: use system GTK out of the box with linux standalone package

parent 562ddd8d
......@@ -94,9 +94,9 @@ Q: Monteverdi and Mapla applications look different from my other applications.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A: By default, Monteverdi, Mapla and otbapplication (otbgui\_\*) uses a the
system gtk theme. If you can't install GTK on your system you can use
system gtk theme. If you can't install GTK on your system you can use the
distributed with the OTB package. Note that using system GTK is the preferred
way with the OTB standalone package. Using the distributed version of GTK do not
way with the OTB standalone package as the distributed version of GTK do not
work on recent Linux distributions.
To use the distributed GTK libraries you need to set the OTB_USE_LOCAL_GTK:
......
......@@ -73,12 +73,12 @@ cat > "$OUT_DIR/otbenv.profile" << EOF
# unset any existing LD_LIBRARY_PATH
unset LD_LIBRARY_PATH
# if OTB_USE_LOCAL_GTK is not set or is set to one,
# if OTB_USE_LOCAL_GTK is set to one,
# we must include <OUT_DIR>/lib/gtk because glib files are
# installed there.
# OTB_USE_LOCAL_GTK is not set by default
if [ -z "\$OTB_USE_LOCAL_GTK" ] || [ "\$OTB_USE_LOCAL_GTK" = "1" ]; then
# OTB_USE_LOCAL_GTK is not set by default (use GTK system)
if [ "\$OTB_USE_LOCAL_GTK" = "1" ]; then
LD_LIBRARY_PATH=$OUT_DIR/lib/gtk
export LD_LIBRARY_PATH
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment