下载libusb源码编译并安装
sudo apt-get update
sudo apt-get install autoconf automake libtool make gcc
git clone --recursive https://github.com/libusb/libusb.git
查看api使用
运行效果
完整源码如下:
Main.cpp
#include <stdio.h>
#include <stdlib.h>
#