OCaml-Lirc -- Lirc acccess for OCaml http://perso.ens-lyon.fr/damien.pous/shared/ocaml/lirc/ ************************************* Damien Pous Damien.Pous_AT_ens-lyon.fr http://damien.pous.free.fr/ ================================ ocaml-lirc is a package for ocaml that provides access to LIRC (Linux Infrared Remote Control : http://www.lirc.org/) 1 Building *=*=*=*=*=* Compiling this package from sources requires the following software to be installed on your system: 1. ocaml 3.04 or above including C header files. 2. findlib 3. The lirc client library and header files. 4. An ansi C compiler like gcc. A configure script is provided which should help to find the particular files. In case configure fails, edit the setting in the config file directly. This also applies when the C compiler fails to find some include file. However, you should first try the obvious: << % ./configure % make % make opt % make docs (needs ocaml 3.06) % make install >> This creates the lirc librarie. 2 Installation *=*=*=*=*=*=*=* Running make install will use findlib to install the library 3 Documentation *=*=*=*=*=*=*=*= Check the interface files, doc/index.html, or even online documentation. A small demo resides in doc/examples/. 4 Linking *=*=*=*=*= ocamlc -I +lirc lirc.cma toto.ml ocamlc -custom -I +lirc lirc.cma toto.ml ocamlopt -I +lirc lirc.cmxa toto.ml 5 Copying *=*=*=*=*= This code is under the GPL, see the COPYING file for details. Copyright (C) 2003 Damien Pous OCaml-lirc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OCaml-lirc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OCaml-lirc; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA