matplotlib / matplotlib/basemap

Cygwin install error: error: 'isnan' was not declared in this scope

Đang mở
#314 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Python
Star
817
Fork
395
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Dear all,

after struggling with the installation of basemap I decided to post here. I have tried a couple of different 'hacks' found in google but none worked.

Full error:

> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -MT IndexedPointInAreaLocator.lo -MD -MP -MF .deps/IndexedPointInAreaLocator.Tpo -c IndexedPointInAreaLocator.cpp -DDLL_EXPORT -DPIC -o .libs/IndexedPointInAreaLocator.o
> In file included from ../../../include/geos/geom/Geometry.h:26:0,
> from IndexedPointInAreaLocator.cpp:18:
> ../../../include/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::isNull() const':
> ../../../include/geos/platform.h:88:27: error: 'isnan' was not declared in this scope
> # define ISNAN(x) (isnan(x))
> ^
> ../../../include/geos/geom/Coordinate.inl:39:10: note: in expansion of macro 'ISNAN'
> return (ISNAN(x) && ISNAN(y) && ISNAN(z));
> ^
> ../../../include/geos/platform.h:88:27: note: suggested alternative:
> # define ISNAN(x) (isnan(x))
> ^
> ../../../include/geos/geom/Coordinate.inl:39:10: note: in expansion of macro 'ISNAN'
> return (ISNAN(x) && ISNAN(y) && ISNAN(z));
> ^
> In file included from ../../../include/geos/geom/Coordinate.inl:23:0,
> from ../../../include/geos/geom/Coordinate.h:161,
> from ../../../include/geos/geom/Envelope.h:26,
> from ../../../include/geos/geom/Geometry.h:28,
> from IndexedPointInAreaLocator.cpp:18:
> /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:26:0,
> from IndexedPointInAreaLocator.cpp:18:
> ../../../include/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::equals3D(const geos::geom::Coordinate&) const':
> ../../../include/geos/platform.h:88:27: error: 'isnan' was not declared in this scope
> # define ISNAN(x) (isnan(x))
> ^
> ../../../include/geos/geom/Coordinate.inl:83:21: note: in expansion of macro 'ISNAN'
> ((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
> ^
> ../../../include/geos/platform.h:88:27: note: suggested alternative:
> # define ISNAN(x) (isnan(x))
> ^
> ../../../include/geos/geom/Coordinate.inl:83:21: note: in expansion of macro 'ISNAN'
> ((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
> ^
> In file included from ../../../include/geos/geom/Coordinate.inl:23:0,
> from ../../../include/geos/geom/Coordinate.h:161,
> from ../../../include/geos/geom/Envelope.h:26,
> from ../../../include/geos/geom/Geometry.h:28,
> from IndexedPointInAreaLocator.cpp:18:
> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/cmath:862:5: note: 'std::isnan'
> isnan(_Tp __f)
> ^
> make[4]: **\* [Makefile:373: IndexedPointInAreaLocator.lo] Error 1
> make[4]: Leaving directory '/tmp/basemap/geos-3.3.3/src/algorithm/locate'
> make[3]: **\* [Makefile:392: all-recursive] Error 1
> make[3]: Leaving directory '/tmp/basemap/geos-3.3.3/src/algorithm/locate'
> make[2]: **\* [Makefile:444: all-recursive] Error 1
> make[2]: Leaving directory '/tmp/basemap/geos-3.3.3/src/algorithm'
> make[1]: **\* [Makefile:476: all-recursive] Error 1
> make[1]: Leaving directory '/tmp/basemap/geos-3.3.3/src'
> make: **\* [Makefile:368: all-recursive] Error 1

I am installing it on cygwin 64 bits.

I have also tried to use cygwin's binaries but they give errors on a tested script.

I am not sure of any additional relevant information.

Best regards,

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện quá trình cài đặt Cygwin 64-bit và kiểm tra bản build bị lỗi trong geos-3.3.3/src/algorithm/locate/IndexedPointInAreaLocator.cpp. Đọc ../../../include/geos/platform.h và ../../../include/geos/geom/Coordinate.inl xung quanh việc sử dụng ISNAN, sau đó xác minh rằng quá trình cài đặt basemap hoàn tất và script được nêu có thể chạy được.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp, python
Lĩnh vực
build-system, operating-systems
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.