MaZderMind / osm-history-renderer

an experimental, work-in-progress history renderer (including supplementary tools like an importer and an animation-tool)
BSD 2-Clause "Simplified" License
79 stars 23 forks source link

osm history importer error #29

Open amerah777 opened 5 years ago

amerah777 commented 5 years ago

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_ptr<Osmium::OSM::Node>     m_node;
                       ~~~~~~~~^
/usr/include/osmium/input.hpp:233:32: error: no member named 'OSM' in namespace
      'Osmium'
            shared_ptr<Osmium::OSM::Way>      m_way;
                       ~~~~~~~~^
/usr/include/osmium/input.hpp:234:32: error: no member named 'OSM' in namespace
      'Osmium'
            shared_ptr<Osmium::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_shared<Osmium::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_shared<Osmium::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_shared<Osmium::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 <class THandler>
                        ^
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