Hi everyone,
I tried to execute "testlibusb.c" but following error occurred:
Qt Code:
  1. :-1: error: No rule to make target '.../LIBUSBTEST/LIBUSB/MinGW32/static/liblibusb-1.0d.a', needed by 'debug\LIBUSBTEST.exe'. Stop.
To copy to clipboard, switch view to plain text mode 

I added "libusb.h" by right click on project name and 'add existing files'
and also "libusb-1.0.a" by right click on project name and 'add library' (static library).

Qt Code:
  1. HEADERS += \
  2. libusb.h
  3.  
  4. SOURCES += \
  5. testlibusb.c
  6.  
  7. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/LIBUSB/MinGW32/static/ -llibusb-1.0
  8. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/LIBUSB/MinGW32/static/ -llibusb-1.0d
  9.  
  10. INCLUDEPATH += $$PWD/LIBUSB/MinGW32/static
  11. DEPENDPATH += $$PWD/LIBUSB/MinGW32/static
  12.  
  13. win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/liblibusb-1.0.a
  14. else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/liblibusb-1.0d.a
  15. else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/libusb-1.0.lib
  16. else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/libusb-1.0d.lib
To copy to clipboard, switch view to plain text mode 

I do not have any idea what should I do.