It should be simple, but I ran into a number of errors.
First I got stuck on
libtool: line 990: g++: command not found. It turns out I needed to install
yum install gcc-c++
Then I got stuck on this one:
platform.h:110:2: error: #error "Can not compile without isnan function or macro [...] "Coordinate.inl:38: error: ‘ISNAN’ was not declared in this scope
In these versions of g++
isnanis defined as a macro in
unless is included, in which case
std::isnan()is defined instead.
And so I tried replacing
#include <math.h> with
#include <cmath> in
include/geos/platform.h. Amazingly, that worked.