muety / pyquadkey2

🌐 Python implementation of geographical tiling using QuadKeys
https://docs.muetsch.io/pyquadkey2
Apache License 2.0
22 stars 5 forks source link

Fix Windows build #1

Closed muety closed 3 years ago

muety commented 5 years ago

Currently, building the Cython module on Windows is not working due to some errors.

tilesystem.c
tilesystem.c(2016): error C2440: 'type cast': cannot convert from '__pyx_ctuple_long__and_long' to '__pyx_ctuple_long__and_long'
tilesystem.c(2016): error C2198: '__pyx_pf_10tilesystem_6pixel_to_tile': too few arguments for call
tilesystem.c(2299): error C2057: expected constant expression
tilesystem.c(2299): error C2466: cannot allocate an array of constant size 0
tilesystem.c(2299): error C2133: '__pyx_v_qk': unknown size
tilesystem.c(2612): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
tilesystem.c(2919): warning C4244: '=': conversion from 'long' to 'char', possible loss of data
tilesystem.c(3040): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
muety commented 3 years ago

Resolved with #3