mapbox / mapnik-vector-tile

Mapnik implemention of Mapbox Vector Tile specification
BSD 3-Clause "New" or "Revised" License
553 stars 117 forks source link

tileinfo.cpp example is broken #235

Closed lincomatic closed 6 years ago

lincomatic commented 7 years ago

The Makefile for c++/examples/tileinfo refers to a file which doesn't exist - ../../src/vector_tile.pb.cc

springmeyer commented 7 years ago

The vector_tile.pb.cc is generated by calling out to protoc. If you hit a compile error due to vector_tile.pb.cc not being there it probably means that you need protoc installed. You can get protoc by installing the google libprotobuf library (https://github.com/google/protobuf). We generally use/test with version 2.6.1 of that library.

mikrosk commented 5 years ago

If you hit a compile error due to vector_tile.pb.cc not being there it probably means that you need protoc installed

@springmeyer Can you be more specific? There is no rule in the example's Makefile which would generate such file? Where / how should I run that protoc ?

talaj commented 5 years ago

@mikrosk Here is the rule: https://github.com/mapbox/mapnik-vector-tile/blob/51b29f260783fa224d3f62d726be1a650525da3f/gyp/build.gyp#L27

mikrosk commented 5 years ago

@talaj ah ok, so to try the example I have to build the library first. now as I think about it, it sounds pretty logical.