[gdal-dev] How to get support OPENJPEG 2.1.1 in GDAL 3.1.4 on CentOS 7.

korolevs at msn.com korolevs at msn.com
Wed Jan 13 14:27:22 PST 2021


Need help to get support OPENJPEG 2.1.1 in GDAL 3.1.4 on CentOS 7.
Here are my configurations:

openjpeg-configure:

      cmake -DBUILD_THIRDPARTY:BOOL=ON \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_PREFIX:PATH=$(prefix)/deps \
      -DBUILD_SHARED_LIBS:bool=off)

gdal4-configure

	CPPFLAGS="-I$(proj_prefix)/include -I$(openjpeg_prefix)/include/openjpeg-2.1" \
	LDFLAGS="-L$(proj_prefix)/lib -L$(openjpeg_prefix)/lib/openjpeg-2.1/" \
	./configure --prefix=$(gdal4_prefix) --with-openjpeg \
	--with-static-proj=$(proj_prefix) --disable-all-optional-drivers --with-pic --without-python \
	--without-netcdf --without-sqlite3 --without-pg --enable-driver-grib)

GDAL is now configured for x86_64-pc-linux-gnu
...
OpenJPEG support:  no
…

Supported Formats:
  VRT -raster,multidimensional raster- (rw+v): Virtual Raster
  DERIVED -raster- (ro): Derived datasets using VRT pixel functions
  GTiff -raster- (rw+vs): GeoTIFF
  COG -raster- (wv): Cloud optimized GeoTIFF generator
  HFA -raster- (rw+v): Erdas Imagine Images (.img)
  PNG -raster- (rwv): Portable Network Graphics
  JPEG -raster- (rwv): JPEG JFIF
  MEM -raster,multidimensional raster- (rw+): In Memory Raster
  GIF -raster- (rwv): Graphics Interchange Format (.gif)
  BIGGIF -raster- (rov): Graphics Interchange Format (.gif)
  PCIDSK -raster,vector- (rw+v): PCIDSK Database File
  PCRaster -raster- (rw+): PCRaster Raster File
  GRIB -raster,multidimensional raster- (rwv): GRIdded Binary (.grb, .grb2)

  I need to have 
  JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library


Slav Korolev
korolevs at msn.com


More information about the gdal-dev mailing list