Skip to content

Instantly share code, notes, and snippets.

@linhdh
Created July 11, 2019 08:04
Show Gist options
  • Save linhdh/3a973d1596f2c8d3bb9798781276f572 to your computer and use it in GitHub Desktop.
Save linhdh/3a973d1596f2c8d3bb9798781276f572 to your computer and use it in GitHub Desktop.
Setup Mapnik 2.2.0 release candidate for windows 32 bit
  1. First download the one of the two windows packages:
  1. Extract the archive to c:\\mapnik-v2.2.0

  2. Setup environment variables in your shell

    set PATH=c:\mapnik-v2.2.0\lib;%PATH% set PATH=c:\mapnik-v2.2.0\bin;%PATH%

  3. Test the c++ demo

    cd c:\mapnik-v2.2.0\demo\c++ rundemo ....\

  4. 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
  1. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment