[gdal-dev] compile gdal 2.3.0 on centos 6.9
Andrew C Aitchison
andrew at aitchison.me.uk
Fri Jun 29 09:27:18 PDT 2018
On Fri, 29 Jun 2018, Donato.AIRAGHI at ext.ec.europa.eu wrote:
> Hi,
>
> on Centos 6.9 compiling gdal 2.3.0 with
>
>
> ./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
>
> env:
>
> export OPENJPEG_LIBS=/usr/local/lib/libopenjp2.so
Should that be
export OPENJPEG_LIBS=/usr/local/lib
?
> export PKG_CONFIG=/usr/local/bin/pkg-config
> export PKG_CONFIG_PATH=PKG_CONFIG_PATH:/usr/lib64/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/pgsql-9.3/lib/pkgconfig/:/usr/share/pkgconfig/
> scl enable devtoolset-3 bash
Is there a reason why you use a local openjpeg library ?
I have openjpeg-devel-1.3-16.el6_8.x86_64.rpm installed on my
Scientific Linux 6.9 machine (which should be the same as CentOS 6.9)
and use whatever openjpeg library the default configure gives me
without any problems.
I see that openjpeg2{,-devel,-tools} packages are available from epel
( https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch )
_ I haven't tried them, but if you need v2...
> make output :
> I get
>
> ..../.libs/libgdal.so: undefined reference to `opj_create_compress'
> ..../.libs/libgdal.so: undefined reference to `opj_stream_create'
> ..../.libs/libgdal.so: undefined reference to `opj_setup_decoder'
> ..../.libs/libgdal.so: undefined reference to `opj_image_tile_create'
> ..../.libs/libgdal.so: undefined reference to `opj_end_decompress'
> ..../.libs/libgdal.so: undefined reference to `opj_destroy_codec'
> ..../.libs/libgdal.so: undefined reference to `opj_read_header'
> ..../.libs/libgdal.so: undefined reference to `opj_image_destroy'
> ..../.libs/libgdal.so: undefined reference to `opj_end_compress'
> .......
--
Andrew C. Aitchison Cambridge, UK
andrew at aitchison.me.uk
More information about the gdal-dev
mailing list