Hi,

I'm trying to build gdal using some libraries I had already installed for GrADS (hdf4, hdf5, netcdf, xml2, curl, jasper). However, for some reason make is keying on other files and libraries in the same directory where I installed the GrADS supplementary libraries.  I only want specific libraries to be used and to use gdal internals where I can.  I configured as such...


./configure --prefix=$HOME --with-libz=internal --with-pcraster=internal --with-png=internal --with-pcidsk=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-qhull=internal --with-libjson-c=internal --with-hdf4=$HOME/supplibs --with-hdf5=$HOME/supplibs --with-netcdf=$HOME/supplibs --with-jasper=$HOME/supplibs --with-curl=$HOME/supplibs --with-xml2=$HOME/supplibs --with-hide-internal-symbols=yes

Now initially I had a problem with make including the grib2.h I have under $HOME/supplibs/include.  Only way I could prevent this is by zipping up these files.  I got errors like this...

degrib18/g2clib-1.0.4/grib2.h:210: error: conflicting types for 'g2_addgrid'
/st1/scheftic/supplibs/include/grib2.h:218: note: previous declaration of 'g2_addgrid' was here

Now, I was able to get through all of the compiling, but upon linking I received this error.

/st1/scheftic/src/gdal-2.2.3/.libs/libgdal.so: undefined reference to `png_set_longjmp_fn'

My guess is that the install used the png library I installed for GrADS.  However, I configured for the internal version.  Is there anyway to prevent these conflicts from occurring?

Thanks,

Bill


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to