[GRASSLIST:1630] Error to compile r.in.gdal on MacX for grass 5.3

Giacomo giacomo.bertoldi at ing.unitn.it
Fri Oct 31 18:15:51 EST 2003


Hy, I'm still trying to install r.in.gdal in GRASS 5.3 on MacX, even if 
I've done some progress.
I really need r.in.gdal in order to import quickly USGS SDTS DEMs.

Now I'm able to install gdal from cvs using the useful tutorial "Grass 
v.5.7 installation on Mac OS X"  made by Fabrizio Zanotti 
(fabrizio.zanotti at ing.unitn.it).
I've downloaded the current version of Gdal-cvs package 
(gdal-cvs-YYMMDD.tar.gz ) from the gdal ftp site, 
ftp://ftp.remotesensing.org/gdal/daily, and used a configuration script 
like:

#!/bin/sh
# script to compile GDAL on Mac OSX
# Markus Neteler and Fabrizio Zanotti
# 10/2003
# what to do in case of user break:
function exitprocedure()
{
echo "User break!"
exit
}
# shell check for user break (signal list: trap -l)
#trap "exitprocedure" 2 3 15
#add for GRASS libgrass support:
export CPPFLAGS="-I/usr/local/pgsql/include/"
# libgrass support:
./configure --without-python \
--with-grass \
--with-libtiff=internal \
--with-geotiff=internal \
--with-libtool \
--with-pg-includes=/usr/local/pgsql/include

In this way is possible to install gdal.

If I configure grass with the option:
--with-gdal=/usr/local/bin/gdal-config

we have support gdal=yes,
but if I do make there is an error

GRASS GIS compilation log
-------------------------
Start of compilation: Fri Oct 31 14:42:35 PST 2003
Errors:
Compilation error in module: src/raster/r.in.gdal (ignored)

Also if I try to install only the gdal module with gmake5 i have the 
error:

bash-2.05a$ gmake5
   SRC     = /sources/grass53_exp_2003_10_25/src
   CMD     = /sources/grass53_exp_2003_10_25/src/CMD
   UNUSED  = /sources/grass53_exp_2003_10_25/unused
   HEADER  = head.unknown
   ARCH    = unknown
   GISBASE = /sources/grass53_exp_2003_10_25/dist.unknown
   VERSION = 5.3-cvs 2003
#################################################################
/sources/grass53_exp_2003_10_25/src/raster/r.in.gdal
   make -f OBJ.unknown/make.rule
gcc -L/sources/grass53_exp_2003_10_25/src/libes/LIB.unknown -L/sw/lib 
-o /sources/grass53_exp_2003_10_25/dist.unknown/etc/bin/cmd/r.in.gdal 
OBJ.unknown/main.o OBJ.unknown/gbgetsymbol.o OBJ.unknown/gdalbridge.o \
         -L/usr/local/lib -lgdal -lgproj -lproj  -lgis  -lintl -lI  -lz
ld: Undefined symbols:
_GBGetSymbol
make: *** 
[/sources/grass53_exp_2003_10_25/dist.unknown/etc/bin/cmd/r.in.gdal] 
Error 1

Somebody can help me?

Thanks, Giacomo

Giacomo Bertoldi
Ph.D. Student
University of Berkeley





More information about the grass-user mailing list