Group Admins

  • Avatar Image

Setup Support

Public Group active 5 years, 5 months ago

This group gathers all the discussions for issues that may occur during the installation of the iTETRIS platform.

SUMO Installation : undefined reference to `xercesc_3_0::[...]’ (4 posts)

← Group Forum   Group Forum Directory
  • Avatar Image salim_allal said 11 years, 10 months ago:

    Hi enveryone,

    Reffering to the iTETRIS doc, I installed well libraries (xerces, geographic) and iCS. Even NS3.7. Going to install SUMO v0.14.0, I got this Errors :

    … [all goes OK right here]
    Making all in netgen
    make[3]: entrant dans le répertoire « /home/user/iTETRIS/sumo-0.14.0/src/netgen »
    g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/user/iTETRIS/sumo-0.14.0/./src -I/usr/include/fox-1.6 -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include/xercesc -O2 -DNDEBUG -MT netgen_main.o -MD -MP -MF .deps/netgen_main.Tpo -c -o netgen_main.o netgen_main.cpp
    mv -f .deps/netgen_main.Tpo .deps/netgen_main.Po
    g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/user/iTETRIS/sumo-0.14.0/./src -I/usr/include/fox-1.6 -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include/xercesc -O2 -DNDEBUG -MT NGEdge.o -MD -MP -MF .deps/NGEdge.Tpo -c -o NGEdge.o NGEdge.cpp
    mv -f .deps/NGEdge.Tpo .deps/NGEdge.Po
    g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/user/iTETRIS/sumo-0.14.0/./src -I/usr/include/fox-1.6 -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include/xercesc -O2 -DNDEBUG -MT NGFrame.o -MD -MP -MF .deps/NGFrame.Tpo -c -o NGFrame.o NGFrame.cpp
    mv -f .deps/NGFrame.Tpo .deps/NGFrame.Po
    g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/user/iTETRIS/sumo-0.14.0/./src -I/usr/include/fox-1.6 -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include/xercesc -O2 -DNDEBUG -MT NGNet.o -MD -MP -MF .deps/NGNet.Tpo -c -o NGNet.o NGNet.cpp
    mv -f .deps/NGNet.Tpo .deps/NGNet.Po
    g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/user/iTETRIS/sumo-0.14.0/./src -I/usr/include/fox-1.6 -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include/xercesc -O2 -DNDEBUG -MT NGNode.o -MD -MP -MF .deps/NGNode.Tpo -c -o NGNode.o NGNode.cpp
    mv -f .deps/NGNode.Tpo .deps/NGNode.Po
    g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/user/iTETRIS/sumo-0.14.0/./src -I/usr/include/fox-1.6 -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include/xercesc -O2 -DNDEBUG -MT NGRandomNetBuilder.o -MD -MP -MF .deps/NGRandomNetBuilder.Tpo -c -o NGRandomNetBuilder.o NGRandomNetBuilder.cpp
    mv -f .deps/NGRandomNetBuilder.Tpo .deps/NGRandomNetBuilder.Po
    /bin/bash ../../libtool –tag=CXX –mode=link g++ -O2 -DNDEBUG -L/usr/local/lib/lib -L/usr -o netgen netgen_main.o NGEdge.o NGFrame.o NGNet.o NGNode.o NGRandomNetBuilder.o ../netbuild/libnetbuild.a ../netwrite/libnetwrite.a ../utils/geom/libgeom.a ../utils/options/liboptions.a ../utils/common/libcommon.a ../utils/xml/libxml.a ../utils/importio/libimportio.a ../utils/iodevices/libiodevices.a ../foreign/tcpip/libtcpip.a -lxerces-c -lproj
    libtool: link: g++ -O2 -DNDEBUG -o netgen netgen_main.o NGEdge.o NGFrame.o NGNet.o NGNode.o NGRandomNetBuilder.o -L/usr/local/lib/lib -L/usr ../netbuild/libnetbuild.a ../netwrite/libnetwrite.a ../utils/geom/libgeom.a ../utils/options/liboptions.a ../utils/common/libcommon.a ../utils/xml/libxml.a ../utils/importio/libimportio.a ../utils/iodevices/libiodevices.a ../foreign/tcpip/libtcpip.a -lxerces-c /usr/lib/libproj.so
    netgen_main.o: In function `xercesc_3_0::XMLAttDefList::~XMLAttDefList()’:
    netgen_main.cpp:(.text._ZN11xercesc_3_013XMLAttDefListD0Ev[_ZN11xercesc_3_013XMLAttDefListD5Ev]+0xb): undefined reference to `xercesc_3_0::XMemory::operator delete(void*)’
    netgen_main.o:(.rodata._ZTVN11xercesc_3_013XMLAttDefListE[vtable for xercesc_3_0::XMLAttDefList]+0×10): undefined reference to `xercesc_3_0::XMLAttDefList::isSerializable() const’
    netgen_main.o:(.rodata._ZTVN11xercesc_3_013XMLAttDefListE[vtable for xercesc_3_0::XMLAttDefList]+0×14): undefined reference to `xercesc_3_0::XMLAttDefList::serialize(xercesc_3_0::XSerializeEngine&)’
    netgen_main.o:(.rodata._ZTVN11xercesc_3_013XMLAttDefListE[vtable for xercesc_3_0::XMLAttDefList]+0×18): undefined reference to `xercesc_3_0::XMLAttDefList::getProtoType() const’
    ../netwrite/libnetwrite.a(NWFrame.o): In function `xercesc_3_0::DefaultHandler::fatalError(xercesc_3_0::SAXParseException const&)’:
    NWFrame.cpp:(.text._ZN11xercesc_3_014DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::DefaultHandler::fatalError(xercesc_3_0::SAXParseException const&)]+0x2e): undefined reference to `xercesc_3_0::SAXParseException::SAXParseException(xercesc_3_0::SAXParseException const&)’
    NWFrame.cpp:(.text._ZN11xercesc_3_014DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::DefaultHandler::fatalError(xercesc_3_0::SAXParseException const&)]+0×36): undefined reference to `xercesc_3_0::SAXParseException::~SAXParseException()’
    NWFrame.cpp:(.text._ZN11xercesc_3_014DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::DefaultHandler::fatalError(xercesc_3_0::SAXParseException const&)]+0x3e): undefined reference to `typeinfo for xercesc_3_0::SAXParseException’
    ../utils/options/liboptions.a(OptionsIO.o): In function `OptionsIO::loadConfiguration()’:
    OptionsIO.cpp:(.text+0×189): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    OptionsIO.cpp:(.text+0x1a9): undefined reference to `xercesc_3_0::SAXParser::SAXParser(xercesc_3_0::XMLValidator*, xercesc_3_0::MemoryManager*, xercesc_3_0::XMLGrammarPool*)’
    OptionsIO.cpp:(.text+0x1b9): undefined reference to `xercesc_3_0::SAXParser::setValidationScheme(xercesc_3_0::SAXParser::ValSchemes)’
    OptionsIO.cpp:(.text+0x1c9): undefined reference to `xercesc_3_0::SAXParser::setDoNamespaces(bool)’
    OptionsIO.cpp:(.text+0x1d9): undefined reference to `xercesc_3_0::SAXParser::setDoSchema(bool)’
    OptionsIO.cpp:(.text+0x1fb): undefined reference to `xercesc_3_0::SAXParser::setDocumentHandler(xercesc_3_0::DocumentHandler*)’
    OptionsIO.cpp:(.text+0x20e): undefined reference to `xercesc_3_0::SAXParser::setErrorHandler(xercesc_3_0::ErrorHandler*)’
    OptionsIO.cpp:(.text+0×221): undefined reference to `xercesc_3_0::SAXParser::parse(char const*)’
    OptionsIO.cpp:(.text+0×296): undefined reference to `xercesc_3_0::SAXParser::~SAXParser()’
    OptionsIO.cpp:(.text+0×670): undefined reference to `xercesc_3_0::SAXParser::~SAXParser()’
    ../utils/options/liboptions.a(OptionsIO.o): In function `xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()’:
    OptionsIO.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD2Ev[_ZN11xercesc_3_013DTDEntityDeclD5Ev]+0xb): undefined reference to `xercesc_3_0::XMLEntityDecl::~XMLEntityDecl()’
    ../utils/options/liboptions.a(OptionsIO.o): In function `xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException const&)’:
    OptionsIO.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException const&)]+0x2e): undefined reference to `xercesc_3_0::SAXParseException::SAXParseException(xercesc_3_0::SAXParseException const&)’
    OptionsIO.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException const&)]+0×36): undefined reference to `xercesc_3_0::SAXParseException::~SAXParseException()’
    OptionsIO.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException const&)]+0x3e): undefined reference to `typeinfo for xercesc_3_0::SAXParseException’
    ../utils/options/liboptions.a(OptionsIO.o):(.gcc_except_table+0×140): undefined reference to `typeinfo for xercesc_3_0::XMLException’
    ../utils/options/liboptions.a(OptionsIO.o): In function `xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()’:
    OptionsIO.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD0Ev[_ZN11xercesc_3_013DTDEntityDeclD5Ev]+0×12): undefined reference to `xercesc_3_0::XMLEntityDecl::~XMLEntityDecl()’
    OptionsIO.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD0Ev[_ZN11xercesc_3_013DTDEntityDeclD5Ev]+0x1f): undefined reference to `xercesc_3_0::XMemory::operator delete(void*)’
    ../utils/options/liboptions.a(OptionsIO.o):(.rodata._ZTIN11xercesc_3_013DTDEntityDeclE[typeinfo for xercesc_3_0::DTDEntityDecl]+0×8): undefined reference to `typeinfo for xercesc_3_0::XMLEntityDecl’
    ../utils/options/liboptions.a(OptionsIO.o):(.rodata._ZTVN11xercesc_3_013DTDEntityDeclE[vtable for xercesc_3_0::DTDEntityDecl]+0×10): undefined reference to `xercesc_3_0::DTDEntityDecl::isSerializable() const’
    ../utils/options/liboptions.a(OptionsIO.o):(.rodata._ZTVN11xercesc_3_013DTDEntityDeclE[vtable for xercesc_3_0::DTDEntityDecl]+0×14): undefined reference to `xercesc_3_0::DTDEntityDecl::serialize(xercesc_3_0::XSerializeEngine&)’
    ../utils/options/liboptions.a(OptionsIO.o):(.rodata._ZTVN11xercesc_3_013DTDEntityDeclE[vtable for xercesc_3_0::DTDEntityDecl]+0×18): undefined reference to `xercesc_3_0::DTDEntityDecl::getProtoType() const’
    ../utils/options/liboptions.a(OptionsLoader.o): In function `OptionsLoader::error(xercesc_3_0::SAXParseException const&)’:
    OptionsLoader.cpp:(.text+0x101c): undefined reference to `xercesc_3_0::SAXParseException::getColumnNumber() const’
    OptionsLoader.cpp:(.text+0×1239): undefined reference to `xercesc_3_0::SAXParseException::getLineNumber() const’
    ../utils/options/liboptions.a(OptionsLoader.o): In function `OptionsLoader::fatalError(xercesc_3_0::SAXParseException const&)’:
    OptionsLoader.cpp:(.text+0x1dbc): undefined reference to `xercesc_3_0::SAXParseException::getColumnNumber() const’
    OptionsLoader.cpp:(.text+0x1fd9): undefined reference to `xercesc_3_0::SAXParseException::getLineNumber() const’
    ../utils/options/liboptions.a(OptionsLoader.o): In function `OptionsLoader::warning(xercesc_3_0::SAXParseException const&)’:
    OptionsLoader.cpp:(.text+0x2b5c): undefined reference to `xercesc_3_0::SAXParseException::getColumnNumber() const’
    OptionsLoader.cpp:(.text+0x2d79): undefined reference to `xercesc_3_0::SAXParseException::getLineNumber() const’
    ../utils/xml/libxml.a(XMLSubSys.o): In function `XMLSubSys::setFeature(xercesc_3_0::SAX2XMLReader&, std::basic_string<char, std::char_traits, std::allocator > const&, bool)’:
    XMLSubSys.cpp:(.text+0xa6): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    XMLSubSys.cpp:(.text+0xc7): undefined reference to `xercesc_3_0::XMLString::transcode(char const*, xercesc_3_0::MemoryManager*)’
    XMLSubSys.cpp:(.text+0xe0): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    XMLSubSys.cpp:(.text+0xf0): undefined reference to `xercesc_3_0::XMLString::release(unsigned short**, xercesc_3_0::MemoryManager*)’
    ../utils/xml/libxml.a(XMLSubSys.o): In function `XMLSubSys::getSAXReader()’:
    XMLSubSys.cpp:(.text+0×107): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    XMLSubSys.cpp:(.text+0×117): undefined reference to `xercesc_3_0::XMLReaderFactory::createXMLReader(xercesc_3_0::MemoryManager*, xercesc_3_0::XMLGrammarPool*)’
    XMLSubSys.cpp:(.text+0x29e): undefined reference to `xercesc_3_0::XMLUni::fgWFXMLScanner’
    XMLSubSys.cpp:(.text+0x2a6): undefined reference to `xercesc_3_0::XMLUni::fgXercesScannerName’
    ../utils/xml/libxml.a(XMLSubSys.o): In function `XMLSubSys::init(bool)’:
    XMLSubSys.cpp:(.text+0×883): undefined reference to `xercesc_3_0::XMLUni::fgXercescDefaultLocale’
    XMLSubSys.cpp:(.text+0×888): undefined reference to `xercesc_3_0::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*)’
    ../utils/xml/libxml.a(XMLSubSys.o): In function `XMLSubSys::close()’:
    XMLSubSys.cpp:(.text+0×42): undefined reference to `xercesc_3_0::XMLPlatformUtils::Terminate()’
    ../utils/xml/libxml.a(XMLSubSys.o):(.gcc_except_table+0×114): undefined reference to `typeinfo for xercesc_3_0::XMLException’
    ../utils/xml/libxml.a(GenericSAXHandler.o): In function `GenericSAXHandler::buildErrorMessage(xercesc_3_0::SAXParseException const&)’:
    GenericSAXHandler.cpp:(.text+0xf9b): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    GenericSAXHandler.cpp:(.text+0xfad): undefined reference to `xercesc_3_0::XMLString::transcode(unsigned short const*, xercesc_3_0::MemoryManager*)’
    GenericSAXHandler.cpp:(.text+0x109e): undefined reference to `xercesc_3_0::SAXParseException::getColumnNumber() const’
    GenericSAXHandler.cpp:(.text+0x10ae): undefined reference to `xercesc_3_0::SAXParseException::getLineNumber() const’
    GenericSAXHandler.cpp:(.text+0×1170): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    GenericSAXHandler.cpp:(.text+0×1183): undefined reference to `xercesc_3_0::XMLString::release(char**, xercesc_3_0::MemoryManager*)’
    ../utils/xml/libxml.a(SUMOSAXAttributesImpl_Xerces.o): In function `SUMOSAXAttributesImpl_Xerces::hasAttribute(std::basic_string<char, std::char_traits, std::allocator > const&) const’:
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×135): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×147): undefined reference to `xercesc_3_0::XMLString::transcode(char const*, xercesc_3_0::MemoryManager*)’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×165): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×175): undefined reference to `xercesc_3_0::XMLString::release(unsigned short**, xercesc_3_0::MemoryManager*)’
    ../utils/xml/libxml.a(SUMOSAXAttributesImpl_Xerces.o): In function `SUMOSAXAttributesImpl_Xerces::getStringSecure(std::basic_string<char, std::char_traits, std::allocator > const&, std::basic_string<char, std::char_traits, std::allocator > const&) const’:
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×218): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x22e): undefined reference to `xercesc_3_0::XMLString::transcode(char const*, xercesc_3_0::MemoryManager*)’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×339): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×349): undefined reference to `xercesc_3_0::XMLString::release(unsigned short**, xercesc_3_0::MemoryManager*)’
    ../utils/xml/libxml.a(SUMOSAXAttributesImpl_Xerces.o): In function `SUMOSAXAttributesImpl_Xerces::getStringSecure(int, std::basic_string<char, std::char_traits, std::allocator > const&) const’:
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x4a1): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x4bd): undefined reference to `xercesc_3_0::TranscodeToStr::TranscodeToStr(unsigned short const*, char const*, xercesc_3_0::MemoryManager*)’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x4e9): undefined reference to `xercesc_3_0::TranscodeToStr::~TranscodeToStr()’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x5fd): undefined reference to `xercesc_3_0::TranscodeToStr::~TranscodeToStr()’
    ../utils/xml/libxml.a(SUMOSAXAttributesImpl_Xerces.o): In function `SUMOSAXAttributesImpl_Xerces::getString(int) const’:
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x6a1): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x6bd): undefined reference to `xercesc_3_0::TranscodeToStr::TranscodeToStr(unsigned short const*, char const*, xercesc_3_0::MemoryManager*)’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0×765): undefined reference to `xercesc_3_0::TranscodeToStr::~TranscodeToStr()’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x7cc): undefined reference to `xercesc_3_0::TranscodeToStr::~TranscodeToStr()’
    ../utils/xml/libxml.a(SUMOSAXAttributesImpl_Xerces.o): In function `SUMOSAXAttributesImpl_Xerces::getFloat(std::basic_string<char, std::char_traits, std::allocator > const&) const’:
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0xe84): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0xe96): undefined reference to `xercesc_3_0::XMLString::transcode(char const*, xercesc_3_0::MemoryManager*)’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0xec2): undefined reference to `xercesc_3_0::XMLPlatformUtils::fgMemoryManager’
    SUMOSAXAttributesImpl_Xerces.cpp:(.text+0xed6): undefined reference to `xercesc_3_0::XMLString::release(unsigned short**, xercesc_3_0::MemoryManager*)’
    collect2: ld returned 1 exit status
    make[3]: *** [netgen] Erreur 1
    make[3]: quittant le répertoire « /home/user/iTETRIS/sumo-0.14.0/src/netgen »
    make[2]: *** [all-recursive] Erreur 1
    make[2]: quittant le répertoire « /home/user/iTETRIS/sumo-0.14.0/src »
    make[1]: *** [all] Erreur 2
    make[1]: quittant le répertoire « /home/user/iTETRIS/sumo-0.14.0/src »
    make: *** [all-recursive] Erreur 1

    Thanks in advance.

  • Avatar Image Raik-Aissaoui said 11 years, 9 months ago:

    add LIBS=’-L/usr/local/lib -lxerces-c’ at the end of ./configure option
    it will resolve the problem

    sudo ./configure –with-fox-libraries=/usr/lib –with-fox-
    includes=/usr/include/fox-1.6 –with-gdal-libraries=/usr/lib –with-
    gdal-includes=/usr/include/gdal –with-proj-libraries=/usr –with-
    geographic=/usr/local/lib –-with-geographic-
    includes=/usr/local/include/GeographicLib –with-xerces=/usr/local/lib
    -–with-xerces-includes=/usr/local/include/xercesc LIBS=’-L/usr/local/lib -lxerces-c’

  • Avatar Image xwei said 11 years, 9 months ago:

    For me,it still doesn’t work,and I think ‘–with-xerces=/usr/local/lib’ is wrong!It should be ‘–with-xerces-libraries’,and it works.
    sudo ./configure –with-fox-libraries=/usr/lib –with-fox-
    includes=/usr/include/fox-1.6 –with-gdal-libraries=/usr/lib –with-
    gdal-includes=/usr/include/gdal –with-proj-libraries=/usr –with-
    geographic=/usr/local/lib –-with-geographic-
    includes=/usr/local/include/GeographicLib –with-xerces-libraries=/usr/local/lib -–with-xerces-includes=/usr/local/include/xercesc LIBS=’-L/usr/local/lib -lxerces-c’

  • Avatar Image Ronan-Doolan said 10 years, 8 months ago:

    You need to uninstall xercesc in the synaptic package manager then download xercesc from source

    http://archive.apache.org/dist/xml/xerces-c/Xerces-C_3_0_1/sources/

    configure make and install

    then download gdal1.6.0 from source

    http://trac.osgeo.org/gdal/wiki/DownloadSource

    configure make and install then copy gdal.so s from local/lib to lib

    This worked for me on ubuntu 10.4