Docker build fails during make
Step 7/9 : RUN make
---> Running in 5a1a716bb109
g++ -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++11 -pthread -o src/pbf_blocks.o -c src/pbf_blocks.cpp -I/usr/local/include -isystem ./include -I./src -I/usr/local/include/lua5.1 -I/usr/include/lua5.1
In file included from /include/pbf_blocks.h:11:0,
from src/pbf_blocks.cpp:1:
/include/osmformat.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
^
/include/osmformat.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
/include/osmformat.pb.h:14:2: error: #error your headers.
#error your headers.
^
/include/osmformat.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
Makefile:13: recipe for target 'src/pbf_blocks.o' failed
make: *** [src/pbf_blocks.o] Error 1
The command '/bin/sh -c make' returned a non-zero code: 2
hello @skylarmt I am facing same challenge were you able to fix it? everything runs fine on my fedora 28 but that machine has less system resources so conversion of a small country pbf to mbtiles takes lot of time to complete. so I decided to do so on a server running docker but this is preventing me from continuing. I will most likely create a docker image based on fedora as I am not an ubuntu dude
20 years ago, one of my friend told me to take time to carefully read logs before complaining. I've kept his advice in mind... 😀
-> google/protobuf/arena.h: No such file or directory Did you try to add it in your system ?
Well I resolved this long time ago, I forgot how tho.