[GRASS-dev] compile gdal with grass
Paulo van Breugel
p.vanbreugel at gmail.com
Sun Jan 4 06:48:51 PST 2015
Just compiled the latest gdal (1.11) and grass (trunk - rev 63950) and now
want to compile gdal again with grass support. However, I am getting an
error, which appears to be a problem in gdal/frmts/grass (see below). Any
idea how to solve this?
paulo at paulo-HP-Z600-Workstation:~/Software/spatial/gdal/frmts/grass$ make
/bin/bash /home/paulo/Software/spatial/gdal/libtool --mode=compile
--tag=CXX g++ -g -O2 -DHAVE_SSE_AT_COMPILE_TIME -Wall
-DGRASS_GISBASE=\"/usr/local/grass7/grass-7.1.svn\"
-I/usr/local/grass7/grass-7.1.svn/include
-I/home/paulo/Software/spatial/gdal/port
-I/home/paulo/Software/spatial/gdal/gcore
-I/home/paulo/Software/spatial/gdal/alg
-I/home/paulo/Software/spatial/gdal/ogr
-I/home/paulo/Software/spatial/gdal/ogr/ogrsf_frmts -DOGR_ENABLED
-I/home/paulo/Software/spatial/gdal/port -c -o grass57dataset.lo
grass57dataset.cpp
libtool: compile: g++ -g -O2 -DHAVE_SSE_AT_COMPILE_TIME -Wall
-DGRASS_GISBASE=\"/usr/local/grass7/grass-7.1.svn\"
-I/usr/local/grass7/grass-7.1.svn/include
-I/home/paulo/Software/spatial/gdal/port
-I/home/paulo/Software/spatial/gdal/gcore
-I/home/paulo/Software/spatial/gdal/alg
-I/home/paulo/Software/spatial/gdal/ogr
-I/home/paulo/Software/spatial/gdal/ogr/ogrsf_frmts -DOGR_ENABLED
-I/home/paulo/Software/spatial/gdal/port -c grass57dataset.cpp -fPIC -DPIC
-o .libs/grass57dataset.o
grass57dataset.cpp: In member function 'CPLErr
GRASSRasterBand::ResetReading(Cell_head*)':
grass57dataset.cpp:440:61: error: 'G__setenv' was not declared in this scope
G__setenv( "GISDBASE", ((GRASSDataset *)poDS)->pszGisdbase );
^
grass57dataset.cpp: In static member function 'static GDALDataset*
GRASSDataset::Open(GDALOpenInfo*)':
grass57dataset.cpp:899:37: error: 'G__setenv' was not declared in this scope
G__setenv( "GISDBASE", pszGisdb );
^
make: *** [grass57dataset.lo] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150104/04085d16/attachment-0001.html>
More information about the grass-dev
mailing list