- First download the one of the two windows packages:
- Runtime package for use via Python: http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-win-v2.2.0.zip
- Full SDK with headers and .lib files for compiling C++ programs against: http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-win-sdk-v2.2.0.zip
-
Extract the archive to
c:\\mapnik-v2.2.0
-
Setup environment variables in your shell
set PATH=c:\mapnik-v2.2.0\lib;%PATH% set PATH=c:\mapnik-v2.2.0\bin;%PATH%
-
Test the c++ demo
cd c:\mapnik-v2.2.0\demo\c++ rundemo ....\
-
Test the python demo
First ensure you have 32 bit python 27 installed. Then do:
set PYTHONPATH=c:\\mapnik-v2.2.0\python\2.7\site-packages;%PYTHONPATH%
set PATH=c:\\Python27;%PATH%
cd c:\\mapnik-v2.2.0\demo\python
python rundemo.py
- If you installed the SDK version with headers (the
c:\\mapnik-v2.2.0\include
directory will exist), and you have Visual Studio 2010 installed then you can also build apps against the C++ core. To do this follow the instructions for building the c++ rundemo yourself: https://github.com/mapnik/mapnik/blob/v2.2.0/demo/c%2B%2B/README.md