[GRASSLIST:5731] Re: Problem with compilation of GRASS 5.1

Radim Blazek blazek at itc.it
Tue Mar 4 11:18:42 EST 2003


On Tuesday 04 March 2003 07:48 am, Vojtech Honzik wrote:
> I think the reason is because of the compilator cannot find the GDAL
> library (which I have correctly installed) I was trying to generate the
> Makefile using several ways:
>
> ./configure
> --with-grass50=/home/vojta/grass_install/grass50_exp_2003_03_01/
> --with-gdal=/usr/lib ./configure
> --with-grass50=/home/vojta/grass_install/grass50_exp_2003_03_01/
> --without-gdal

--with-gdal should be path to 'gdal-config':
--with-gdal[=path/gdal-config] GDAL/OGR support (gdal-config with path)
for example:
--with-gdal=/amd/ssi0/ssi/blazek/janacek0/gdal/apps/gdal-config

then configure generates in include/Make/Platform.make:

GDALLIBS = -L/ssi0/ssi/blazek/janacek0/gdal -lgdal.1.1 -lgif -ljpeg -lpng -lz 
-lm -ldl -L/usr/local/lib -lm
GDALCFLAGS  = -I/ssi0/ssi/blazek/janacek0/gdal/port 
-I/ssi0/ssi/blazek/janacek0/gdal/core -I/ssi0/ssi/blazek/janacek0/gdal/ogr 
-I/ssi0/ssi/blazek/janacek0/gdal/ogr/ogrsf_frmts -DUSE_GDAL_H

Radim




More information about the grass-user mailing list