blob: 57b6f25bb28ade16a7677344c424f66c86186fe5 [file] [log] [blame]
Daniel Veillarde62d36c2001-05-15 08:53:16 +00001Extracted from the documentation:
2 http://xmlsoft.org/FAQ.html#Compilatio
3
4Compilation
5
6 1.What is the process to compile libxml ?
7
8 As most UNIX libraries libxml follows the "standard":
9
10 gunzip -c xxx.tar.gz | tar xvf -
11
12 cd libxml-xxxx
13
14 ./configure --help
15
16 to see the options, then the compilation/installation proper
17
18 ./configure [possible options]
19
20 make
21
22 make install
23
24 At that point you may have to rerun ldconfig or similar utility to
25 update your list of installed shared libs.
26
27 2.What other libraries are needed to compile/install libxml ?
28
29 Libxml does not requires any other library, the normal C ANSI API
30 should be sufficient (please report any violation to this rule you
31 may find).
32
33 However if found at configuration time libxml will detect and use
34 the following libs:
35
36 libz: a highly portable and available widely compression library
37 http://www.info-zip.org/pub/infozip/zlib/
38 iconv: a powerful character encoding conversion library. It's
39 included by default on recent glibc libraries, so it doesn't
40 need to be installed specifically on linux. It seems it's
41 now part of the official UNIX specification. Here is one
42 implementation of the library which source can be found here.
43 http://clisp.cons.org/~haible/packages-libiconv.html
44 ftp://ftp.ilog.fr/pub/Users/haible/gnu/
45
46 3.libxml does not compile with HP-UX's optional ANSI-C compiler
47
48 this is due to macro limitations. Try to add " -Wp,-H16800 -Ae"
49 to the CFLAGS
50
51 you can also install and use gcc instead or use a precompiled version
52 of libxml, both available from the HP-UX Porting and Archive Centre
53
54 4.make check fails on some platforms
55
56 Sometime the regression tests results don't completely match the
57 value produced by the parser, and the makefile uses diff to print
58 the delta. On some platforms the diff return breaks the compilation
59 process, if the diff is small this is probably not a serious problem
60
61Daniel
62veillard@redhat.com
63
64$Id$