Closed fxcoudert closed 3 years ago
I'd suggest homebrew to disable jasper and use openjpeg. openjpeg is a better alternative
Thanks, we'll consider it and see what our users think. Does it have identical functionality?
Does it have identical functionality?
Yes, openjpeg is a reference implementation of JPEG2000 and those recent years it has received a number of performance implementations (single threaded and multi threaded) that make it faster
Hi @rouault,
We have shipped the latest version with openjpeg (--with-openjpeg
) instead of gdal, and we have a user report that this broke JPEG2000 support for them: https://github.com/Homebrew/homebrew-core/pull/61096#issuecomment-704279255
Their reproducible example is:
$ wget --no-check-certificate https://oceania.generic-mapping-tools.org/server/earth/earth_relief/earth_relief_15s_p/N00E000.earth_relief_15s_p.jp2
$ gdalinfo N00E000.earth_relief_15s_p.jp2
ERROR 4: `N00E000.earth_relief_15s_p.jp2' not recognized as a supported file format.
gdalinfo failed - unable to open 'N00E000.earth_relief_15s_p.jp2'.
Could you advise on whether this is expected behaviour?
gdalinfo N00E000.earth_relief_15s_p.jp2
This works for me. Are you sure your build has the JP2OpenJPEG driver enabled ? Cf gdalinfo --format JP2OpenJPEG
Am I correct in understanding that --with-openjpeg
, unlike --with-jasper
, does not take a path as argument?
Am I correct in understanding that
--with-openjpeg
, unlike--with-jasper
, does not take a path as argument?
yes, it uses pkg-config to figure out the include and lib
OK, found out the issue. We were passing the wrong flag. By the way, I'm getting:
configure: WARNING: unrecognized options: --with-bsb, --with-grib
Have these options been removed? Is there a replacement?
Driver disabling has been generalized . See ./configure --help | grep driver
Expected behavior and actual behavior.
Compilation of GDAL 3.1.3 in Homebrew is currently failing (https://github.com/Homebrew/homebrew-core/pull/61096) with:
This is with Jasper 2.0.21. This was reported previously in https://github.com/OSGeo/gdal/issues/2977 and @rouault stated “This has been fixed in 3.1.3”, but it is not. The type mismatch is about the const-ness of the second argument. In particular, commit https://github.com/OSGeo/gdal/commit/e236eeaed1be45a4af457565085e3db1f2fc489f did not fix that issue, which is still present in master: https://github.com/OSGeo/gdal/blob/master/gdal/frmts/jpeg2000/jpeg2000_vsil_io.cpp#L112
Steps to reproduce the problem.
Our configure line is:
Operating system
macOS 10.15.7 with system clang compiler and up-to-date dependencies through Homebrew.
GDAL version and provenance
3.1.3 unpatched source