基本步骤
git clone https://github.com/libusb/libusb.git./configure./makesudo ./make install- 在qt工程文件(pro)中,添加下面两句
LIBS += -L/usr/local/lib -lusb-1.0.0INCLUDEPATH += /usr/local/include - 在代码中使用
#include<libusb-1.0/libusb.h>
基本步骤
git clone https://github.com/libusb/libusb.git./configure./makesudo ./make installLIBS += -L/usr/local/lib -lusb-1.0.0INCLUDEPATH += /usr/local/include#include<libusb-1.0/libusb.h>