On 18 April 2016 at 09:50, Even Rouault <[email protected]> wrote: > 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. >
I enables shared library in libhdf4 and GDAL compiled. Thanks a lot -- ciao Luca www.lucadelu.org _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
