Problem when installing rasterVis

Hello, I am trying to install rasterVis and keep getting this error:
g++ -std=gnu++11 -I"/opt/ESS/packages/R/4.0.0/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include -I'/opt/ESS/packages/R/4.0.0/lib64/R/library/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c geos_methods.cpp -o geos_methods.o

geos_methods.cpp: In member function ‘ SpatVector SpatVector::crop(SpatExtent) ’:

geos_methods.cpp:143:91: error:GEOSClipByRect_r ’ was not declared in this scope

GEOSGeometry* r = GEOSClipByRect_r(hGEOSCtxt, g[i].get(), e.xmin, e.ymin, e.xmax, e.ymax);

^

geos_methods.cpp: In member function ‘ SpatVector SpatVector::voronoi(SpatVector, double, int) ’:

geos_methods.cpp:516:2: error: expected ‘ ; ’ before ‘ return

return out;

^

geos_methods.cpp: In member function ‘ SpatVector SpatVector::delauny(double, int) ’:

geos_methods.cpp:576:2: error: expected ‘ ; ’ before ‘ return

return out;

^

make: *** [geos_methods.o] Error 1

System: Centos 7
PROJ: 4.8.0
GEOS: 3.4.2
GDAL:2.4.0

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.