Hi everyone,
I tried to execute "testlibusb.c" but following error occurred:
:-1: error: No rule to make target '.../LIBUSBTEST/LIBUSB/MinGW32/static/liblibusb-1.0d.a', needed by 'debug\LIBUSBTEST.exe'. Stop.
:-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).
HEADERS += \
libusb.h
SOURCES += \
testlibusb.c
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/LIBUSB/MinGW32/static/ -llibusb-1.0
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/LIBUSB/MinGW32/static/ -llibusb-1.0d
INCLUDEPATH += $$PWD/LIBUSB/MinGW32/static
DEPENDPATH += $$PWD/LIBUSB/MinGW32/static
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/liblibusb-1.0.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/liblibusb-1.0d.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/libusb-1.0.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/libusb-1.0d.lib
HEADERS += \
libusb.h
SOURCES += \
testlibusb.c
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/LIBUSB/MinGW32/static/ -llibusb-1.0
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/LIBUSB/MinGW32/static/ -llibusb-1.0d
INCLUDEPATH += $$PWD/LIBUSB/MinGW32/static
DEPENDPATH += $$PWD/LIBUSB/MinGW32/static
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/liblibusb-1.0.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/liblibusb-1.0d.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/LIBUSB/MinGW32/static/libusb-1.0.lib
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.
Bookmarks