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
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:
C:\Python27
C:\Program Files (x86)\Git
ami-6f2cf804
in us-east-1
is a good starting pointVisual Studio Express 2015 for Windows Desktop
from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx (direct download)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:
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.
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:
settings "FASTBUILD=0"
win-perf
: settings "TARGET_ARCH=32" "MAPNIKBRANCH=win-perf"
scripts\build.bat
With "FASTBUILD=1"
(the default):
MAPNIKBRANCH
)scripts\build_node_mapnik.bat
afterwardsWith "FASTBUILD=0"
:
MAPNIKBRANCH
)NODEMAPNIKBRANCH
)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
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.
settings "FASTBUILD=0" "PACKAGEDEPS=1"
settings "TARGET_ARCH=32" "FASTBUILD=0" "PACKAGEDEPS=1"
The resulting 7z files are created in the respective bin\
directories:
mapnik-win-sdk-binary-deps-14.0-x64.7z
mapnik-win-sdk-binary-deps-14.0-x86.7z
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