[gdal-dev] GDAL 2.1 Beta and GRASS 7.0.4

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Mon Apr 4 06:45:48 PDT 2016


Hi,

I try to build GDAL 2.1 with GRASS (7.0.4svn) support.

As far as I can see there is no GRASS-plugin for GDAL 2.x..., so I do: 1) build GDAL, 2) build GRASS, 3) rebuild GDAL --with-grass.
Unfortunately, I get the following error:

In file included from grass57dataset.cpp:47:0:
/data/src/gdal/gcore/gdal_priv.h:1389:71: error: declaration of C function 'const char* GDALRasterIOGetResampleAlg(GDALRIOResampleAlg)' conflicts with
const char* GDALRasterIOGetResampleAlg(GDALRIOResampleAlg eResampleAlg);
                                                                       ^
/data/src/gdal/gcore/gdal_priv.h:1388:20: error: previous declaration 'GDALRIOResampleAlg GDALRasterIOGetResampleAlg(const char*)' here
GDALRIOResampleAlg GDALRasterIOGetResampleAlg(const char* pszResampling);
                    ^
grass57dataset.cpp: In function 'int Grass2CPLErrorHook(char*, int)':
grass57dataset.cpp:99:5: warning: no previous declaration for 'int Grass2CPLErrorHook(char*, int)' [-Wmissing-declarations]
int Grass2CPLErrorHook( char * pszMessage, int bFatal )
     ^
grass57dataset.cpp: In constructor 'GRASSRasterBand::GRASSRasterBand(GRASSDataset*, int, const char*, const char*)':
grass57dataset.cpp:204:60: warning: declaration of 'pszCellName' shadows a member of 'this' [-Wshadow]
                                   const char * pszCellName )
                                                            ^
grass57dataset.cpp:204:60: warning: declaration of 'pszMapset' shadows a member of 'this' [-Wshadow]
grass57dataset.cpp:204:60: warning: declaration of 'nBand' shadows a member of 'this' [-Wshadow]
grass57dataset.cpp:204:60: warning: declaration of 'poDS' shadows a member of 'this' [-Wshadow]
grass57dataset.cpp: At global scope:
grass57dataset.cpp:482:8: warning: unused parameter 'nBlockXOff' [-Wunused-parameter]
CPLErr GRASSRasterBand::IReadBlock( int nBlockXOff, int nBlockYOff,
        ^
grass57dataset.cpp:527:8: warning: unused parameter 'eRWFlag' [-Wunused-parameter]
CPLErr GRASSRasterBand::IRasterIO ( GDALRWFlag eRWFlag,
        ^
grass57dataset.cpp:527:8: warning: unused parameter 'psExtraArg' [-Wunused-parameter]
make[2]: *** [../o/grass57dataset.lo] Error 1
make[2]: Leaving directory `/data/src/gdal/frmts/grass'
make[1]: *** [grass-install-obj] Error 2
make[1]: Leaving directory `/data/src/gdal/frmts'
make: *** [frmts-target] Error 2

I am grateful for any help on this issue...

Cheers
Stefan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160404/adae4182/attachment.html>


More information about the gdal-dev mailing list