Building from source for Windows
kocio-pl opened this issue · comments
Even if this project is no longer maintained, I need a way to compile Mapnik under Windows (needed for new release of Tile Mill), because "Mason runs on both Linux and OS X". The list of dependencies is outdated:
https://github.com/mapnik/mapnik-packaging/blob/master/windows/building_mapnik_dependencies.md
Here are the issues I have found:
Applications and versions
- Visual Studio Community 2017 is available instead of Visual C++ Express
- msysgit is discontinued (now it's Git for Windows)
- libwebp - another page and versions available (strange - now it's 0.6.0 instead of 1.4): https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html (https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.6.0-windows-x86.zip)
- zlib - 1.2.11 instead of not available version
- libpng - 1.5.30 instead of not available version
- tiff - 4.0.4 instead of not available version
- gdal - change of directory (now it's in old_releases)
- protobuf - the link has changed: https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.zip
Compilation
- icu - stubdata, common, i18n, layout and layoutex projects need vs2010 - it can be updated, but still compilation does not complete
- jpeg - lack of win32.mak, doesn't work with proposed solution
- libpq - lack of manifest
- tiff - depends on libjpeg, so it doesn't compile too
- libxml2 - problems with macro redefinition
- cairo - depends on zlib
- gdal - doesn't compile
- protobuf - you need to update projects with VSC
I may try with newer versions of these tools and update the documentation, but are there other ways of building Windows port?
@kocio-pl - https://github.com/mapbox/windows-builds should be helpful.
Great, thanks!
I would then add this link in the https://github.com/mapnik/mapnik-packaging/blob/master/README.md and note that Mason is just for Linux and macOS.