Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are the Windows binaries, eg. 2.2.0 ? #4416

Open
LocalStarlight opened this issue Nov 5, 2023 · 4 comments
Open

Where are the Windows binaries, eg. 2.2.0 ? #4416

LocalStarlight opened this issue Nov 5, 2023 · 4 comments

Comments

@LocalStarlight
Copy link

Trying to figure out how to install Mapnik on Windows is like some insane puzzle, I have been going round in circles for about an hour now...
Various links suggest I should be able to get the v2.2.0 Windows binary from the downloads page, but it's not there (unless it's really, really hidden).

I downloaded the latest version and tried to build it, but totally failed.

How can I get Mapnik running on Windows? Where can I download the 2.2.0 binary?

@hummeltech
Copy link
Contributor

hummeltech commented Nov 6, 2023

I believe you can very easily install mapnik on Windows using vcpkg:
https://vcpkg.link/ports/mapnik

Hope that helps you!

@mathisloge
Copy link
Collaborator

mathisloge commented Nov 6, 2023

yeah, either build with vcpkg or yourself directly with cmake.
https://github.com/mapnik/mapnik/blob/master/docs/cmake-usage.md

@LocalStarlight
Copy link
Author

Thanks so much for the responses. You'll have to forgive my ignorance, because I'm more of an artist than a coder, but I'm not sure what to do next.

I'm in a very similar situation to the person asking the question here: https://stackoverflow.com/questions/72362395/what-are-the-next-steps-after-installing-mapnik-with-vcpkg-to-see-mapnik-usage

I have installed Mpanik with vcpkg. This page says that you can check Mapnik is installed with the following:
mapnik-config -v # should return a version number.

But I just get this error:
mapnik-config : The term 'mapnik-config' is not recognized as the name of a cmdlet, function, script file, or operable program.

So I'm not clear to what extent Mapnik is now 'installed' after using vcpkg (which is new to me in itself).

Essentially, the point I'm trying to get to is to be able to run Python scripts to render OSM stuff using Mapnik. What do I need to do to get to that point after installing using vcpkg?

@dch0ph
Copy link

dch0ph commented Jan 27, 2024

If you create want to use mapnik with OSM data, you would be frankly best to work through docker or WSL, as suggested in the stackoverflow answer above. Getting Postgres running, importing the OSM data, connecting the postgres database to mapnik is non trivial, and all the HOWTO guides are for Linux-type environments. Recommend starting from nik4 for the final rendering.

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

No branches or pull requests

4 participants