On mercredi 13 juin 2018 15:59:24 CEST [email protected] wrote: > Hi, > > I'm trying to compile > Gdal 2.3.0 on Centos 6.9 where compiled openjpeg 2.3.0 > > I get : > .... > Kakadu support: no > JasPer support: no > OpenJPEG support: no > ECW support: no > MrSID support: yes > ...... > > On the same system with gdal 2.2.2 and openjpeg 2.3.0 I get > ..... > Kakadu support: no > JasPer support: no > OpenJPEG support: yes > ECW support: no > MrSID support: yes > ... > > > This the configure line : > > ./configure --with-python=yes --with-pg=/usr/pgsql-9.3/bin/pg_config > --with-geos=yes --with-curl=/usr/bin/curl-config > --with-mrsid=/opt/MrSID/Raster_DSDK/ --with-jp2mrsid=no > --with-mrsid_lidar=/opt/MrSID/Lidar_DSDK/ --with-sqlite3 --with-podofo=yes > --with-hdf4=/opt/HDF/hdf-4.2.13 --with-hdf5=/opt/HDF/hdf-5.1.8.21 > --with-openjpeg=/usr/local --with-jasper=no --with-ecw=no --with-threads > --with-spatialite=yes > > > Could you please help me finding an explanation to this behaviour ?
Donato, You probably need to install pkg-config since it is required now in GDAL 2.3 to detect openjpeg. Previous GDAL versions had a painful manual way of detecting openjpeg that has been simpilfied in GDAL 2.3 configure code. If I look for openjp2 in the config.log file generated by configure, here are the relevant lines: configure:27477: $PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0" configure:27480: $? = 0 configure:27495: $PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0" configure:27498: $? = 0 configure:27534: result: yes configure:27544: checking for opj_setup_decoder in -lopenjp2 configure:27569: gcc -o conftest -DHAVE_AVX_AT_COMPILE_TIME - DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -fPIC -g -DDEBUG - ftrapv -fvisibility=hidden conftest.c -lopenjp2 -lopenjp2 >&5 configure:27569: $? = 0 configure:27578: result: yes Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
