[gdal-dev] compiling gdal with hdf4
Even Rouault
even.rouault at spatialys.com
Mon Apr 18 00:50:00 PDT 2016
Le lundi 18 avril 2016 09:35:09, Luca Delucchi a écrit :
> Hi devs,
>
> I'm trying to compile gdal on Centos OS with no root access, I would
> like to compile it with hdf4 support. If I compile without hdf4 it
> compile correctly but when I try to ad hdf4 I got the following error
> (I compile libjpeg and hdf4 by myself)
>
> /usr/bin/ld: /pico/home/usertrain/a08tra27/lib/libmfhdf.a(mfsd.o):
> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
> making a shared object; recompile with -fPIC
--> seems that's an issue with how you compiled libhdf4. From the above, it
seems that there's no shared library produced since GDAL tries to link agains
the libmfhdf.a. So try to recompile libhdf4 with shared object support, or
perhaps try building it with CFLAGS=-fPIC so that the static library makes
GDAL happy.
> /pico/home/usertrain/a08tra27/lib/libmfhdf.a: could not read symbols: Bad
> value collect2: ld returned 1 exit status
> make[1]: *** [libgdal.la] Error 1
> make[1]: Leaving directory `/pico/home/usertrain/a08tra27/gdal-2.0.2'
> make: *** [check-lib] Error 2
>
>
> This is the configure output
>
>
>
> Installation directory: /pico/home/usertrain/a08tra27
> C compiler: gcc -g -O2
> C++ compiler: g++ -g -O2
>
> LIBTOOL support: yes
>
> LIBZ support: external
> LIBLZMA support: no
> GRASS support: no
> CFITSIO support: no
> PCRaster support: internal
> LIBPNG support: internal
> DDS support: no
> GTA support: no
> LIBTIFF support: internal (BigTIFF=yes)
> LIBGEOTIFF support: internal
> LIBJPEG support: internal
> 12 bit JPEG: yes
> 12 bit JPEG-in-TIFF: yes
> LIBGIF support: internal
> OGDI support: no
> HDF4 support: yes
> HDF5 support: no
> Kea support: no
> NetCDF support: no
> Kakadu support: no
> JasPer support: no
> OpenJPEG support: no
> ECW support: no
> MrSID support: no
> MrSID/MG4 Lidar support: no
> MSG support: no
> GRIB support: yes
> EPSILON support: no
> WebP support: no
> cURL support (wms/wcs/...):no
> PostgreSQL support: no
> MySQL support: no
> Ingres support: no
> Xerces-C support: no
> NAS support: no
> Expat support: no
> libxml2 support: yes
> Google libkml support: no
> ODBC support: no
> PGeo support: no
> FGDB support: no
> MDB support: no
> PCIDSK support: internal
> OCI support: no
> GEORASTER support: no
> SDE support: no
> Rasdaman support: no
> DODS support: no
> SQLite support: yes
> PCRE support: yes
> SpatiaLite support: no
> DWGdirect support no
> INFORMIX DataBlade support:no
> GEOS support: yes
> Poppler support: no
> Podofo support: no
> OpenCL support: no
> Armadillo support: no
> FreeXL support: no
> SOSI support: no
>
>
> SWIG Bindings: no
>
> Statically link PROJ.4: yes
> enable OGR building: yes
> enable pthread support: yes
> enable POSIX iconv support:yes
> hide internal symbols: no
>
>
> thanks for your support
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list