Contents

IMPORTANT NOTICE: Beginners, if you want develop into or using the OTB library, we highly recommend you to do it on Linux

Building the OTB library and applications on Windows is currently quite challenging.
You should manage correctly all the dependencies of OTB and install them on your platform. You should take care of

the version of the library,

building them in release mode as much as possible.

building them with a compiler which is Microsoft Visual Studio 9 (2008) or 10 (2010). Currently MVSC 11 and MSVC 12 are not supported (cf. MANTIS-OTB-691 and cf. MANTIS-OTB-820)

However

if you want use Monteverdi, we provide a standalone installer (downloaded from here).

if you want only use the OTB-Applications, we provide through OSgeo4W a binary package (some explanations can be found here). Please choose the 32 bit installer of OSGeo4W.

Supported Windows OS version

Status of OTB and the different version of Windows:

Win XP SP3: yes and nightly tested

Win Vista: unknown status (should be the same that Win Seven)

Win Seven: yes and nightly tested

Win 8: unknown status (JIRA-OTB-449). Moreover blocked by the fact that OTB can be built with Microsoft Visual Studio Compiler 11 (MANTIS-OTB-691) which is the only version of MSVC available on Windows 8 for the moment.

If you want develop into OTB, we highly recommend you to do it with Linux platform.

Currently it is not possible to build OTB in Debug when using the dependencies provided by OSGeo4W.
If you want to build OTB in Debug for Windows, you will need to build & install manually each dependency needed by OTB (hard work...).
You should use the same compiler for all the dependencies, as much as possible.

OSGeo4W is 32bit only for now (Update: a new 64 bit installer is available, we will test it), so you cannot rely on OSGeo4W dependencies to build OTB in 64bit.
Again, if you need to do this, you shall have all the dependencies in 64 bit mode.

This page is dedicated to people who want to install OTB on Windows to do their own developments based on it.

Install the latest release of OTB for Windows

No OTB standalone installer are provided on Windows for the library.
Only binaries for the applications are provided.
You must build the library from source and install it.

Build OTB under Windows to install the library and use it into your developments is currently more challenging than under Linux OS.
Therefore we advice to the beginners to go under Linux. For example, OTB packages are provided for Ubuntu and OpenSuse.
With these, you can easily test and discover OTB functionalities.
Please go to section 2.1.3 of the SoftwareGuide.

We will describe here how to install the library with the main functionalities in Release and ReleaseWithDebugInfo mode.

Preliminary Steps

To build OTB library under Windows the followings conditions are mandatory:

have a Windows version supported: XP SP3 or Seven (these two versions are currently tested)

To manage correctly and easily the dependencies of OTB under Windows we strongly recommend to install OSGeo4W tool (32 bit). This software will provide you with all the necessary dependencies in 32 bit mode.
Please follow these steps:

into a OSGEo4W shell, run the configure.bat with the right arguments: full path to your src directory, full path to your build directory, full path to the place where find OTBConfig.cmake file (should be C:\path\to\MyOTBDir\install\lib\otb).

into the OSGeo4W shell, open the MyFirstProcessing.sln

build the solution

into the OSGeo4W shell, go to the bin\Release directory and run MyFirstProcessing.exe. You can try for example with the otb_logo.tif file which can be found into the OTB source.