Dart wrapper via dart:ffi
for https://github.com/libusb/libusb
- Windows(10)
- macOS
- Linux(Ubuntu 18.04 LTS)
Checkout example
Please file feature requests and bugs at the issue tracker.
- Windows:
winget install -e --id LLVM.LLVM
- macOS:
brew install llvm
- Linux:
sudo apt install libclang-10-dev
- Windows/Linux:
pub run ffigen
move lib/libusb.dart lib/libusb64.dart
Refactor timeval
to timeval64
- macOS:
pub run ffigen
mv lib/libusb.dart lib/libusb32.dart
Refactor timeval
to timeval32
Download xxx
verion from https://github.com/libusb/libusb/releases
and extract libusb.h
- Windows:
Download xxx
version from https://github.com/libusb/libusb/releases and extract
copy libusb-1.0.23\MS64\dll\libusb-1.0.dll libusb-1.0\
- macOS:
Download xxx
version from https://homebrew.bintray.com/bottles/libusb-1.0.23.catalina.bottle.tar.gz and extract
cp libusb/1.0.23/lib/libusb-1.0.dylib libusb-1.0/
- Linux:
Download xxx
version from http://old.kali.org/kali/pool/main/libu/libusb-1.0/ and install
cp /lib/x86_64-linux-gnu/libusb-1.0.so.0.xxx libusb-1.0/libusb-1.0.so