- 下载
GitHub - libusb/libusb: A cross-platform library to access USB devices
- 安装依赖
sudo apt install -y make dh-autoreconf sudo apt install -y libudev-dev
- 编译
./autogen.sh ./configure make # this maybe not need # sudo make install
- 测试
cd examples make ./listdevs