[Gdal-dev] HDF4 Driver

Frank Warmerdam warmerdam at pobox.com
Fri Oct 22 10:28:53 EDT 2004


Julien Demaria wrote:
> Hi,
> 
> I've some questions about the HDF4 support on GDAL (on Win32, Solaris 
> and Linux) :
> 
> - HDF library use libjpeg and libzip I believe : should I compile them 
> separately, or should/can I use the jpeg and zip library embedded and 
> used internally by GDAL ? (there aren't conflicts between libjpeg/zip 
> used by HDFlib and libjpeg/zip used internally by GDAL ?)

Julien,

I was able to build against the HDF DLL which I think had an embedded
copy of libjpeg and libzip.  This seemed to work even though a heap
of code was duplicated.

Since then I wanted to build the HDF library with /MD (and without the
pseudo netcdf interface), so I did it all from the original source, building
libz and libjpeg seperately.  This was a nightmare of a job, possibly
because I approached it wrong, but I would caution against trying it unless
you have a strong need.

Note that copies of code in different DLLs is often not a bit issue on
windows as long as it isn't exported from the DLL.

Ahh, I see you are interested in solaris and linux too. I think on these
platforms the HDF libraries are willing to use external copies of libz and
libjpeg.  I have it built and it seems to be working ok.  However, on these
platforms (linux at least) duplicate copies of a library linked into the
same executable can be quite bad.

Hmm, I don't know if I have really helped very much.

I'll leave the question about georeferencing fixes to Andrey.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list