Installing Mapnik on Windows 7

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.