google / s2geometry

Computational geometry and spatial indexing on the sphere
http://s2geometry.io/
Apache License 2.0
2.29k stars 302 forks source link

Does S2 support Windows? #252

Open Leedehai opened 2 years ago

Leedehai commented 2 years ago

Hi, I noticed there are several closed issues that relate to Windows, and based on their contents it appears S2 supports Windows. Code in the ae470b7 version committed on April 11, 2022 doesn't contain getrusage() or headers that indicate POSIX like unistd.h.

However, the official website http://s2geometry.io/about/platforms says Windows is not supported at this time and that POSIX getrusage() is needed.

Could you elaborate on why Windows isn't supported? Or, is the doc out of date? Thanks!

jmr commented 2 years ago

Documentation appears to be out of date. Windows is certainly less tested, but may work. Try it and let us know.

MBkkt commented 1 year ago

We use s2 on windows in ArangoDB