ocaml-libusb/README.md

22 lines
742 B
Markdown
Raw Permalink Normal View History

2019-03-21 18:07:25 +00:00
Binding to a tiny part of [libusb](http://libusb.info/).
2021-06-05 15:52:04 +00:00
For a more complete binding, have a look at the more complete and more advanced
[ocaml-usb](https://github.com/letoh/ocaml-usb).
2019-03-21 18:07:25 +00:00
I wrote this alternate binding:
- in order to experiment more in depth with Ctypes;
2021-06-05 15:52:04 +00:00
- and because I needed something more portable than ocaml-usb: this one is
working on Windows, which was not the case of ocaml-usb when I started this
project.
2019-03-27 09:18:29 +00:00
# Dependency
2021-06-05 15:52:04 +00:00
Obviously, `libusb` must installed before compilation. `pkg-config` is used in
order to locate the library during compilation.
2019-03-27 09:18:29 +00:00
On Debian-like systems: `apt install libusb-1.0-0-dev`
2021-06-05 15:52:04 +00:00
On cygwin, I used mingw64 OCaml installation. This is why I installed
`mingw64-x86_64-libusb1.0` package.