Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.

osm history importer error #29

Open
amerah777 opened this issue Nov 22, 2018 · 0 comments
Open

osm history importer error #29

amerah777 opened this issue Nov 22, 2018 · 0 comments

Comments

@amerah777
Copy link

could anyone help plz?
I have the road history database that I extracted using osmium. but I need to import the history database of London roads into PostgreSQL to do some analysis.
I am trying to install in my VM Ubuntu the history importer but I got the following errors, Can anyone help me to figure out what I have done wrong. thank you

master2@ubuntu:$ git clone https://github.com/MaZderMind/osm-history-renderer.git
Cloning into 'osm-history-renderer'...
remote: Enumerating objects: 4485, done.
remote: Total 4485 (delta 0), reused 0 (delta 0), pack-reused 4485
Receiving objects: 100% (4485/4485), 31.74 MiB | 12.16 MiB/s, done.
Resolving deltas: 100% (1691/1691), done.
Checking connectivity... done.
master2@ubuntu:
$ cd osm-history-renderer
master2@ubuntu:/osm-history-renderer$ cd importer
master2@ubuntu:
/osm-history-renderer/importer$ make
clang++ -g -O3 -Wall -Wextra -pedantic getconf LFS_CFLAGS -I/usr/include/postgresql/ -I/usr/include/libxml2/ -DOSMIUM_WITH_GEOS -o osm-history-importer importer.cpp -lexpat -lpq -lproj -lz -lprotobuf-lite -losmpbf -lpthread -lgeos
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:35:
In file included from /usr/include/osmium/input.hpp:29:
/usr/local/include/osmium/handler.hpp:75:75: error: expected ';' at end of declaration
list
void osm_object(const osmium::OSMObject& /osm_object/) const noexcept {
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:35:
/usr/include/osmium/input.hpp:108:51: error: unknown type name 'osm_object_type_t'
void call_after_and_before_on_handler(osm_object_type_t current_ob...
^
/usr/include/osmium/input.hpp:159:21: error: no member named 'OSM' in namespace
'Osmium'
Osmium::OSM::Meta& meta() {
~~~~~~~~^
/usr/include/osmium/input.hpp:180:21: error: no member named 'OSM' in namespace
'Osmium'
Osmium::OSM::Node& prepare_node() {
~~~~~~~~^
/usr/include/osmium/input.hpp:190:21: error: no member named 'OSM' in namespace
'Osmium'
Osmium::OSM::Way& prepare_way() {
~~~~~~~~^
/usr/include/osmium/input.hpp:200:21: error: no member named 'OSM' in namespace
'Osmium'
Osmium::OSM::Relation& prepare_relation() {
~~~~~~~~^
/usr/include/osmium/input.hpp:216:13: error: unknown type name 'osm_object_type_t'
osm_object_type_t m_last_object_type;
^
/usr/include/osmium/input.hpp:228:21: error: no member named 'OSM' in namespace
'Osmium'
Osmium::OSM::Meta m_meta;
~~~~~~~~^
/usr/include/osmium/input.hpp:232:32: error: no member named 'OSM' in namespace
'Osmium'
shared_ptrOsmium::OSM::Node m_node;
~~~~~~~~^
/usr/include/osmium/input.hpp:233:32: error: no member named 'OSM' in namespace
'Osmium'
shared_ptrOsmium::OSM::Way m_way;
~~~~~~~~^
/usr/include/osmium/input.hpp:234:32: error: no member named 'OSM' in namespace
'Osmium'
shared_ptrOsmium::OSM::Relation m_relation;
~~~~~~~~^
/usr/include/osmium/input.hpp:95:36: error: use of undeclared identifier 'UNKNOWN'
m_last_object_type(UNKNOWN),
^
/usr/include/osmium/input.hpp:182:30: error: expected the class name after '~' to name
a destructor
m_node->Node();
^
/usr/include/osmium/input.hpp:185:50: error: no member named 'OSM' in namespace
'Osmium'
m_node = make_sharedOsmium::OSM::Node();
~~~~~~~~^
/usr/include/osmium/input.hpp:192:29: error: expected the class name after '
' to name
a destructor
m_way->Way();
^
/usr/include/osmium/input.hpp:195:49: error: no member named 'OSM' in namespace
'Osmium'
m_way = make_sharedOsmium::OSM::Way(2000);
~~~~~~~~^
/usr/include/osmium/input.hpp:202:34: error: expected the class name after '
' to name
a destructor
m_relation->~Relation();
^
/usr/include/osmium/input.hpp:205:54: error: no member named 'OSM' in namespace
'Osmium'
m_relation = make_sharedOsmium::OSM::Relation();
~~~~~~~~^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
/usr/include/osmium/input/pbf.hpp:183:41: error: no member named 'Handler' in
namespace 'Osmium'; did you mean 'THandler'?
void (Osmium::Handler::Base::*)(const shared...
^~~~~~~~
/usr/include/osmium/input/pbf.hpp:49:25: note: 'THandler' declared here
template
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Makefile:39: recipe for target 'osm-history-importer' failed
make: *** [osm-history-importer] Error 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant