omniscale / imposm-parser

Deprecated: Python parser for OpenStreetMap data
http://imposm.org/docs/imposm.parser/latest/
Apache License 2.0
133 stars 57 forks source link

Problems with gcc version #21

Open rjpereira opened 7 years ago

rjpereira commented 7 years ago

Wonder if someone can help. I believe there are some incompatibilities with latest version of gcc to compile this library but didn't find much information ...

Using gcc-c++ version 4.8.3

When doing the pip install a chain of errors fills the screen but the very beginning seems to be

writing manifest file 'imposm.parser.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found ... gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/anaconda/include/python3.5m -c imposm/parser/pbf/osm.pb.cc -o build/temp.linux-x86_64-3.5/imposm/parser/pbf/osm.pb.o cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default] ... imposm/parser/pbf/osm.pb.cc:586:24: error: expected '<' before '<:' token if (static_cast<::google::protobuf::uint8>(tag) == ^ imposm/parser/pbf/osm.pb.cc:586:24: error: expected type-specifier before '<:' token imposm/parser/pbf/osm.pb.cc:586:24: error: expected '>' before '<:' token :

any ideas where to look for the problem ? thanks

unvaiso commented 7 years ago

Try adding CC=gcc-5 CXX=g++-5 before pip install imposm.parser