user3079474
user3079474

Reputation: 1793

Installing libusb on windows for use with Qt

I'm trying to install libusb (not libusb-win32) on windows 7. I have to link it with Qt 5.0.1. Here are the problems I'm facing

'./configure' is not recognized as a valid command.

Googling this problem usually gives the solution as installing libusb-win32. However, I want to avoid that, as of now.

My objective is to link the libusb library with Qt. Please tell me if I haven't 'installed' the library correctly or if I am linking it in a wrong way. thanks

Upvotes: 0

Views: 6294

Answers (1)

Your project file does not reference the library. You only provide a path where libraries might be found, but there's no reference to the libusb library itself.

What you're missing is something like

LIBS += -llibusb

You also can't have multiple project file statements on the same line. The below is an error:

TARGET = Qt_libusb TEMPLATE = app

It should look like:

TARGET = Qt_libusb 
TEMPLATE = app

Upvotes: 2

Related Questions