public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: building libgeos [solved]
@ 2016-08-23 13:33 Felipe Vieira
  0 siblings, 0 replies; only message in thread
From: Felipe Vieira @ 2016-08-23 13:33 UTC (permalink / raw)
  To: cygwin

Hey guys,

after a couple more trials was able to solve the issue. I am not sure
exactly what was the problem but I'll be reporting the full
workaround.

Neither I am certain that the libgeos shipped with cygwin has an
issue; it looks like it was a matplotlib basemap issue instead.

Anyways here is the full process to get matplotlib basemap on cygwin:

1) <<Do not>> git clone https://github.com/matplotlib/basemap .
Instead use their releases page:
https://github.com/matplotlib/basemap/releases . Follow the procedure
indicated in their github home page.

2) After the "> ./configure --prefix=$GEOS_DIR" but before the " >
make; make install" edit the file include/geos/platform.h on line 87
from:

'''
#if defined(HAVE_ISNAN)
# define ISNAN(x) (isnan(x))
#else
# if defined(_MSC_VER)
#  define ISNAN(x) _isnan(x)
# elif defined(__MINGW32__)
// sandro furieri: sanitizing MinGW32
#  define ISNAN(x) (std::isnan(x))
# elif defined(__OSX__) || defined(__APPLE__)
   // Hack for OS/X <cmath> incorrectly re-defining isnan() into oblivion.
   // It does leave a version in std.
#  define ISNAN(x) (std::isnan(x))
# elif defined(__sun) || defined(__sun__)
#  include <math.h>
#  define ISNAN(x) (::isnan(x))
# endif
#endif
'''
to
'''
# define ISNAN(x) (std::isnan(x))
# include <math.h>
# include <cmath>
'''
now proceed to the " > make; make install" and continue the procedure
as informed.

Thanks for all the help!

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] only message in thread

only message in thread, other threads:[~2016-08-23 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 13:33 building libgeos [solved] 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).