-
Notifications
You must be signed in to change notification settings - Fork 166
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
node-mapnik 3.7.2 fails to build with geometry.hpp 1.0.0 & mapnik-vector-tile 1.6.1 #901
Comments
I am far from an expert (just a maintainer of a Debian derivative who ran into this build failure) but here is my interpretation of what is going on. mapbox::geometry::geometry is a "variant" type which can be one of a variety of subtypes. There is an implementation of encode_geometry_pbf that takes said variant and uses some template magic to look up the type stored in the variant and dispatch it to the correct implementation. It looks like a new type "empty" was added to the list of types supported by the variant. When the template magic trys to generate the dispatch for the variant the compiler fails to find the routine to dispatch to, for reasons I don't fully understand it considers this as "ambiguous" rather than "no match". The fix would seem to be to add an implementation of encode_geometry_pbf for mapbox::geometry::empty . From reading the existing "multi point" implementation I belive this implementation should simply return false, but I am far from an expert. |
Hmm, since Travis passes mostly fine (and it builds using clang), I think this might be a gcc-only problem? |
what version of mapnik-vector-tile are you testing with? It looks like this has been fixed (with a more aggressive patch than the one I used) in the master branch of mapnik-vector-tile ( mapbox/mapnik-vector-tile@29fae7a ) , though there don't seem to have been any releases since. |
Actually, no, I'm building 3fecdfa from source in a Docker container. I just wonder how Travis seems to pass alright with the current |
Ah, this might be the thing:
I'm currently on Mapnik |
As reported by Matthias Klose in Debian Bug #913708:
It looks like geometry.hpp 1.0.0 caused this issue.
The text was updated successfully, but these errors were encountered: