Hi, 2015-01-04 15:48 GMT+01:00 Paulo van Breugel <[email protected]>: > 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?
[...] > 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 these errors are related to the recent API changes in GRASS 7. I fixed that in gdal trunk [1] and later will do backport it to gdal 1.11 branch. Martin [1] http://trac.osgeo.org/gdal/changeset/28288 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
