Quick install with Opam
The easiest way to install is to use OPAM.
Install Opam, then, as a regular user, fetch and install an OCaml version and install
Chamo.
The whole can be done with the following opam commands:
$ opam init --bare
$ opam update
$ opam switch create 5.0.0
$ opam install chamo
Dependencies
To build Chamo, you will need:
- OCaml >= 4.12.0,
- dune >= 3.6,
- Lwt >= 5.4.0,
- Lwt_ppx >= 2.0.2,
- OCaml-pcre >= 7.5.0,
- Ocf (and ocf_ppx) >= 0.8.0,
- Ppx_blob >= 0.7.2,
- Re >= 1.10.4,
- Sedlex (and sedlex.ppx) >= 2.3,
- Stk and stk_iconv >= 0.1.0,
- Tsdl >= 1.0.0,
- Tsdl-image >= 0.5.0,
- Tsdl-ttf >= 0.5.0,
- Uutf >= 1.0.0,
- Xmlm >= 1.4.0.
- Xtmpl (and xtmpl_ppx) >= 0.19.0,
From the sources
Get the sources from git repository:
$ git clone https://framagit.org/zoggy/chamo.git
Or pick one of the releases:
- 4.0
[March 22, 2023]
- use OCaml-Stk
instead of Lablgtk,
- use dune as build system.
- 3.0
[April 1, 2022]
- upgrade to ocaml 4.12.0, lablgtk3, lablgtk3-extras 3.0,
- use ocf
(with json syntax) instead of config_file for configuration files,
- do not depend on camlp4 any more,
- fix: better handling of with keyword in ocaml indentation lexer,
- fix: handling of escaped characters in string, in the ocaml lexer used for
indendation,
- use Lwt,
- new
pop_last_hidden_view
and popup_pick_hidden_view
commands,
- various fixes.
- 2.03
[October 21, 2014]
- move to safe strings (OCaml >= 4.02.0 required),
- replace calls to deprecated functions,
- fix warning when searching text,
- fix #6
(chamo.byte could not use chamo modules),
- fix png files (thanks to Jérôme Maloberti),
- fix completion in open_file command.
- 2.02
[February 13, 2013]
- Split (un)install targets to (un)install-lib and (un)install-bin, for Opam.
- Revert indentation lexer to previous state (better indentation of function
calls). Still not perfect, though.
Compilation
Just type
$ make install
This will install chamo.byte
, chamo
and the chamo
package.