Added package dependecies
[SXSI/xpathcomp.git] / HACKING
1 Compilation instruction:
2
3 compile the TextCollection :
4
5 cd XMLTree/TextCollection
6 make
7
8 compile libcds :
9
10 cd XMLTree/libcds
11 make
12
13 compile XMLTree :
14 cd XMLTree
15 make
16
17 compile xpathcomp/
18 make
19
20
21 Building xpathcomp requires:
22
23 libxml2.6++-dev 
24 ocaml-findlib
25 ocaml-ulex
26 ocaml-nox
27 camlp4
28
29 and their dependencies
30
31
32 you can compile with make DEBUG=true to get more statistics the overall programm is slower
33 but you get precise timing for each individual function calls to the XMLTree interface.
34
35
36 Usage :
37 ./main 'file.xml' 'query' [output]
38
39 file.xml is the input file. There are some in the tests subdirectory. At the moment you can mainly test
40 with base.xml and tiny.xml. Any file bigger than this will take too much time to load.
41
42
43 output is optional. If specified, it is the name of a file to which the result of the query is serialized.
44 If output is not given, the the result of the query is kept as a set of identifier and no access to
45 the string collection is made.
46
47
48 There are a few flags:
49
50 -f sample factor [default=64]
51 -i index empty texts [default=false]
52 -d Disable text collection[default=false]
53 -help  Display this list of options
54 --help  Display this list of options
55
56
57 for instance:
58 ./main -f 29 -d tests/tiny.xml '//para'