You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to build the following example using QUsb. However I am facing the following errors:
I am using Qt version 6.2.1. I have built the library using the following steps:
Downloaded v0.7.0-qt5.15-usb-msvc-dynamic-x64.7z and extracted where Qt directory is present
Added Qt5Usb as an External library in the project, where library path is path of Qt5Usb.lib file. I used dynamic linking and selected the platform windows only. I tried static linking earlier but received the following error "Unknown module QTUsb".
The following is my project file:
QT -= gui usb
CONFIG += c++11 console
CONFIG -= app_bundle
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
usbexample.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
win32:CONFIG(release, debug|release): LIBS += -LG:/qtusblibs/Qt/5.15/msvc2019_64/lib/ -lQt5Usb
else:win32:CONFIG(debug, debug|release): LIBS += -LG:/qtusblibs/Qt/5.15/msvc2019_64/lib/ -lQt5Usbd
INCLUDEPATH += G:/qtusblibs/Qt/5.15/msvc2019_64/include/QtUsb
DEPENDPATH += G:/qtusblibs/Qt/5.15/msvc2019_64/include/QtUsb
HEADERS += \
usbexample.h
Kindly let me know what is the issue here. Thankyou
The text was updated successfully, but these errors were encountered:
PLatform:
Describe the bug
I am trying to build the following example using QUsb. However I am facing the following errors:
I am using Qt version 6.2.1. I have built the library using the following steps:
The following is my project file:
Kindly let me know what is the issue here. Thankyou
The text was updated successfully, but these errors were encountered: