| 54 |
CDuce requires a development version >= 1.1.93. |
CDuce requires a development version >= 1.1.93. |
| 55 |
|
|
| 56 |
|
|
| 57 |
Less important: |
Efficiency issues: |
| 58 |
|
|
| 59 |
- OCamlnet: if you plan to load XML file with encodings other than |
- OCamlnet: if you plan to load XML file with encodings other than |
| 60 |
UTF-8, it is advised to used to CVS version of OCamlnet: |
UTF-8, it is advised to use the CVS version of OCamlnet: |
| 61 |
http://sourceforge.net/cvs/?group_id=19774 |
http://sourceforge.net/cvs/?group_id=19774 |
| 62 |
Indeed, the netconversion module in the lastest release (0.95) was |
Indeed, the netconversion module in the lastest release (0.95) was |
| 63 |
very slow, and it has been rewritten since then. |
very slow, and it has been rewritten since then. |
| 64 |
|
|
|
- PXP: you don't need to build all the encodings. |
|
|
./configure -lexlist iso88591 -with-wlex |
|
|
should be enough in general. |
|
|
|
|
|
|
|
| 65 |
------------------------------------------------------------------------------ |
------------------------------------------------------------------------------ |
| 66 |
Compilation |
Compilation |
| 67 |
------------------------------------------------------------------------------ |
------------------------------------------------------------------------------ |
| 69 |
You need a GNU Make (or equivalent) to use the Makefile from the |
You need a GNU Make (or equivalent) to use the Makefile from the |
| 70 |
distribution. It defines the following goals: |
distribution. It defines the following goals: |
| 71 |
|
|
| 72 |
- make cduce / cduce.opt |
- make cduce |
| 73 |
compiles the CDuce command line interpreter |
compiles the CDuce command line interpreter |
| 74 |
|
|
| 75 |
- make dtd2cduce |
- make dtd2cduce |
| 76 |
compiles the dtd2cduce tools (converts DTD to CDuce types) |
compiles the dtd2cduce tools (converts DTD to CDuce types) |
| 77 |
|
|
| 78 |
- make webiface / webiface.opt |
- make webiface |
| 79 |
compiles the CDuce web interface interpreter (to be used as a CGI script) |
compiles the CDuce web interface interpreter (to be used as a CGI script) |
| 80 |
|
|
| 81 |
- make local_website |
- make local_website |
| 82 |
compiles in the web/ directory the HTML files of CDuce website |
compiles in the web/www/ subdirectory the HTML files of CDuce website |
| 83 |
(including the tutorial) |
(including the tutorial) |
| 84 |
|
|
| 85 |
|
- make all |
| 86 |
|
equivalent to (make cduce; make dtd2cduce; make local_website) |
| 87 |
|
|
| 88 |
|
|
| 89 |
|
Makefile accepts the following options, which can take the values |
| 90 |
|
true or false. |
| 91 |
|
|
| 92 |
|
NATIVE=true : use the OCaml native code compiler (ocamlopt) to build CDuce |
| 93 |
|
NATIVE=false : use the OCaml bytecode compiler (ocamlc) |
| 94 |
|
default: true (the native code version is much faster) |
| 95 |
|
|
| 96 |
|
PXP_WLEX=true : use wlex for parsing UTF-8 XML files |
| 97 |
|
PXP_WLEX=false: use ocamllex for parsing UTF-8 XML files |
| 98 |
|
default: false (ocamllex is faster; wlex is more compact) |
| 99 |
|
|
| 100 |
|
E.g.: |
| 101 |
|
make cduce NATIVE=false |