[Gdal-dev] build gdal with grass support error

Alessandro Amici alexamici at fastwebnet.it
Wed May 26 04:42:48 EDT 2004


Richard,

On Tuesday 25 May 2004 23:26, Richard Greenwood wrote:
> Next I try to build GDAL --with-grass=/usr/local/lib/ but it fails with
> the following error messages:
>
> make[2]: Entering directory `/usr/local/src/gdal/gdal_cvs/frmts/grass'
> /bin/sh ../../libtool --mode=compile g++ -Wall  -O2  -I/usr/local/lib/
> -I/usr/local/lib//include   -I../../port -I../../gcore -I../../ogr
> -I../../port -c -o ../o/grassdataset.o grassdataset.cpp
>   g++ -Wall -O2 -I/usr/local/lib/ -I/usr/local/lib//include -I../../port
> -I../../gcore -I../../ogr -I../../port -c grassdataset.cpp  -fPIC -DPIC
> -o ../o/.libs/grassdataset.o
> grassdataset.cpp: In static member function `static GDALDataset*
>     GRASSDataset::Open(GDALOpenInfo*)':
> grassdataset.cpp:513: error: invalid conversion from `int (*)(...)' to
> `int   (*)()'

most probably you should use --with-grass=/usr/local/

cheers,
alessandro



More information about the Gdal-dev mailing list