[R] rgdal in 3.5 fails(?)

lejeczek pelj@@z @ending from y@hoo@co@uk
Fri Jun 15 17:58:58 CEST 2018


hi there

installation of the package fails:

...

g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I/usr/include/gdal 
-I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include 
-I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include 
-I"/usr/lib64/R/library/sp/include" -I/usr/local/include   -fpic -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches   -m64 -mtune=generic -c OGR_write.cpp -o OGR_write.o
g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I/usr/include/gdal 
-I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include 
-I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include 
-I"/usr/lib64/R/library/sp/include" -I/usr/local/include   -fpic -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches   -m64 -mtune=generic -c gdal-bindings.cpp -o 
gdal-bindings.o
gdal-bindings.cpp: In function ‘SEXPREC* RGDAL_GDALwithGEOS()’:
gdal-bindings.cpp:334:81: error: no matching function for call to 
‘OGRGeometryFactory::createFromWkt(const char*, NULL, OGRGeometry**)’
      OGRGeometryFactory::createFromWkt( (const char*) pszWKT, NULL, 
&poGeometry1 );
^
gdal-bindings.cpp:334:81: note: candidate is:
In file included from /usr/include/gdal/ogr_feature.h:34:0,
                  from /usr/include/gdal/ogrsf_frmts.h:35,
                  from gdal-bindings.cpp:7:
/usr/include/gdal/ogr_geometry.h:663:19: note: static OGRErr 
OGRGeometryFactory::createFromWkt(char**, OGRSpatialReference*, 
OGRGeometry**)
      static OGRErr createFromWkt( char **, OGRSpatialReference *,
                    ^
/usr/include/gdal/ogr_geometry.h:663:19: note:   no known conversion for 
argument 1 from ‘const char*’ to ‘char**’
gdal-bindings.cpp:340:81: error: no matching function for call to 
‘OGRGeometryFactory::createFromWkt(const char*, NULL, OGRGeometry**)’
      OGRGeometryFactory::createFromWkt( (const char*) pszWKT, NULL, 
&poGeometry2 );


Would you know is this the package's problem in new 3.5 version?

Many thanks, L.



More information about the R-help mailing list