how to add external library on windows in qt
-
Using Qt libusb32 or libusb64, I must add the libusb library on Windows. I've tried. I have included the path in the pro, but it is not functioning. I have also added the external path, but it is not working. Would you kindly advise me on how to add?

-
You are not using the add library wizard correctly.
According to you current content, I suppose you should write like this:LIBS += -L$$PWD/../../Downloads/libusb-1.0.27/MinGW32/static -llibusb-1.0.dll INCLUDEPATH += $$PWD/../../Downloads/libusb-1.0.27/includeI use this
MinGW32/staticpath because I downloadlibusb-1.0.27.7zfrom github and there'slibusb-1.0.dll.afile in that folder, right?
Actually the comments in you .pro already shows you the necessary variables need to be set, you just need to change the folder path and library file name.
And if you want to link the static library you should change-llibusb-1.0.dllto-llibusb-1.0 -

-
You are not using the add library wizard correctly.
According to you current content, I suppose you should write like this:LIBS += -L$$PWD/../../Downloads/libusb-1.0.27/MinGW32/static -llibusb-1.0.dll INCLUDEPATH += $$PWD/../../Downloads/libusb-1.0.27/includeI use this
MinGW32/staticpath because I downloadlibusb-1.0.27.7zfrom github and there'slibusb-1.0.dll.afile in that folder, right?
Actually the comments in you .pro already shows you the necessary variables need to be set, you just need to change the folder path and library file name.
And if you want to link the static library you should change-llibusb-1.0.dllto-llibusb-1.0@Bonnie Thanks for you valuable response.