mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link

install mapnik-sdk and run demo #100

Closed hcfang2000 closed 7 years ago

hcfang2000 commented 7 years ago

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 commented 7 years ago

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:

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 commented 7 years ago

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.