fzi-forschungszentrum-informatik / liblanelet

Library for handling lanelet maps in C++
BSD 3-Clause "New" or "Revised" License
37 stars 14 forks source link

build error #2

Open brand666 opened 5 years ago

brand666 commented 5 years ago

error as follow :+1: /home/lx/lanelet/ws/src/liblanelet/src/liblanelet/llet_xml.cpp: In member function ‘void {anonymous}::XMLParser::parse_nodes()’: /home/lx/lanelet/ws/src/liblanelet/src/liblanelet/llet_xml.cpp:403:50: error: ‘class pugi::xml_attribute’ has no member named ‘as_llong’ int64_t id = node.node().attribute("id").as_llong(); ^ /home/lx/lanelet/ws/src/liblanelet/src/liblanelet/llet_xml.cpp: In member function ‘void {anonymous}::XMLParser::parse_linestrips()’: /home/lx/lanelet/ws/src/liblanelet/src/liblanelet/llet_xml.cpp:419:53: error: ‘class pugi::xml_attribute’ has no member named ‘as_llong’ linestrips_by_id[way.node().attribute("id").as_llong()] = new_linestrip; and the lib versions are as follows: libtinyxml-dev is already the newest version (2.6.2-3). libpugixml-dev is already the newest version (1.7-2).

brand666 commented 5 years ago

I figure out this problem by add add_definitions(-D PUGIXML_HAS_LONG_LONG) in https://github.com/fzi-forschungszentrum-informatik/liblanelet/blob/252e436ae9f705f8004d86b504be6a5f0c8bcc19/src/liblanelet/CMakeLists.txt#L46