[Gdal-dev] 1.2.0a Release
Frank Warmerdam
warmerdam at pobox.com
Sat Feb 21 10:18:12 EST 2004
Alessandro Amici wrote:
> Norman,
>
>
>>Also when gdal is built statically with libtool < perhaps without >
>>mapserver will not link because it does not know about the
>>GDAL dependency libs in libgdal.lai
>>
>>perhaps these should be added to the gdal-config script for
>>the static case ?
>
>
> wooops! actually after install the information is present into the file
> $prefix/lib/libgdal.la. unfortunatly it is not easily parsed if you happen to
> build gdal against other libtool libraries:
>
> # Libraries that this one depends upon.
> dependency_libs=' /usr/lib/libodbc.la /usr/lib/libltdl.la -lxerces-c -lmfhdf
> -ldf -lgif /usr/lib /libjpeg.la -lpng -lnetcdf -lcfitsio -lz -lpthread -ldl
> -L/usr/lib -lpq'
>
> i added a --dep-libs option to gdal-config:
> $ gdal-config --dep-libs
> -lodbc -lxerces-c -lmfhdf -ldf -lgif -ljpeg -lpng -lnetcdf -lcfitsio -lz
> -lpthread -lm -ldl -L/usr/lib -lpq
Alessandro,
If there are libraries other than GDAL itself that you need to link against
when you link against GDAL, those should be included in the output of
gdal-config --libs. Could you update accordingly?
Thanks,
--
---------------------------------------+--------------------------------------
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