-
Notifications
You must be signed in to change notification settings - Fork 117
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
vector_tile.pb.h:12:2: error: #error This file was generated by a newer version of protoc #277
Comments
@am2222 what OS are you using, does running |
@flippmoke Hi, |
@am2222 could you provide the entire log after you run |
@flippmoke
|
@flippmoke
|
@am2222, what is the version in your I see this in my #if GOOGLE_PROTOBUF_VERSION < 3000000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif |
@talaj Hi, |
Take a look into I remember I was also facing this error, but cannot remember what was the culprit. |
@am2222 yes, by default the
I am wondering if perhaps you have a local For example locally for me:
I wonder if you are pulling back a locally installed Also these can be your friends sometime:
or
|
Dear @talaj and @flippmoke thanks for your helps, I tried on ubuntu 17.1 and it worked fine. But I have faced another problem, it does not support make install, I thought I can use this library just like mapnik but it seems it is a bit complicated for me |
@am2222 it is a legacy of the library originally being designed as a header only library, but due to compile times was split out into Just write your C++ code and include the |
@flippmoke thanks very much for your help |
@flippmoke Hi, |
@am2222 I should note that we have prebuilt binaries for mapbox-gl-native with Qt. Could you provide any sample code or layout? I am not sure exactly what you are doing. |
@flippmoke Hi,
I have also attached my application. the main source code is as
which I have downloaded from github |
@am2222 Have you seen https://github.com/mapbox/tippecanoe ? Some notes on your code here -- you have a lot going on here you don't need. First you have no need for You really just need to do something like this - https://github.com/mapbox/mapnik-vector-tile/blob/master/test/vector_tile.cpp#L50-L58
|
Dear @flippmoke thanks very much for your help but I have faced a bad problem here, in vector_tile_processor.h threre is a reference to vector_tile_raster_clipper which has a reference to agg_rendering_buffer.h I tried to use
Can you please give me some hints about it?thanks |
Use the agg from mapnik: https://github.com/mapnik/mapnik/tree/master/deps/agg For example:
or
|
@flippmoke Thanks very much for your help, I finally could manage to fix dependencies problem, but Can you please give me some details about
Do I missed any other includes? |
That function and that part of the code are simply convience functions that we have using from libprotobuf and its created header that I told you we don't need. If you look at the test case example code I linked after that short set of code that I outlined above all the rest is simply checking the test results. You simply need the |
@flippmoke thanks, In fact I am now converting my maps to vector tiles but if I want to render them back to maps I saw this code was used to
But I have faced the problem that this function does not exist. |
If you had a
|
thanks very much dear @flippmoke |
@flippmoke Thanks very much for your helps, I thinks I am missing sth in converting to Vector tiles, When I want to covert a buffer to mapnik image I face this error
Is this because of not adding style name into layer?or it is sth wrong with converting mapnik map to vector tile? in my input map xml I have set layer names
The output buffer is attached to this post, Is not possible to make it human readable? |
@flippmoke is not this problem because of this fact that my map which I am converting to vector tiles consists of about 8 layers? can you please give me some hints about this problem?thanks |
@am2222 for some reason the vector tile you are creating is not proper, so this is something during your creation process. |
@flippmoke thanks very much, I am now trying to just use one layer I hope the problem fixes,thanks |
@flippmoke Hi,
my xml file is as following
this is rendered map, so the input
|
I believe I provided bad information here, the https://github.com/mapbox/mapnik-vector-tile/blob/master/src/vector_tile_tile.hpp#L198 |
@flippmoke thanks very much, So you mean I have to convert |
@flippmoke well I figure out and find mu mistake, but I still have problem about converting a vector tile which is in |
@flippmoke The only function which I found in tests to convert a string buffer to a tile object is
this function is in |
I tried this method and it seems it finally worked, I have no idea if it is a good solution or not
|
Looks like this is resolved, so closing this issue. |
Hi,
While I tried to make I faced this error
In file included from Release/obj/gen/vector_tile.pb.cc:5:0: Release/obj/gen/vector_tile.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is #error This file was generated by a newer version of protoc which is
I tried both protobuf 3.3.0 and protobuf 3.4.1 but there was not any change, where am I doing wrong?
The text was updated successfully, but these errors were encountered: