View Ticket
Not logged in
Ticket Hash: 9f29d71aa05c689e35d7dc70a79f00bc3e054cdb
Title: Fails to build with OpenJPEG 2.2.0
Status: Closed Type: Build_Problem
Severity: Critical Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2017-09-26 12:01:24
Version Found In: 2.0.0-devel
User Comments:
anonymous added on 2017-09-26 08:34:45:
As reported by Adrian Bunk in Debian Bug #876809:
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/spatialite-gui.html
> 
> ...
> checking openjpeg-2.0/openjpeg.h usability... no
> checking openjpeg-2.0/openjpeg.h presence... no
> checking for openjpeg-2.0/openjpeg.h... no
> checking openjpeg-2.1/openjpeg.h usability... no
> checking openjpeg-2.1/openjpeg.h presence... no
> checking for openjpeg-2.1/openjpeg.h... no
> configure: error: 'OpenJpeg-2' is required but the header (openjpeg.h) doesn't seem to be installed on this system

 https://bugs.debian.org/876809

Like librasterlite2, the openjpeg-2.2 directory is not checked, and the conditional in the code only supports 2.0 or 2.1, not more than those options. This does not scale well.

A solution similar to the one used in GDAL is probably a good solution:

 http://trac.osgeo.org/gdal/browser/tags/2.2.2/gdal/configure.ac#L2528

anonymous added on 2017-09-26 12:01:24:
Support for OpenJPEG 2.2 was added in:

 https://www.gaia-gis.it/fossil/spatialite_gui/ci/161086f290f99151?sbs=1