[Gdal-dev] HDF4 and Xerces config questions

Jack Varga jvarga at boulder.net
Thu Sep 4 15:30:42 EDT 2003


Dear Andrey, et al;

Thanks for the clue about ARG set to parent tree, however, my problem 
remains.  HDF4 support absolutely is not found if I don't specify with 
configure command line option.  Everything else seems to be detected as 
you suggest (minus Xerces, ogdi, and beta libtiff 3.6 under /usr/local), 
except hdf4. 

Note configure options and output.  First, with no options...

./configure
<chop>
checking for FMEObjects... no
checking for SDreaddata in -lmfhdf... no
checking for jpc_decode in -ljasper... yes

Next, with option for hdf4 which is installed under /usr

But first, a `find` do demonstrate they are there (as well as the hdf5 
includes and macros),

$ find /usr/include /usr/lib -name *hdf* -exec ls -l {} \;
-rw-r--r--    1 root     root         4895 Dec  8  2002 /usr/include/hdf.h
-rw-r--r--    1 root     root        16909 Dec  8  2002 /usr/include/hdf.f90
-rw-r--r--    1 root     root        16909 Dec  8  2002 /usr/include/hdf.inc
-rw-r--r--    1 root     root         2110 Dec  8  2002 
/usr/include/hdf2netcdf.h
-rw-r--r--    1 root     root        49675 Dec  8  2002 /usr/include/hdfi.h
-rw-r--r--    1 root     root        26303 Dec  8  2002 /usr/include/mfhdf.h
-rw-r--r--    1 root     root       162318 Dec  8  2002 /usr/lib/libmfhdf.a
lrwxrwxrwx    1 root     root           16 Aug 23 15:56 
/usr/lib/libhdf5.so.0 -> libhdf5.so.0.0.0
-rw-r--r--    1 root     root      1047816 Feb 19  2003 
/usr/lib/libhdf5.so.0.0.0

Second, an RPM query to demonstrate what package each file belongs to...

$ find /usr/include /usr/lib -name *hdf* -exec rpm -q -f {} \;
HDF-4.1r5-5mdk
HDF-4.1r5-5mdk
HDF-4.1r5-5mdk
HDF-4.1r5-5mdk
HDF-4.1r5-5mdk
HDF-4.1r5-5mdk
HDF-4.1r5-5mdk
libhdf5_0-1.4.4-2mdk
libhdf5_0-1.4.4-2mdk

./configure --with-hdf4=/usr

checking for FMEObjects... no
checking for SDreaddata in -lmfhdf... no
checking for SDreaddata in -lhdf4... no
checking for SDreaddata in -lmfhdf... yes
checking for jpc_decode in -ljasper... yes

Finally, if I include the "--with-hdf4" with any other option, once 
again, hdf4 libs and includes are not located and configure exits with 
error...
 
Note:  libtiff is only an example, however I use it to point to beta 
3.6beta. instead of default 3.5.x under /usr

./configure --with-hdf4=/usr --with-libtiff=/usr/local

checking for FMEObjects... no
checking for SDreaddata in -lmfhdf... no
checking for SDreaddata in -lhdf4... no
checking for SDreaddata in -lmfhdf... no
configure: error: HDF4 support requested with arg /usr, but neither hdf4 
nor mfhdf lib found

Jack Varga

Andrey Kiselev wrote:

>On Wed, Sep 03, 2003 at 10:28:39PM -0600, Jack Varga wrote:
>  
>
>>Trying to build GDAL with support for HDF4 and Xerces and have 
>>encountered problems.  
>>
>>System basics: stock Mandrake 9.1using gcc 3.2.2.  Kernel is
>>2.4.21--0.13mdk.  cpu is athlon-tbird although uname -p fails to
>>detect.  Assume that is because I'm using stock kernel. 
>>
>>./configure --with-hdf=/usr/lib
>>    
>>
>
>Jack,
>
>You don't need to specify library path when the library installed in
>standard place. You even don't need to specify --with-hdf option, it
>will be autodetected. But if you want to prepare a binary package it
>may be useful.
>
>And finally, there is a mistake in your path. You should use
>--with-hdf=/usr so far as library should be searched in /usr/lib
>directory and headers in /usr/include, not in /usr/lib/include.
>
>
>					Andrey
>
>  
>




More information about the Gdal-dev mailing list