Information originally from Zordius at http://mapnik.org/news/2008/feb/05/mapnik_win32_r638/
FIXME: Needs some cleanup
Prerequisites
- Python 2.5 - python.org
- The Mapnik Windows distribution
- Boost (instructions below)
Instructions
- download the mapnik binary
- unzip it, it should be in C:\mapnik-0_5_0\
- copy C:\mapnik-0_5_0\site-packages\mapnik\ as C:\Python25\Lib\site-packages\mapnik\ . or, when you "from mapnik import *" you will get into trouble.
- set your system environment veriables, add "c:\mapnik-0_5_0\lib" in PATH.
- open a new console by run "cmd". type "path" to make sure your PATH contains c:\mapnik-0_5_0\lib
- run "C:\Python25\python.exe" . type "from mapnik import *" at python prompt. If you get no error message, you made it! mapnik lib is ready for you.
- open explorer, go c:\mapnik-0_5_0\demo\python, double click rundemo.py
- you should see demo.* 3 image files...or, you will get a warning message shows lack of boost_somethingelse.dll ....you should install boost c++ library.
Boost
Prerequisites
Instructions
- you will need check "Multithread, DLL" option in installer, then check "Boost IOStreams"
- after install done, you will need to add "C:\Program Files\boost\boost_1_34_1\lib" in your path. you should reopen a new console to check the new path setting is correct or not.
- now you may run the demo by open explorer, go c:\mapnik-0_5_0\demo\python, double click rundemo.py
