mapnik-packaging icon indicating copy to clipboard operation
mapnik-packaging copied to clipboard

Building from source for Windows

Open kocio-pl opened this issue 8 years ago • 2 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 avatar Nov 27 '17 12:11 kocio-pl

@kocio-pl - https://github.com/mapbox/windows-builds should be helpful.

artemp avatar Nov 27 '17 14:11 artemp

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.

kocio-pl avatar Nov 27 '17 14:11 kocio-pl