This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building libgeos


Guys,
I'm getting this error when trying to compile libgeos:

"""
In file included from ../../../include/geos/geom/Geometry.h:25:0,
                 from IndexedPointInAreaLocator.cpp:17:
../../../include/geos/geom/Coordinate.inl: In member function ‘bool
geos::geom::Coordinate::isNull() const’:
../../../include/geos/platform.h:90:27: error: ‘isnan’ was not
declared in this scope
 # define ISNAN(x) (isnan(x))
                           ^
../../../include/geos/geom/Coordinate.inl:38:10: note: in expansion of
macro ‘ISNAN’
  return (ISNAN(x) && ISNAN(y) && ISNAN(z));
          ^
../../../include/geos/platform.h:90:27: note: suggested alternative:
 # define ISNAN(x) (isnan(x))
                           ^
../../../include/geos/geom/Coordinate.inl:38:10: note: in expansion of
macro ‘ISNAN’
  return (ISNAN(x) && ISNAN(y) && ISNAN(z));
          ^
In file included from ../../../include/geos/geom/Coordinate.inl:22:0,
                 from ../../../include/geos/geom/Coordinate.h:158,
                 from ../../../include/geos/geom/Envelope.h:25,
                 from ../../../include/geos/geom/Geometry.h:27,
                 from IndexedPointInAreaLocator.cpp:17:
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/cmath:862:5: note:
‘std::isnan’
     isnan(_Tp __f)
     ^
In file included from ../../../include/geos/geom/Geometry.h:25:0,
                 from IndexedPointInAreaLocator.cpp:17:
../../../include/geos/geom/Coordinate.inl: In member function ‘bool
geos::geom::Coordinate::equals3D(const geos::geom::Coordinate&)
const’:
../../../include/geos/platform.h:90:27: error: ‘isnan’ was not
declared in this scope
 # define ISNAN(x) (isnan(x))
                           ^
../../../include/geos/geom/Coordinate.inl:77:21: note: in expansion of
macro ‘ISNAN’
   ((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
                     ^
../../../include/geos/platform.h:90:27: note: suggested alternative:
 # define ISNAN(x) (isnan(x))
                           ^
../../../include/geos/geom/Coordinate.inl:77:21: note: in expansion of
macro ‘ISNAN’
   ((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
                     ^
In file included from ../../../include/geos/geom/Coordinate.inl:22:0,
                 from ../../../include/geos/geom/Coordinate.h:158,
                 from ../../../include/geos/geom/Envelope.h:25,
                 from ../../../include/geos/geom/Geometry.h:27,
                 from IndexedPointInAreaLocator.cpp:17:
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/cmath:862:5: note:
‘std::isnan’
     isnan(_Tp __f)
     ^
make[5]: *** [Makefile:483: IndexedPointInAreaLocator.lo] Error 1
make[5]: Leaving directory '/tmp/alt_geos/geos-3.5.0/src/algorithm/locate'
make[4]: *** [Makefile:502: all-recursive] Error 1
make[4]: Leaving directory '/tmp/alt_geos/geos-3.5.0/src/algorithm/locate'
make[3]: *** [Makefile:556: all-recursive] Error 1
make[3]: Leaving directory '/tmp/alt_geos/geos-3.5.0/src/algorithm'
make[2]: *** [Makefile:595: all-recursive] Error 1
make[2]: Leaving directory '/tmp/alt_geos/geos-3.5.0/src'
make[1]: *** [Makefile:469: all-recursive] Error 1
make[1]: Leaving directory '/tmp/alt_geos/geos-3.5.0'
make: *** [Makefile:416: all] Error 2
"""

I was trying a lot of google solutions but none of the worked.

Can you suggest any work around?

The libgeos github does not allow me to open an issue.

My ultimate goal is to use matplotlib Basemap.

Best regards,

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]