mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link
banished

DEPRECATED

This repository is not maintained anymore as Windows support for mapnik and node-mapnik has been dropped.

Background information: https://github.com/mapnik/node-mapnik/issues/848

If you are interested in bringing Windows support back to life contact @springmeyer

windows-builds

Build status Build Status

Things are moving fast and sometimes break. If something doesn't work for you, please open an issue.

Windows build scripts mainly targeting:

Other supported software:

Requirements

Recommendations:

System Setup

Install:

When using your builds on machines that don't have Visual Studio installed you have to install the C++ runtime corresponding to the VS version that was used for building:

Build Setup

There is no need to manually download any dependencies, they all get downloaded automatically when needed.

git clone https://github.com/mapbox/windows-builds.git
cd windows-builds
settings.bat

This defines default options to get a quick 64bit build of mapnik: e.g dependencies are not compiled, but already compiled binary dependencies get downloaded.

Options for settings.bat (see source for overridable parameters):

settings.bat ["OVERRIDABLE-PARAM=VALUE"] ["OVERRIDABLE-PARAM-TWO=VALUE"]

You can combine as many overridable parameters as you like, but each one has to be quoted with double quotes!

Examples:

Building mapnik

scripts\build.bat

With "FASTBUILD=1" (the default):

With "FASTBUILD=0":

With "PACKAGEMAPNIK=1" (the default) a mapnik SDK package is created, including all necessary header files, libs and DLLs.

The package will be created in the directory bin\ with this name:

mapnik-win-sdk-<MSBUILD VERSION>-<ARCHITECTURE>-<MAPNIK GIT TAG>.7z

e.g.

mapnik-win-sdk-14.0-x64-v3.0.0-rc1-242-g2a33ead.7z

Creating binary mapnik dependencies packages (Mapbox specific)

Binary deps packages help speed up the mapnik build by providing already compiled dependencies. They are utilized by "FASTBUILD=0" (the default) and provided by Mapbox via S3 - the build scripts pull them down automatically.

The resulting 7z files are created in the respective bin\ directories:

Automated builds

The binary deps packages have to be updated everytime one or more depencdencies change (e.g. boost@1.60 -> boost@1.61). Otherwise "FASTBUILD=1" will use older depencdencies.

The use of binary deps packages can be overriden via "FASTBUILD=0".

The new binary deps packages have to be put into (overwrite old ones)

s3://mapbox/windows-builds/windows-build-deps