Environment:
1. Windows 7_64 bit
2. Python 2.7_32 bit
Steps:
1. Download the Mapnik SDK http://mapnik.org/download/i downloaded the Windows-bit SDK
2, the download SDK decompression, I store location is D:\mapnik-v2.2.0
3, set the system environment variables.
3.1, the PATH variable is appended D:\mapnik-v2.2.0\lib\;D: \mapnik-v2.2.0\bin\;
3.2. The new system variable PYTHONPATH value is D:\mapnik-v2.2.0\python\2.7\site-packages\
4. Run C + + Demo Test installation
4.1, in the command prompt (CMD) into the C + + demo directory, test Mapnik.
CD D:\mapnik-v2. 2.0\demo\c++
4.2. Input
Rundemo. \.. \
4.3. If the installation succeeds, the slice file will be output in the directory.
5. Run the Python demo test installation
5.1. Enter the Python demo directory at the command prompt (CMD) to test the Mapnik.
CD D:\mapnik-v2.2.0\demo\python
5.2. Input
python rundemo.py
5.3. If the installation succeeds, the slice file will be output in the directory.
Problems encountered:
1. When running C + + Demo, the prompt "Unable to locate the program input point xmlxincludeprocessflags on the dynamic link library libxml2.dll." “
Try: The JAVA environment variable is configured on the machine, and there is a libxml2.dll in the X:\Java\jdk1.7.0_51\jre\bin\ directory. Place the Mapnik variable of step 3.1 before the Java variable.