public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* building libgeos
@ 2016-08-22 16:28 Felipe Vieira
  2016-08-22 17:24 ` Gerrit Haase
  2016-08-22 17:37 ` Marco Atzeri
  0 siblings, 2 replies; 4+ messages in thread
From: Felipe Vieira @ 2016-08-22 16:28 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: building libgeos
@ 2016-08-23  4:09 Felipe Vieira
  0 siblings, 0 replies; 4+ messages in thread
From: Felipe Vieira @ 2016-08-23  4:09 UTC (permalink / raw)
  To: cygwin

Dear Gerrit,

I have tried this workaround.

I'm trying to exhaust all the possibilities before submitting a bug.

--

Dear Marco,

I have tried the package from cygwin. It installed correctly and was
'kind of able to run' (imports went fine):
But somewhere in the first plot it threw an error. I do not have the
log here with me but it was something related to 'get_facecolor' in
matplotlib.

The exact same program was able to run flawless in my lubuntu so I
infer it is something to do with libgeos on cygwin.

Thank you both for your valuable input. I opened an issue on matplotlib basemap.

https://github.com/matplotlib/basemap/issues/314

I'll let you know when I have this problem solved.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-22 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22 16:28 building libgeos Felipe Vieira
2016-08-22 17:24 ` Gerrit Haase
2016-08-22 17:37 ` Marco Atzeri
2016-08-23  4:09 Felipe Vieira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).