blob: 0ac44f0f683e65b707cba492e8d69a5a842c99c9 [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
Daniel Veillard6d473ed2001-06-17 10:32:52 +000027 At this point you can check that the library is properly functionning
28 by running
29
30 make tests
31
Daniel Veillarde62d36c2001-05-15 08:53:16 +000032 2.What other libraries are needed to compile/install libxml ?
33
34 Libxml does not requires any other library, the normal C ANSI API
35 should be sufficient (please report any violation to this rule you
36 may find).
37
38 However if found at configuration time libxml will detect and use
39 the following libs:
40
41 libz: a highly portable and available widely compression library
42 http://www.info-zip.org/pub/infozip/zlib/
43 iconv: a powerful character encoding conversion library. It's
44 included by default on recent glibc libraries, so it doesn't
45 need to be installed specifically on linux. It seems it's
46 now part of the official UNIX specification. Here is one
47 implementation of the library which source can be found here.
48 http://clisp.cons.org/~haible/packages-libiconv.html
49 ftp://ftp.ilog.fr/pub/Users/haible/gnu/
50
51 3.libxml does not compile with HP-UX's optional ANSI-C compiler
52
53 this is due to macro limitations. Try to add " -Wp,-H16800 -Ae"
54 to the CFLAGS
55
56 you can also install and use gcc instead or use a precompiled version
57 of libxml, both available from the HP-UX Porting and Archive Centre
58
Daniel Veillard6d473ed2001-06-17 10:32:52 +000059 4.make tests fails on some platforms
Daniel Veillarde62d36c2001-05-15 08:53:16 +000060
61 Sometime the regression tests results don't completely match the
62 value produced by the parser, and the makefile uses diff to print
63 the delta. On some platforms the diff return breaks the compilation
64 process, if the diff is small this is probably not a serious problem
65
66Daniel
67veillard@redhat.com
68
69$Id$