
Compiling monotone-viz from sources
===================================

* OCaml 
Monotone-viz is written in Objective caml, so you'll need the ocaml
compilers [1]. They are binaries available, from the ocaml homepage or
from other vendors (e.g. Linux distributions). It is also easy to
compile from source, something like this should work:

 $ ./configure -prefix /opt/caml 
 $ make world.opt
 $ make install


* GTK+ & libgnomecanvas
You'll need the development packages of GTK+ 2.4 (or newer) and
libgnomecanvas.


* LablGTK
LablGTK is a GTK+ bindings for ocaml [2]. It is packaged for some
Linux distributions, but make sure you have *at least* version 2.4.0.
The latest version is lablgtk2-20050613. If you're compiling LablGTK
from source, make sure it is built with libgnomecanvas support:

  $ ./configure --with-gnomecanvas
  $ make world
  $ make install


* Sqlite
If monotone was built with the --without-bundled-sqlite configure
option, it uses a shared sqlite library and you simply need to run:

  $ ./configure --with-shared-sqlite

Otherwise, the sqlite library is statically linked with the monotone
binary and you'll need the compiled monotone sources.  In the
monotone-viz directory, create a link named monotone and run configure:
  
  $ ln -s /path/to/monotone-tree monotone
  $ ./configure


* Monotone-viz
Compiling monotone-viz should now be as simple as:

  $ make


* Installing & cleaning
There is no `install' target for the Makefile: monotone-viz is a
single executable, just copy it somewhere in your PATH. 
Also the ocaml compiler statically links everything caml-related so
you can delete your ocaml installation if you wish:

  $ rm -Rf /opt/ocaml




[1] http://caml.inria.fr/ocaml/release.en.html
[2] http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
