/././bin/MsgCreator -L/mnt/buildRoot/WorkShop/SCAP/XalanXerces/Linux32/xerces-c-src_2_8_0/lib -lxerces-c
Just go to the above mentioned directory and issue this (-lxerces-c command line param goes to the end) L/mnt/buildRoot/WorkShop/SCAP/XalanXerces/Linux32/xerces-c-src_2_8_0/lib -lxerces-c. G++ -DLINUX -fPIC -DXALAN_INMEM_MSG_LOADER \ The solution is to navigate the following directoryĪnd move the -lxerces-c command line param to the end, or just append another copy. /././obj/InMemHandler.o: In functionInMemHandler::startElement(unsigned short const, unsigned short const, unsigned short const, xercesc_2_7::Attributes const&)':For some reason there is a problem linking with xerces library InMemHandler.cpp:(.text+0x502): undefined reference to xercesc_2_7::XMLString::compareString(unsigned short const*, unsigned short const*)'. /././obj/InMemHandler.o: In function InMemHandler::endElement(unsigned short const, unsigned short const, unsigned short const )': L/home/training/Desktop/xerces-c-src_2_7_0/lib -lxerces-c.
Set the path of the folder which contains the Xalan code to another variableĮxport XERCESCROOT=/AC/WorkShop/SCAP/XalanXerces/Linux32/xml-xalan/cĬannot create MsgCreator binaries - snippet of error below.Set the variable to the path where the Xerces binaries reside.
Go to the directory /usr/local/lib and /usr/local/include to see whether there are files related to xerces.
runConfigure -p linux -c gcc -x g++ -z -m64 -l -m64 -P /usr/local/ (for 64 bit Linux)
runConfigure -p linux -c gcc -x g++ -P /usr/local (for 32 bit Linux)
You can download the source code of Xerces and Xalan from the following sites Xalan-C++ implements the XSL Transformations (XSLT) Version 1.0 and the XML Path Language (XPath) Version 1.0 But we better compile the source code for your platform. Xerces-C++ 2.8.0 comes with a wide range of precompiled libraries (total 23) for various CPU architectures, operation systems, and C++ compilers. 3.1 is available and the steps should be the same) The version of Xerces we needed was 2.8 (Xerces 2.8 - doesn’t add any new features compared to 2.7.0 but is rather focused on the bug fixes, optimizations, and build system improvements. We hope this could be useful for souls doing the same in the future. We did lots of painstaking research, patched the code manually and finally managed to build these libraries in multiple platforms. This blog will list the steps needed to build these libraries for whatever use you have. We spent hell a lot of time compiling C++ based source code of Xerces, Xalan XML libraries on Linux32, Linu圆4, OSX (圆4), Windows x86, Windows 圆4 platforms. Compiling Xalan, Xerces - C++ Source on multiple platforms