Tested configurations

From OTBWiki
Jump to: navigation, search
Tested Mac Configuration LEOPARD
Static Shared Debug Release Examples ON Examples OFF Compilation Result Comments
X X OK
X X X OK




Some dependencies are common between different software like Grass, Qgis, Ossim. The best mac resource to satisfy GIS dependencies on mac is KyngChaos here you can find frameworks and binary apps. To build OTB i used the IOUnix.framework, Gdal,framework; then to satisfy geotiff libraries, you can easy install it from sourceor use the ossim_dependancies package and point cmake to its include directory.


i compiled fltk-1.1.9 from source, using cmake.

 Untar the source
 cd fltk-1.1.9
 mkdir build
 cd build
 ccmake .. : 

Using this settings:

Cmake_fltk

To build *OrfeoToolbox-3.0* :

 Untar the source
 cd OrfeoToolbox-3-1.0
 mkdir build
 cd build
 ccmake ..

dependence i setted manually :

 JPEG_INCLUDE_DIRS:PATH=/Library/Frameworks/UnixImageIO.framework/unix/include
 JPEG_LIBRARY:FILEPATH=/Library/Frameworks/UnixImageIO.framework/unix/lib/libjpeg.dylib
 OGR_INCLUDE_DIRS:PATH=/Library/Frameworks/GDAL.framework/unix/include
 TIFF_INCLUDE_DIRS:PATH=/Library/Frameworks/UnixImageIO.framework/unix/include
 TIFF_LIBRARY:FILEPATH=/Library/Frameworks/UnixImageIO.framework/unix/lib/libtiff.dylib
 GEOTIFF_INCLUDE_DIRS:PATH=/Users/Shared/Development/ossim_dependencies/include
 FLTK_DIR:PATH=/Users/Shared/source/fltk-1.1.9/build

configuration i used :

 i386
 Release
 SHARED OFF
 EXAMPLE  ON

this the cmake settings :

Cmake_OTB


To compile the OTB example :

 cd example_name_dir
 make

it will produce the examples executable in the bin directory

 /../OrfeoToolbox-3-1.0/build/bin

i tried visualexample on grass data :

Grass data visualizzation