Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

install mapnik-sdk and run demo #100

Closed
hcfang2000 opened this issue Oct 29, 2016 · 2 comments
Closed

install mapnik-sdk and run demo #100

hcfang2000 opened this issue Oct 29, 2016 · 2 comments

Comments

@hcfang2000
Copy link

I think I have had a successful build following the build procedures. I get a full mapnik-sdk sub-directory and it looks like it's the build result.

What's the right way to install it? I could not find any documentation or instructions for the following steps. I could not run the demo rundemo.py successfully either under the new build.

@wilhelmberg
Copy link
Contributor

I could not run the demo rundemo.py successfully either under the new build.

It's not possible to run the Python bindings/demos as they are currently failing to build on Windows, see #92


Quick rundown for the C++ demo:

CD into mapnik SDK directory
set-env-vars.bat
cd demo\c++
git clone https://chromium.googlesource.com/external/gyp.git gyp
gyp\gyp.bat rundemo.gyp --depth=. -f msvs -G msvs_version=2015
rundemo.sln <- this opes VS

Add x64 platform to the solution
Change the following paths in rundemo.cpp:

  • register_datasources => lib/mapnik/input/
  • register_font => lib/mapnik/fonts/dejavu-fonts-ttf-2.37/ttf/DejaVuSans.ttf

Build and exit VS.

cd back into the root directory of the mapnik SDK
demo\c++\Debug\rundemo.exe

You should now have some demo.* in the root directory of mapnik SDK.

@hcfang2000
Copy link
Author

Your step-by-step instruction is really INVALUABLE. It works. Too happy!

This instructions should be put inside the README.md. Thank you very very much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants