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