delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/23/08:54:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=FCASUnI3gA7YFIMPfXimiWkBmRc2f
HU8i22oUo4+3HQuSNx9OWmRZ+Og3d0ZmrjVlXmV4L5fJTT7GZFw+XmUavFD3yUPF
dvP9mUVMtgeIQAS6Ql34MmOWOdjbUf/Lqgvm6mAAFSli/6C4CYrJ6VS3/wC5DZSg
dSs6bmVdBhd6PI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=ko0IRHEyUfG7hPF4aa70mO88dj4=; b=gbO
WXHy10sjX/40xa4CYVaMvdxUk65RZJ1nwPhI6qKrUpemRT1XW655XMw2EqfQVsCg
TLjhWVFJGWDXZ9XiEfD6YvnifyVBg5H7wD5NJq3xgqLkilBtYZolpQTHObywZqoT
PlPSSi8wdJGcjLsEv6xjyMXIWLHhRiZZk8mIHHUo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Follow, cmath, platform.h, UD:platform.h
X-HELO: mail-yw0-f173.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ABCRWJrWCxIDoIehOAktR2AjNpPnBZqW1Ll9yPbDMLI=; b=Ofa5l1YCpkh8fv3OAVJZXDIEAqr/CMy/MFTgOsaxuuML42hdnW1eAmrCOzSbqi1k8P ghKUcHt++bfP1lXUgkRzKwCnp8ZG4AZXDiRErVBxdTz3IxAQDYz28TrB3/gaEUDUKpwc 8dg5W9aZtN368RzOxv0clGjEqcHxfseDiuQBh0ELahH5otDIsOxJEktcIUeZMXh18o+k 326T9zkr4XgRMm9GhtCVIElEW89QEHQToxDpBKBJcCWha9bFsXI2gH2CHNCWLqDUWgk1 Msuh/RDmfGd62lbI7Giu9kuPlc/80sxzSK0o6bjpeOG7zlejQwgDlYbwLY92JvqWVRfN xXKw==
X-Gm-Message-State: AEkoous8kaGRLCg8qmQvbN70YJXKveRMWABzzUCuKYNqR0o4DyT6osGB+AZx3ENa1dqtVe3Q1XHuV34AK3cLpQ==
X-Received: by 10.129.89.84 with SMTP id n81mr20748955ywb.244.1471956842837; Tue, 23 Aug 2016 05:54:02 -0700 (PDT)
MIME-Version: 1.0
From: Felipe Vieira <fmv1992 AT gmail DOT com>
Date: Tue, 23 Aug 2016 09:54:02 -0300
Message-ID: <CAMZ6u3vL1D7fZF1Ro2zQDQg3uUjsNad9+QXf1d=8GSxtnwx7qA@mail.gmail.com>
Subject: Re: building libgeos [solved]
To: cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019