Difference between revisions of "Request for Changes-38: update gdal to 2.x version in superbuild"

From OTBWiki
Jump to: navigation, search
(No difference)

Latest revision as of 15:38, 18 May 2016

[Request for Changes - 38] update gdal to 2.x version in superbuild



This RFC propose update of gdal to latest stable release 2.1.0


OTB has moved onto GDAL 2.0 and two release has passed. This will give a superbuild gdal with sentinel1 and sentinel2 drivers among all other bug fixes and 2.0 API.

Since 5.2, SuperBuild is used to generate packages. This RFC will affect Linux and Mac OSX binary and development packages.

Implementation details

All external drivers whose libraries are not built by SuperBuild are explicitly deactivated. List includes (hdf5, hdf4, netcdf etc..)

Here is snip from final configure options


Classes and files

M    SuperBuild/CMake/SuperBuild_Macro.cmake
M    SuperBuild/CMake/External_gdal.cmake
M    SuperBuild/patches/GDAL




test will be made on travis with updated xdk for develop branch.


Additional notes

  • Single ExternalProject_Add() call
  • Easy patch integration using a superbuild macro.
  • The patch for swig is removed as it is not clear why we added this patch. I tried to push this into gdal 2.1.0 but didn't apply cleanly. Looking at the source file in 2.1.0 it seems the patch is not required. But this has to be tested.