README 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. Expat, Release 2.2.0, stripped and modified for inclusion into Slic3r.
  2. Only the library sources needed for static linking were left.
  3. The original README follows:
  4. ---------------------------------------------------------------------
  5. Expat, Release 2.2.0
  6. This is Expat, a C library for parsing XML, written by James Clark.
  7. Expat is a stream-oriented XML parser. This means that you register
  8. handlers with the parser before starting the parse. These handlers
  9. are called when the parser discovers the associated structures in the
  10. document being parsed. A start tag is an example of the kind of
  11. structures for which you may register handlers.
  12. Windows users should use the expat_win32bin package, which includes
  13. both precompiled libraries and executables, and source code for
  14. developers.
  15. Expat is free software. You may copy, distribute, and modify it under
  16. the terms of the License contained in the file COPYING distributed
  17. with this package. This license is the same as the MIT/X Consortium
  18. license.
  19. Versions of Expat that have an odd minor version (the middle number in
  20. the release above), are development releases and should be considered
  21. as beta software. Releases with even minor version numbers are
  22. intended to be production grade software.
  23. If you are building Expat from a check-out from the CVS repository,
  24. you need to run a script that generates the configure script using the
  25. GNU autoconf and libtool tools. To do this, you need to have
  26. autoconf 2.58 or newer. Run the script like this:
  27. ./buildconf.sh
  28. Once this has been done, follow the same instructions as for building
  29. from a source distribution.
  30. To build Expat from a source distribution, you first run the
  31. configuration shell script in the top level distribution directory:
  32. ./configure
  33. There are many options which you may provide to configure (which you
  34. can discover by running configure with the --help option). But the
  35. one of most interest is the one that sets the installation directory.
  36. By default, the configure script will set things up to install
  37. libexpat into /usr/local/lib, expat.h into /usr/local/include, and
  38. xmlwf into /usr/local/bin. If, for example, you'd prefer to install
  39. into /home/me/mystuff/lib, /home/me/mystuff/include, and
  40. /home/me/mystuff/bin, you can tell configure about that with:
  41. ./configure --prefix=/home/me/mystuff
  42. Another interesting option is to enable 64-bit integer support for
  43. line and column numbers and the over-all byte index:
  44. ./configure CPPFLAGS=-DXML_LARGE_SIZE
  45. However, such a modification would be a breaking change to the ABI
  46. and is therefore not recommended for general use - e.g. as part of
  47. a Linux distribution - but rather for builds with special requirements.
  48. After running the configure script, the "make" command will build
  49. things and "make install" will install things into their proper
  50. location. Have a look at the "Makefile" to learn about additional
  51. "make" options. Note that you need to have write permission into
  52. the directories into which things will be installed.
  53. If you are interested in building Expat to provide document
  54. information in UTF-16 encoding rather than the default UTF-8, follow
  55. these instructions (after having run "make distclean"):
  56. 1. For UTF-16 output as unsigned short (and version/error
  57. strings as char), run:
  58. ./configure CPPFLAGS=-DXML_UNICODE
  59. For UTF-16 output as wchar_t (incl. version/error strings),
  60. run:
  61. ./configure CFLAGS="-g -O2 -fshort-wchar" \
  62. CPPFLAGS=-DXML_UNICODE_WCHAR_T
  63. 2. Edit the MakeFile, changing:
  64. LIBRARY = libexpat.la
  65. to:
  66. LIBRARY = libexpatw.la
  67. (Note the additional "w" in the library name.)
  68. 3. Run "make buildlib" (which builds the library only).
  69. Or, to save step 2, run "make buildlib LIBRARY=libexpatw.la".
  70. 4. Run "make installlib" (which installs the library only).
  71. Or, if step 2 was omitted, run "make installlib LIBRARY=libexpatw.la".
  72. Using DESTDIR or INSTALL_ROOT is enabled, with INSTALL_ROOT being the default
  73. value for DESTDIR, and the rest of the make file using only DESTDIR.
  74. It works as follows:
  75. $ make install DESTDIR=/path/to/image
  76. overrides the in-makefile set DESTDIR, while both
  77. $ INSTALL_ROOT=/path/to/image make install
  78. $ make install INSTALL_ROOT=/path/to/image
  79. use DESTDIR=$(INSTALL_ROOT), even if DESTDIR eventually is defined in the
  80. environment, because variable-setting priority is
  81. 1) commandline
  82. 2) in-makefile
  83. 3) environment
  84. Note: This only applies to the Expat library itself, building UTF-16 versions
  85. of xmlwf and the tests is currently not supported.
  86. Note for Solaris users: The "ar" command is usually located in
  87. "/usr/ccs/bin", which is not in the default PATH. You will need to
  88. add this to your path for the "make" command, and probably also switch
  89. to GNU make (the "make" found in /usr/ccs/bin does not seem to work
  90. properly -- apparently it does not understand .PHONY directives). If
  91. you're using ksh or bash, use this command to build:
  92. PATH=/usr/ccs/bin:$PATH make
  93. When using Expat with a project using autoconf for configuration, you
  94. can use the probing macro in conftools/expat.m4 to determine how to
  95. include Expat. See the comments at the top of that file for more
  96. information.
  97. A reference manual is available in the file doc/reference.html in this
  98. distribution.
  99. The homepage for this project is http://www.libexpat.org/. There
  100. are links there to connect you to the bug reports page. If you need
  101. to report a bug when you don't have access to a browser, you may also
  102. send a bug report by email to expat-bugs@mail.libexpat.org.
  103. Discussion related to the direction of future expat development takes
  104. place on expat-discuss@mail.libexpat.org. Archives of this list and
  105. other Expat-related lists may be found at:
  106. http://mail.libexpat.org/mailman/listinfo/