Discontinued: OCamlOScope 1 is discontinued. Please check https://github.com/camlspotter/ocamloscope.2
- OCaml 4.01.0 (Code is highly dependent on the specific compiler version. Do not try compiling with other versions.)
- OPAM, findlib and OMake to build.
- spotlib.2.4.1
- meta_conv.1.1.4
- orakuda.1.2.1
- treeprint.1.0.3
- levenshtein.1.0.0
- pa_ounit.109.53.02
- ounit.2.0.0
- eliom.3.0.3
These packages should be available from OPAM. Windows is not supported.
OPAM package for OCamlOScope is not yet available... since it requires the following mending of external softwares.
Some of the above packages lack cmxs
files and you have to build them manually:
ocamlcommon.cmxs
andodoc_info.cmxs
are missing in OCaml 4.01.0. You have to build them using0fix_ocamlcommon.cmxs
.ounit.cmxs
of OUnit 2.0.0 missesoUnit2.cmx
. You have to fix it using0fix_ounit_cmxs
$ omake
What does scraping need:
cmt
files. OCaml modules must be compiled withOCAMLPARAM=_,bin-annot=1
, and the compiled source tree withcmt
files must be kept.- For softwares installed by OPAM,
OPAMKEEPBUILDDIR=yes
is required to keep ths source files - OPAM 1.1.0 has a bug and cannot keep the compiler source even with
OPAMKEEPBUILDDIR=yes
.
The following command should scrape the OCaml compiler source code and all the installed OCamlFind libraries and their corresponding OPAM build directorires, and stores the result under data/
directory.
$ ./oco -d -c <ocaml compiler source dir>
After scraping, oco
goes to its console query mode against the dumped data file.
Change directory to eliom/
, copy eliom/oco.conf.in
to oco.conf
and change @PORT@
, @OCAMLLIB@
and @OCAMLSRC@
, then:
$ ./starteliom.sh