[Gdal-dev] HDF config question...

Jeroen Ticheler Jeroen.Ticheler at fao.org
Mon Sep 20 05:59:12 EDT 2004


>
> Thanks for your reply.
>
> I am not a linking expert either, and after struggling with compiling 
> GDAL including GeoTIFF with LZW and HDF4 I managed this morning 
> starting from a fresh gdal1.2.2 and only modifying one line in the 
> GDALMake.opt.in :
> line 228 was changed to
> CONFIG_LIBS_INS	=	-L$(INST_LIB) -lgdal -lgeotiff -ltiff -lmfhdf
>
> I did this on the basis of what was suggested by William Kyngesburye 
> on how to include GeoTIFF and TIFF with LZW compression on MAC OS X 
> (see http://webpages.charter.net/kyngchaos/macosx/install/gdal.html)
>
> I did install hdf4 (4.2r0-macosx) libraries I got from 
> ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/bin/macosx/ 
> (http://hdf.ncsa.uiuc.edu/release4/obtain.html)
> and I did compile the geotiff (libgeotiff-1.2.2) and tiff 
> (tiff-v3.6.1) with LZW (libtiff-lzw-compression-kit-1.5) before as 
> described by William
> All of these were installed in /usr/local
>
> I used: ./configure --mandir=/usr/local/man --with-libz=/usr 
> --with-hdf4=/usr/local --with-libtiff=/usr/local 
> --with-geotiff=/usr/local --with-jpeg=/usr/local 
> --with-jasper=/usr/local --with-gif=internal --with-png=internal 
> --without-python --without-ogdi --with-threads -without-pg
>
> to configure GDAL and it all worked out. I can now create GeoTIFF with 
> LZW straight out of HDF on MAC OS X. Impressive speed!
>
> Just wanted to share this with others trying to do similar things.
> Jeroen
>
ps. Also just noticed that including LZW into GDAL could be as simple 
as replacing the tif_lzw.c file within the /frmts/gtiff/libtiff/ folder 
of gdal... Learning by doing ;-)


> On 19 Sep 2004, at 14:49, Andrey Kiselev wrote:
>
>> On Fri, Sep 17, 2004 at 01:45:25PM +0200, Jeroen Ticheler wrote:
>> > I read your (old) thread on problems compiling HDF into GDAL. I 
>> found
>> > a solution (working on MAC OS X) after facing exactly the same error
>> > message:
>> > on line 226 I added hdf as a format, don't know why it was not 
>> there.
>> > It now reads as
>> >
>> > GDAL_FORMATS =        gxf gtiff hfa hdf4 aigrid aaigrid ceos ceos2 
>> iso8211
>>  > xpm \
>> >               sdts raw dted mem jdem envisat elas fit vrt usgsdem 
>> l1b \
>> >               nitf bmp pcidsk \
>> >               @OPT_GDAL_FORMATS@
>>
>> hdf4 should be detected by the configure script and included in the
>> OPT_GDAL_FORMATS variable. Could you send me your config.log file?
>>
>>                                                 Andrey
>>
>> -- 
>> Andrey V. Kiselev
>> Home phone:  +7 812 5274898  ICQ# 26871517
>> _______________________________________________
>> Gdal-dev mailing list
>> Gdal-dev at xserve.flids.com
>> http://xserve.flids.com/mailman/listinfo/gdal-dev
>



More information about the Gdal-dev mailing list