[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
Thu Jan 14 12:50:55 PST 2021


Thank you for help. I’ve changed gdal config like this:

cd $(gdal4_src) && PKG_CONFIG_PATH=$(openjpeg_prefix)/lib/pkgconfig \
	CPPFLAGS="-I$(proj_prefix)/include" LDFLAGS="-L$(proj_prefix)/lib" \
	./configure $(CONFIGURE_FLAGS) --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

Now after make I get:
checking for OPENJPEG… yes
but still:
GDAL is now configured for x86_64-pc-linux-gnu
… OpenJPEG support:          no

and no JP2OpenJPEG in the gdalinfo list of formats.

Slav Korolev
korolevs at msn.com


> On Jan 14, 2021, at 4:51 AM, Even Rouault <even.rouault at spatialys.com> wrote:
> 
> On mercredi 13 janvier 2021 17:27:22 CET korolevs at msn.com <mailto:korolevs at msn.com> wrote:
>> 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)
> 
> try
> 
> PKG_CONFIG_PATH=$(openjpeg_prefix)/lib/pkgconfig ./configure ...
> 
> -- 
> Spatialys - Geospatial professional services
> http://www.spatialys.com <http://www.spatialys.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210114/083b51b8/attachment.html>


More information about the gdal-dev mailing list