-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to compile #3
Comments
+1 |
Well I tried to compile by changing files in pugixml directory with the most current one. It compiles and build library. However running the tests I get several errors as below. Not sure if it is normal or something is missing in my part. ./demo ~/liblanelet.new/installs/bin$ ./lanelet_tests [----------] Global test environment tear-down 8 FAILED TESTS |
you are right. demo needs to specify the map file. In this case, the map file is sample.osm. |
I tried to run demo and lanelet_tests and I met the same failures. Have you ever figured out if anything is missing or it's normal? |
…ld version there is only one version of viennacl, it didn't update since 2013. now it keeps telling the following error, and it relates to phbender/liblanelet#3 /usr/include/c++/9/bits/stringfwd.h:79:11: error: reference to 'basic_string' is ambiguous 79 | typedef basic_string<char> string; Signed-off-by: Ma XinJian <[email protected]> Signed-off-by: Philip Li <[email protected]>
_在SConstruct的67行,或者随便哪一行添加一句 |
I am trying to compile liblanelet on a ubuntu machine. I have included OS,compiler and error details in 1),2),3) section. I think I am making some small mistake. Your guidance will be appreciated.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
2)compiler details:
/gmu/map/liblanelet-master$ g++ --version16.04.4) 5.4.0 20160609g++ (Ubuntu 5.4.0-6ubuntu1
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3)error that I am getting:
scons install
scons: Reading SConscript files ...
Will not create pkg-configs
scons: done reading SConscript files.
scons: Building targets ...
/usr/bin/g++ -o libLanelet/build/llet_xml.os -c -O3 -std=c++0x -g -fPIC -DDEBUG -DTRACE_LEVEL=critical -Iinstalls/include libLanelet/llet_xml.cpp
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:97:10: error: reference to 'basic_string' is ambiguous
typedef std::basic_string<PUGIXML_CHAR, std::char_traits<PUGIXML_CHAR>, std::
typedef std::basic_string<PUGIXML_CHAR, std::char_traits<PUGIXML_CHAR>, std::allocator<PUGIXML_CHAR> > string_t;
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
template <class _Elem, class _Traits, class _Ax> class basic_string;
^
In file included from /usr/include/c++/5/string:39:0,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/boost/math/tools/config.hpp:17,
from /usr/include/boost/math/tools/promotion.hpp:26,
from /usr/include/boost/math/special_functions/detail/round_fwd.hpp:12,
from /usr/include/boost/math/special_functions/math_fwd.hpp:26,
from /usr/include/boost/math/special_functions/airy.hpp:11,
from /usr/include/boost/math/special_functions.hpp:15,
from libLanelet/lanelet_point.hpp:22,
from libLanelet/LaneletBase.hpp:25,
from libLanelet/Lanelet.hpp:22,
from libLanelet/llet_xml.hpp:23,
from libLanelet/llet_xml.cpp:20:
/usr/include/c++/5/bits/stringfwd.h:71:11: note: template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
class basic_string;
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:505:3: error: 'string_t' does not name a type
string_t path(char_t delimiter = '/') const;
^
installs/include/MRT/libpugixml/pugixml.hpp:918:3: error: 'string_t' does not name a type
string_t evaluate_string(const xpath_node& n) const;
^
installs/include/MRT/libpugixml/pugixml.hpp:1066:2: error: reference to 'basic_string' is ambiguous
std::basic_string<char, std::char_traits, std::allocator > PUGIXML_FUNCTION as_utf8(const wchar_t* str);
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
template <class _Elem, class _Traits, class _Ax> class basic_string;
^
In file included from /usr/include/c++/5/string:39:0,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/boost/math/tools/config.hpp:17,
from /usr/include/boost/math/tools/promotion.hpp:26,
from /usr/include/boost/math/special_functions/detail/round_fwd.hpp:12,
from /usr/include/boost/math/special_functions/math_fwd.hpp:26,
from /usr/include/boost/math/special_functions/airy.hpp:11,
from /usr/include/boost/math/special_functions.hpp:15,
from libLanelet/lanelet_point.hpp:22,
from libLanelet/LaneletBase.hpp:25,
from libLanelet/Lanelet.hpp:22,
from libLanelet/llet_xml.hpp:23,
from libLanelet/llet_xml.cpp:20:
/usr/include/c++/5/bits/stringfwd.h:71:11: note: template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
class basic_string;
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:1067:2: error: reference to 'basic_string' is ambiguous
std::basic_string<char, std::char_traits, std::allocator > PUGIXML_FUNCTION as_utf8(const std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >& str);
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
template <class _Elem, class _Traits, class _Ax> class basic_string;
^
In file included from /usr/include/c++/5/string:39:0,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/boost/math/tools/config.hpp:17,
from /usr/include/boost/math/tools/promotion.hpp:26,
from /usr/include/boost/math/special_functions/detail/round_fwd.hpp:12,
from /usr/include/boost/math/special_functions/math_fwd.hpp:26,
from /usr/include/boost/math/special_functions/airy.hpp:11,
from /usr/include/boost/math/special_functions.hpp:15,
from libLanelet/lanelet_point.hpp:22,
from libLanelet/LaneletBase.hpp:25,
from libLanelet/Lanelet.hpp:22,
from libLanelet/llet_xml.hpp:23,
from libLanelet/llet_xml.cpp:20:
/usr/include/c++/5/bits/stringfwd.h:71:11: note: template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
class basic_string;
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:1070:2: error: reference to 'basic_string' is ambiguous
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION as_wide(const char* str);
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
template <class _Elem, class _Traits, class _Ax> class basic_string;
^
In file included from /usr/include/c++/5/string:39:0,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/boost/math/tools/config.hpp:17,
from /usr/include/boost/math/tools/promotion.hpp:26,
from /usr/include/boost/math/special_functions/detail/round_fwd.hpp:12,
from /usr/include/boost/math/special_functions/math_fwd.hpp:26,
from /usr/include/boost/math/special_functions/airy.hpp:11,
from /usr/include/boost/math/special_functions.hpp:15,
from libLanelet/lanelet_point.hpp:22,
from libLanelet/LaneletBase.hpp:25,
from libLanelet/Lanelet.hpp:22,
from libLanelet/llet_xml.hpp:23,
from libLanelet/llet_xml.cpp:20:
/usr/include/c++/5/bits/stringfwd.h:71:11: note: template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
class basic_string;
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:1071:2: error: reference to 'basic_string' is ambiguous
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION as_wide(const std::basic_string<char, std::char_traits, std::allocator >& str);
^
In file included from libLanelet/llet_xml.cpp:24:0:
installs/include/MRT/libpugixml/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
template <class _Elem, class _Traits, class _Ax> class basic_string;
^
In file included from /usr/include/c++/5/string:39:0,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/boost/math/tools/config.hpp:17,
from /usr/include/boost/math/tools/promotion.hpp:26,
from /usr/include/boost/math/special_functions/detail/round_fwd.hpp:12,
from /usr/include/boost/math/special_functions/math_fwd.hpp:26,
from /usr/include/boost/math/special_functions/airy.hpp:11,
from /usr/include/boost/math/special_functions.hpp:15,
from libLanelet/lanelet_point.hpp:22,
from libLanelet/LaneletBase.hpp:25,
from libLanelet/Lanelet.hpp:22,
from libLanelet/llet_xml.hpp:23,
from libLanelet/llet_xml.cpp:20:
/usr/include/c++/5/bits/stringfwd.h:71:11: note: template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
class basic_string;
^
libLanelet/llet_xml.cpp: In member function 'virtual bool {anonymous}::TagWalker::for_each(pugi::xml_node&)':
libLanelet/llet_xml.cpp:49:28: error: 'string_t' is not a member of 'pugi'
if( node.name() == pugi::string_t("tag") )
^
libLanelet/llet_xml.cpp: In member function 'virtual bool {anonymous}::WayTreeWalker::for_each(pugi::xml_node&)':
libLanelet/llet_xml.cpp:72:28: error: 'string_t' is not a member of 'pugi'
if( node.name() == pugi::string_t("tag") )
^
libLanelet/llet_xml.cpp:79:34: error: 'string_t' is not a member of 'pugi'
else if( node.name() == pugi::string_t("nd") )
^
scons: *** [libLanelet/build/llet_xml.os] Error 1
scons: building terminated because of errors.
<PUGIXML_CHAR> > string_t;
The text was updated successfully, but these errors were encountered: