[Gdal-dev] build gdal with grass support error

Richard Greenwood rich at greenwoodmap.com
Tue May 25 17:26:47 EDT 2004


I have a problem building GDAL with GRASS support under Linux.

First I built and installed libgrass (from www.remotesensing.org)

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   (*)()'

Any idea what I am doing wrong?

Thanks
-- 
Richard Greenwood
www.greenwoodmap.com



More information about the Gdal-dev mailing list