OCaml-USB is a binding to libusb-1.0. It uses Lwt to make it easy to use asynchronous IO features of libusb-1.0.
- OCaml (>= 3.11)
- findlib
- lwt (>= 2.0.0)
- libusb-1.0
For building the development version, you also need to install oasis (>= 0.3.0).
To build and install ocaml-usb:
$ ./configure
$ make
$ make install
To build the documentation:
$ make doc
It will then be installed by make install
.
To build and execute tests:
$ ./configure --enable-tests
$ make test