[GRASSLIST:2171] r.in.gdal compile failure

David Orme d.orme at imperial.ac.uk
Fri Jan 9 11:21:21 EST 2004


Hi,

I've run into a problem with r.in.gdal while compiling 5.7 on Mac  
10.2.8 - the compile links libgdal and I think that this fails to find  
libtiff and libpng, although these libraries are in /usr/local/lib.

> r.in.gdal
> gcc   
> -L/usr/local/src/grass57_exp_2004_01_03/dist.powerpc-apple-darwin6.8/ 
> lib -L/usr/local/pgsql/lib/   -o  
> /usr/local/src/grass57_exp_2004_01_03/dist.powerpc-apple-darwin6.8/ 
> etc/bin/cmd/r.in.gdal OBJ.powerpc-apple-darwin6.8/gbgetsymbol.o  
> OBJ.powerpc-apple-darwin6.8/gdalbridge.o  
> OBJ.powerpc-apple-darwin6.8/main.o -lgrass_gproj -lproj   
> -L/usr/local/lib -lgdal.1.1 -lgrass_gis -lgrass_datetime  -lintl  
> -lgrass_I -lgrass_vask -lncurses  -L/usr/local/lib -lgdal.1.1 -ldl  > -lz
> ld: warning can't open dynamic library: libtiff.dylib (checking for  
> undefined symbols may be affected) (No such file or directory, errno =  
> 2)
> ld: warning can't open dynamic library: libpng.3.dylib (checking for  
> undefined symbols may be affected) (No such file or directory, errno =  
> 2)

I've tried recompiling gdal (latest cvs snapshot) using the  
--with-tiff=internal and --with-png=internal to try and get around the  
failure to find my installed versions but the error still occurs. As  
far as I can make out, the linker should be checking for the two dylibs  
in /usr/local/lib and I don't see why it isn't finding them.

As a side issue, the gdal compile requires libjpeg.dylib and I can't  
get jpeg-6b to produce dynamic libraries. I can get round this by using  
--with-jpeg=internal in the gdal configure but does anyone know how to  
build libjpeg.dylib?

Any suggestions?

Thanks,
David




More information about the grass-user mailing list