[Gdal-dev] HDF config question...

Chris G. Nicholas cgn at globexplorer.com
Tue May 18 11:35:03 EDT 2004


OK - more clues from the "blah..blah..." section; and indeed interesting.

The last part of config.log shows it trying to compile a simple program using the "SDreaddata" routine, but can't, which is really wierd....

(hoping to not become an expert in gcc linking... )

Chris

----------------------------------------------------

[user1 at gateway2earth /tmp]$ more c.c

extern char SDreaddata ();
main ()
 {
 SDreaddata ();
   ;
   return 0;
 }

[user1 at gateway2earth /tmp]% gcc -L/usr/local/lib -lmfhdf c.c
/tmp/cccvk9yh.o(.text+0x11): In function `main':
: undefined reference to `SDreaddata'
collect2: ld returned 1 exit status


[user1 at gateway2earth /tmp]$
[root at gateway2earth lib]% nm /usr/local/lib/libmfhdf.a | grep SDreaddata
000003d0 T SDreaddata
         U SDreaddata
[root at gateway2earth lib]%

[user1 at gateway2earth /tmp]$gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 


-----Original Message-----
From:	Andrey Kiselev [mailto:dron at ak4719.spb.edu]
Sent:	Tue 5/18/2004 1:43 AM
To:	gdal-dev at remotesensing.org
Cc:	
Subject:	Re: [Gdal-dev] HDF config question...
On Mon, May 17, 2004 at 08:47:33PM -0700, Chris G. Nicholas wrote:
> [root at gateway2earth HDF4.2r0]# pwd
> /home/user1/src/HDF4.2r0
> 
> [root at gateway2earth HDF4.2r0]# find . -name lib\* -print
> ./hdf/src/libdf.a
> ./mfhdf/libsrc
> ./mfhdf/libsrc/libmfhdf.a
> ./mfhdf/port/libudport.a
> [root at gateway2earth HDF4.2r0]#
> 
> [root at gateway2earth HDF4.2r0]# find /usr/local -name \*hdf\*.a -print
> /usr/local/lib/libmfhdf.a

HDF4 consists from two libraries: libdf and libmfhdf. Both ones should
be available (as well as appropriate headers).

> [root at gateway2earth HDF4.2r0]#
> 
> then fresh CVS checkout of gdal; but having trouble getting it to configure in the HDF libs; I keep getting :
> 
>  ./configure --with-kakadu=/home/user1/src/kakadu_v4_0-00115C --with-proj --with-grass=/usr/local/grass53 --with-hdf4=/usr/local

You don't need to specify /usr/local, because it is default place to
search the library (on Linux). Even --with-hdf4 switch is not required,
script will search for the library automatically. And you don't need to
install libhdf4 system wide, --with-hdf4=/home/user1/src/HDF4.2r0 should
be enough.

> checking build system type... i686-pc-linux-gnu
> 
> ...blah...blah..blah...
> 
> configure: error: HDF4 support requested with arg /usr/local, but neither hdf4 nor mfhdf lib found

Blah-blah-blah is the most interesting part of the problem :-) Please,
show the end of the config.log file, it is hard to tell what's going
wrong without tests log.

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517
_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev







More information about the Gdal-dev mailing list