QtMqtt on windows lib install
-
hi,
problem is (lib QtMqtt not found)
Win10 OS.
I need Mqtt for AWS IoT.
what I've done so far.
git clone -b 6.6.1 git://code.qt.io/qt/qtmqtt.git
Open CMakeLists.txt with VS2022
see:
make and install ok
now in QT6 error lib not found.
cmakelists
target_link_libraries(ATPOnline_EMS PRIVATEQt${QT_VERSION_MAJOR}::Widgets Qt::Core Qt::Gui **# Qt::Mqtt error** )
mainwindow.cpp
#include <QtMqtt/QMqttClient> errorwhat is the problems, and,
how to tell QT the directory where the Lib QtMqtt is installed.
thanks,
Carlos -
@ccandido
hi,this: https://www.emqx.com/en/blog/how-to-create-an-mqtt-application-in-qt6
Git clone C:\Qt....
Qt6 open CMakeLists.txt... + Run CMake
create: C:\Qt\build-qtmqtt-Desktop_Qt_6_6_1_MSVC2019_64bit-Releasein my App:
target_link_libraries add Qt6::Mqtt now I can see
#include <QtMqtt/QMqttClient> ok
m_client = new QMqttClient(this); compiling Yes ....run.Then I'll test it at a broker to see if it works,
but installation seems to have gone well.thanks,
Carlos. -