1

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

Sonicpath
  • 231
  • 4
  • 16
  • Windows will block accesses to devices that are already managed by another driver, so libusb is unlikely to help you. – CL. May 08 '18 at 05:33
  • Possible duplicate of [Adding external library into Qt Creator project](https://stackoverflow.com/questions/718447/adding-external-library-into-qt-creator-project) – eyllanesc May 08 '18 at 05:54

1 Answers1

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>
Toby Speight
  • 27,591
  • 48
  • 66
  • 103