TWiki home TWiki > Simulation > IPv6Suite > Main > InstallingXerces-C TWiki webs:
Main | TWiki | Know | Sandbox
Simulation . { Changes | Index | Search | Go }

Installing Xerces-C

These instructions assume version 1.7 of xerces-c library. Prior versions (back to 1.52 inclusive) did not require some of the steps like editing util/Makefile and creating symbolic links to the include directories.

Trash.Main Steps

  1. Download the software from http://xml.apache.org/xerces-c and click on Download in the left hand column. Choose the "Stable" folder and download the source package in tar.gz format (IPv6Suite currently works with the stable version xerces-c-src1_7_0.tar.gz and does not compile with any newer versions as DOM interface used has been deprecated by the Xerces devolopment team).
  2. Choose a directory to extract the xerces-c sources. Say ~/lib.
  3. Extract the sources into ~/lib with tar zxvf xerces-c-src1_7_0.tar.gz
  4. cd ~/lib/xerces-c-src1_7_0.
  5. pwd should show the full path to the current directory.
  6. Add XERCESCROOT environment variable permanently to your start up script.
  7. source ~/.bashrc or source ~/.cshrc
  8. cd into the src/xercesc subdirectory of the $XERCESCROOT directory
  9. Edit the Makefile.incl to build a version of Xerces-C lib that is compatible with OMNeT++. To do this, find the section marked LINUX specific options, and
    1. Remove -D_REENTRANT.
    2. OPTIONAL Add -UNDEBUG to build with assertion checking for debug builds
    3. UNECESSARY for 1.7 Add the -D__USE_UNIX98 to prevent compiler/linker errors.
  10. sh ./runConfigure -r none -plinux -cgcc -xg++ -minmem -nfileonly -tnative We need to fix a problem before running the make: Edit util/Makefile to not build the NetAccessors by removing netaccessors from the all target on line 482. Also prepend a hash symbol (#) at line 488 which should look like
    ${MAKE} -C NetAccessors/$(NETACCESSORMODULE) $@
    or better yet delete it.
  11. make
  12. cd $XERCESCROOT/lib
  13. Check that the shared library libxerces-c1_7_0.so exists.
  14. ln -s libxerces-c1_7_0.so libxerces-c.so
  15. cd $XERCESCROOT/include
  16. ln -s xercesc/* .

Xerces-C v1.7 > Build Changes

Topic InstallingXerces-C . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.3 - 11 May 2005 - 12:01 GMT - AhmetSekercioglu
Parents: WebHome > IPv6Suite > Main
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.