Sonicpath
Sonicpath

Reputation: 241

add libusb library to Qt project

I am trying to add libusb library from https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.7z to my qt project can anyone help me ,I can't figure out how to add this library to my project

Upvotes: 1

Views: 2832

Answers (1)

Open terminal:

sudo apt-get install libusb-1.0-0-dev

Edit file.pro:

LIBS += -lusb-1.0

Edit your source fileHeader.h:

#include <libusb-1.0/libusb.h>

Upvotes: 1

Related Questions