R: [Gdal-dev] OSX compile problem

Amici Alessandro alessandro_amici at telespazio.it
Mon Oct 20 10:12:41 EDT 2003


Phil,

> Now I just need to get the OSG to find the GDAL libs.....

> Entering directory gdal
> c++  -O2 -Wall -D__DARWIN_OSX__ -I../../../../include 
> -I/usr/X11R6/include -c ../ReaderWriterGDAL.cpp
> c++  -O2  -L../../../../lib/Darwin  -L/usr/X11R6/lib -L/sw/lib -bundle  
> ReaderWriterGDAL.o    -losgGA -losgDB -losgUtil -losg  -lgdal.1.1 -lm 
> -lstdc++ -lobjc -lOpenThreads -o osgdb_gdal.so
> ld: can't locate file for: -lgdal.1.1

the -lgdal.1.1 link option was correct for gdal 1.1.9, but it
is not supported anymore.

in order to link against the current gdal in cvs you need to
substitute -lgdal.1.1 with -lgdal somewhere in the configuration
files of OSG.

try something like:
$ grep -r "lgdal.1.1" .
in order to find the file to change.

i cannot help you more since i don't know OSG at all.

BTW, this change will be present in all future releases of gdal.

cheers,
alessandro



More information about the Gdal-dev mailing list