Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basvandijk/bindings-libusb
Low level bindings to libusb
https://github.com/basvandijk/bindings-libusb
haskell usb
Last synced: 29 days ago
JSON representation
Low level bindings to libusb
- Host: GitHub
- URL: https://github.com/basvandijk/bindings-libusb
- Owner: basvandijk
- License: bsd-3-clause
- Created: 2011-04-24T21:45:02.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-10-29T20:36:29.000Z (about 10 years ago)
- Last Synced: 2024-05-08T20:12:08.159Z (6 months ago)
- Topics: haskell, usb
- Language: Haskell
- Homepage:
- Size: 229 KB
- Stars: 4
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
Low level bindings to
[libusb-1.*](http://libusb.sourceforge.net/api-1.0/)This package uses
[bindings-DSL](http://hackage.haskell.org/package/bindings-DSL) and
conforms to its naming convention.For a higher-level and more Haskell friendly binding (which uses this
package) see the [usb](http://hackage.haskell.org/package/usb)
package.# Installing
Make sure the `libusb` C library is installed:
* *Ubuntu Linux*: `sudo apt-get install libusb-1.0-0-dev`
* *Gentoo Linux*: `sudo emerge libusb`
* *MS Windows*:
[Download `libusb` for MS Windows](http://www.libusb.org/wiki/windows_backend#LatestBinarySnapshots)
and extract it somewhere e.g. `C:\Program Files\libusb\libusb1`.Important build-time files: `libusb-1.0\include\libusb.h` and
`MinGW32\dll\libusb-1.0.dll.a`Important run-time files: `MinGW32\dll\libusb-1.0.dll`
Make sure to use the following cabal options:
--extra-include-dirs="C:\Program Files\libusb\libusb1\include\libusb-1.0"
--extra-lib-dirs="C:\Program Files\libusb\libusb1\MinGW32\dll"