0

I've been trying to install SUMO and only recently got the ./configure to make all of the files; but, when I try to 'make' it gives the [all-recursive error 1:

../utils/xml/libxml.a(SUMOSAXAttributesImpl_Xerces.o): In function `SUMOSAXAttributesImpl_Xerces::getFloat(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
SUMOSAXAttributesImpl_Xerces.cpp:(.text+0x9ff): undefined reference to `xercesc_2_7::XMLString::transcode(char const*)'
collect2: ld returned 1 exit status
make[2]: *** [netgen] Error 1
make[2]: Leaving directory `/home/rezekiekawaty/Downloads/sumo-0.12.3/src/netgen'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/rezekiekawaty/Downloads/sumo-0.12.3/src'
make: *** [install-recursive] Error 1

Do you have any idea to troubleshoot this problem?

Rinzwind
  • 309,379

1 Answers1

1

It's actually failing to link to the Xerces library. You need to tell it what to look for with the -l argument and where to look with -L.

g++ -g -Wall -pedantic -L/usr/lib -o xercesTest xercesTest.cpp -lxerces-c

Obviously you also need the library present:

sudo apt-get install libxerces-c-dev
Oli
  • 299,380