Installation¶
We provide different standalone binary packages for OTB-Applications:
- for Windows platform (7 or higher)
- for 64bit Linux distribution
- for MacOS X
Other binaries can be available as packages (OSGeo packages, Debian/Ubuntu packages, OpenSuse packages), however be advised that they may not be up-to-date nor delivered with full features. If you want to build from source or if we don’t provide packages for your system, information is available in the Software Guide, in the section “Building from Source”.
You can get latest binary packages from our Download page.
Windows¶
Windows binary packages are available for Windows 7 or higher. They can be downloaded from otb download page .
Pick the correct version (32 bit or 64 bit) depending on your system.
Extract the archive and use one of the launchers, they contain all applications and their launchers (both command line and graphical launchers are provided):
monteverdi.bat
: A launcher script for Monteverdimapla.bat
: A launcher script for Maplaotbenv.bat
: A script to initialize the environment for OTB executablesbin
: A folder containing application launchers (otbcli.bat, otbgui.bat) and the DLLs.lib
: A folder containing application DLLs.tool
: A folder containing usefull scripts to test the installation or to uninstall OTB libraries and headers while keeping all the depedencies.
The applications can be launched from the Mapla launcher. If you want to
use the otbcli and otbgui launchers, you can initialize a command prompt
with otbenv.bat
.
Python bindings¶
Starting from OTB 5.8.0, OTB Python bindings are distributed with binary package. Currently only Python 2.x is supported and if no compatible Python version is found a notification is generated during the installation process. If the installation completes without issue, information relating to your Python bindings will be provided.
You must have Python numpy bindings installed in your system. They can be installed locally without admin rights as follows: “pip install –user numpy”. This is to give users the option to select their own existing Python installation rather than the one dibstributed by the OTB package.
Linux x86_64¶
We provide a binary package for GNU/Linux x86_64. This package includes all of the OTB applications along with command line and graphical launchers. It can be downloaded from OTB’s download page.
This package is a self-extractable archive. You may uncompress it with a double-click on the file, or from the command line as follows:
chmod +x OTB-6.2.0-Linux64.run ./OTB-6.2.0-Linux64.run
The self-extractable archive only needs common tools found on most Linux distributions (“sed”, “grep”, “find”, “cat”, “printf”, “ln”, ...). However, be aware that it requires tools such as “which” and “file” (they are not always present, for instance when building a container).
Please note that the resulting installation is not meant to be moved, you should uncompress the archive in its final location. Once the archive is extracted, the directory structure consists of:
monteverdi.sh
: A launcher script for Monteverdimapla.sh
: A launcher script for Maplaotbenv.profile
: A script to initialize the environment for OTB executablesbin
: A folder containing application launchers (otbcli.sh, otbgui.sh), Monteverdi and Mapla.lib
: A folder containing all shared libraries and OTB applications.share
: A folder containing common resources and copyright mentions.tool
: A folder containing usefull scripts to test the installation or to uninstall OTB libraries and headers while keeping all the depedencies.
In order to run the command line launchers, this package doesn’t require any special library that is not present in most modern Linux distributions. There is a small caveat for “expat” though as these binaries depend on “libexpat.so”, which can be supplied by most package managers (apt, yum, ...). Note that this problem only affects versions 6.0 and older. If not already present, it is necessary to install one of the following packages:
libexpat-dev libexpat1-dev
The graphical executable (otbgui launchers, Monteverdi and Mapla) use the X11 libraries, which are widely used in a lot of distributions:
libx11-6 libxext6 libxau6 libxxf86vm1 libxdmcp6 libdrm2
Monteverdi also requires the standard graphics libraries libgl1 and libglu1. Make sure you have at least one version of them installed in your system.
The applications can be launched from the Mapla launcher. If you want to
use the otbcli and otbgui launchers, you can initialize your environment
with source otbenv.profile
.
Python bindings¶
Starting from OTB 5.8.0, OTB Python bindings are distributed with binary package. Currently only Python 2.x is supported and if no compatible Python version is found a notification is generated during the installation process. If the installation completes without issue, information relating to your Python bindings will be provided.
You must have Python numpy bindings installed in your system. They can be installed locally without admin rights as follows: “pip install –user numpy”. This is to give users the option to select their own existing Python installation rather than the one dibstributed by the OTB package.
Notes:
- You must use monteverdi and mapla through
mapla.sh
andmonteverdi.sh
helper scripts in extracted directory. - The helper scripts for monteverdi and mapla set required environment variables
- You might be tempted to move “OTB-6.2.0-Linux64” into another location say /usr/local/ after extraction. But avoid this action!
- To have “OTB-6.2.0-Linux64” installed in /usr/local or /opt execute “OTB-6.2.0-Linux64.run” in that directory.
- Multiple installation of OTB can exists in same system without one conflicting the other!
FAQ¶
Q: I am getting an error message...¶
Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40807)
Aborted
A: This is due to a conflict with system Qt4 (usually seen on KDE) and Qt4 + gtk libs in OTB package. The fix you need is to remove those libs from package.
cd /path/to/OTB-6.2.0-Linux64 rm -f lib/libQt* && rm -fr lib/gtk
Q: Monteverdi and Mapla applications look different from my other applications.¶
A: In versions 6.0 and older, Monteverdi, Mapla and otbapplication (otbgui_*) use the system gtk theme. If you can’t install GTK on your system you can use the one distributed with the OTB package. Note that using system GTK is the preferred 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:
export OTB_USE_LOCAL_GTK=1
And now start monteverdi.sh
or mapla.sh
from OTB-6.2.0-Linux64
To get back default behaviour, unset OTB_USE_LOCAL_GTK=1 or set OTB_USE_LOCAL_GTK=0
In version 6.2, the Linux binaries are built without GTK support to cut some dependencies.
MacOS X¶
We provide for MacOS X through a standalone package. This package is a self-extractible archive, quite similar to the Linux one. You may uncompress it with the command line:
chmod +x OTB-6.2.0-Darwin64.run ./OTB-6.2.0-Darwin64.run
Once the archive is extracted, you can see OTB-6.2.0-Darwin64 directory in the same direcrtory along with OTB-6.2.0-Darwin64.run
Contents of OTB-6.2.0-Darwin64 is briefly listed below:
Monteverdi.app
: A Mac OSX .app for MonteverdiMapla.app
: A Mac OSX .app for Mapla.bin
: A folder containing application launchers (otbcli.sh, otbgui.sh), monteverdi and mapla binaries.lib
: A folder containing all shared libraries and OTB applications.share
: A folder containing common resources and copyright mentions.tool
: A folder containing usefull scripts to test the installation or to uninstall OTB libraries and headers while keeping all the depedencies.
Python bindings¶
Starting from OTB 5.8.0, OTB python bindings are distributed with binary package. currently only Python 2.x is supported. If no compatible python is found, installation notify you about it. If everything works fine, you will be given information about using python bindings.
You must have python numpy bindings installed in your system. you can install it locally without admin rights with “pip install –user numpy”. This is to give users to choose their own existing python installation rather than distributing one in OTB package.
Notes:
- If you want to use the otbcli and otbgui launchers, you must access them via a terminal prompt.
- The OSX .app are provided for monteverdi (viewer) and mapla (application browser).
- You must use monteverdi and mapla through their .app files only.
- You are allowed to move these .app files and refrain from moving or deleting OTB-6.2.0-Darwin64 after extraction. In case you need to have OTB installed in some other directory. Extract the .run file there.
FAQ¶
Q: I am getting an error message...¶
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
A: You can get this error at startup running Monteverdi.app or Mapla.app. The solution is to run in a terminal the following command:
- ::
- xcode-select –install
And then try to restart Monteverdi or Mapla.
Other packages¶
Warning! These packages may not be up-to-date with latest OTB releases. In addition, some features of the library may not be available on every platform. Some of these are not maintained by OTB-team. If you want to get involved in the packaging of OTB for your favourite platform, please contact us through the developer’s mailing list: otb-developers@googlegroups.com.
Debian¶
There are OTB packages for Debian (unstable) since version 5.2.0. OTB Applications packages may be available as Debian packages through APT repositories:
- otb-bin for command line applications
- otb-bin-qt for Qt applications
- python-otb for python applications
Due to license issues, the OTB package built in Debian doesn’t contain 6S. As a consequence, the package does not contain the OpticalCalibration application.
Ubuntu 12.04 and higher¶
For Ubuntu 12.04 and higher, OTB Applications packages may be available as Debian packages through APT repositories:
- otb-bin for command line applications
- otb-bin-qt for Qt applications
- python-otb for python applications
Since release 3.14.1, OTB Applications packages are available in the ubuntugis-unstable repository.
Since release 5.2.0, the Ubuntu packages derive from the Debian packages.
You can add it by using these command-lines:
sudo aptitude install add-apt-repository
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
You will then need to run:
sudo aptitude install otb-bin otb-bin-qt python-otb
If you are using Synaptic, you can add the repositories, update and install the packages through the graphical interface.
For further information about Ubuntu packages go to ubuntugis-unstable launchpad page and click on Read about installing.
apt-add-repository will try to retrieve the GPG keys of the repositories to certify the origin of the packages. If you are behind a http proxy, this step won’t work and apt-add-repository will stall and eventually quit. You can temporarily ignore this error and proceed with the update step. Following this, aptitude update will issue a warning about a signature problem. This warning won’t prevent you from installing the packages.
OpenSuse 12.X and higher¶
For OpenSuse 12.X and higher, OTB Applications packages are available through zypper.
First, you need to add the appropriate repositories with the following commands (please replace with your version of OpenSuse):
sudo zypper ar
http://download.opensuse.org/repositories/games/openSUSE_11.4/ Games
sudo zypper ar
http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.4/ GEO
sudo zypper ar
http://download.opensuse.org/repositories/home:/tzotsos/openSUSE_11.4/ tzotsos
You should then run:
sudo zypper refresh
sudo zypper install OrfeoToolbox
sudo zypper install OrfeoToolbox-python
Alternatively you can use the One-Click Installer from the openSUSE Download page or add the above repositories and install through Yast Package Management.
There is also support for the recently introduced ’rolling’ openSUSE distribution named ’Tumbleweed’. For Tumbleweed you need to add the following repositories with these command-lines:
sudo zypper ar
http://download.opensuse.org/repositories/games/openSUSE_Tumbleweed/ Games
sudo zypper ar
http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Tumbleweed/ GEO
sudo zypper ar
http://download.opensuse.org/repositories/home:/tzotsos/openSUSE_Tumbleweed/ tzotsos
and then add the OTB packages as shown above.