-
Notifications
You must be signed in to change notification settings - Fork 826
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
Can mapnik3.0 be installed on a Windows system? #4062
Comments
Windows binaries are no longer suppported, as per mapnik/node-mapnik/issues/848 . I did make mapnik work after that by creating a VS solution by hand, it was however a pain (to put it mildly). This was of course more a one-time thing rather than a sustainable approach. Edit: I have just noticed #4056 where there is a link to a CMake build which can be used with Visual Studio, but have not tried it yet. |
yes, this fork https://github.com/pedro-vicente/mapnik has a CMake build for the 3.0 and 2.3 branches with the minimum dependencies the 2.3 branch builds without errors and runs a test program with the OSM plugin I'll post those errors here later |
here are the 3.0 errors
code
|
code
|
|
|
|
|
|
|
|
for the 3.0 branch, this is the CMake script used, not complete regarding list of source files https://github.com/pedro-vicente/mapnik/blob/master/CMakeLists.txt list of dependencies can be built with https://github.com/pedro-vicente/mapnik/blob/master/build/bld.bat https://github.com/pedro-vicente/mapnik/blob/master/build/dep.bat |
for the 2.3 branch , this is a complete CMake script that builds the demo https://github.com/pedro-vicente/mapnik/blob/2.3.x/CMakeLists.txt there was only a small change in code needed https://github.com/pedro-vicente/mapnik/commit/82c6e6c7f7b7c0d049964195282b03e8743e2d62 |
@pedro-vicente Wow that is great, Is it possible to give some more information about compiling on windows? does it work with MSVC 2015 build tools? |
@am2222 The above that's basically all the information needed to get started:
https://github.com/pedro-vicente/mapnik/blob/master/build/dep.bat
https://github.com/pedro-vicente/mapnik/blob/master/build/bld.bat with MSVC 2015, there are more building errors. I recently switched to MSVC 2019 from MSVC 2015, very happy about it |
@pedro-vicente wow thanks, |
@pedro-vicente Can you tell me which dependencies should I download? |
I have downloaded (and built — slow process) all dependencies with vcpkg. There’s a few errors with Visual Studio 2015 but they are reasonably easy to solve. I’ve got the main library and most input plug-ins: https://github.com/roelandschoukens/mapnik/tree/mapnik-win |
@roelandschoukens Hi, thanks I will try to use vcpkg to see how things goes. thanks |
@roelandschoukens have you tired to install python wrapper for mapnik as well? |
I tried but that wrapper doesn't appear to be maintained anymore. It cannot be built with the current version of Mapnik. |
@roelandschoukens thanks so much, It seems python is lacking a good map rendering engine |
okay, I could fix the errors and now have a working python package. See my python-mapnik fork. This requires the static library build. I cannot get all exported symbols working on Visual Studio (the problematic ones are static class members). You must also set up a working Some input plugins have DLL dependencies (eg. gdal requires gdal204.dll). These DLLs have to be available via %PATH% when starting python. |
@roelandschoukens wow thanks so much it is great to hear that. It was for a while that I was looking for it. About mapnik itself, You built is same as on linux? or you added it into visual studio and build it? |
I’m building the mapnik library using CMake, and the python package using setup.py. |
@roelandschoukens thanks so much, I am trying to install dependencies. so far to install |
If you don't need webp image format support you can build mapnik without support for it. I haven't implemented an option in the CMake build for that. I guess you have to remove the |
@roelandschoukens thanks for your help, Actually I was gonna to build it without that format, But interesting part is that I managed to install it using vcpkg but it can not find it. |
@roelandschoukens thanks, I managed to start build mapnik but I faced
and some c2679
Where am I doing something wrong? |
@roelandschoukens which boost version have you installed? I just found that mapnik is not compatible with boost 1.70 probably the errors which I have faced is due to this issue. |
Hello, |
@artemp this can be closed since windows is now supported to be build with cmake. For anyone coming across this issue, see https://github.com/mapnik/mapnik/blob/master/docs/cmake-usage.md for more information. As long as the vcpkg.json manifsest file isn't in the source tree, a vcpkg.json file can be found here: https://github.com/mapnik/mapnik/blob/cd21256b6b308aad7e8d28b33da150fcec10b585/vcpkg.json |
@pedro-vicente would you happen to still have a clone of your fork with cmake support? |
You can compile mapnik@master with cmake. |
Yes, but i needed some cmake scripts that would work for 3.0.x, so wanted to start from an older version |
I don't , sorry. |
No description provided.
The text was updated successfully, but these errors were encountered: