Unknown module(s) in QT: mqtt
-
I have installed Qtmqtt from the open source and i can see the framework folder inside :
ls <path to qt>/Qt/5.15.1/clang_64/lib: QtQmqtt.framework
When i am trying to inculde this module in QtCreator or building for command line i get the error as:
Project ERROR: Unknown module(s) in QT: mqtt
I am using Qt 5.15 on mac and not able to resolve this issue as i want to try the mqtt module to see if it works. Any pointers here will help.
-
-
I have used the following links emqx and also tried with code.qt.io and in both the cases i am not able to find the module Qmqtt.
Also when i am running the commdandQt/5.15.1/clang_64/bin/qmake -query QT_INSTALL_LIBS
and check the installed lib directory i am able to see the
QtQmqtt.framework QtQmqtt.framework.dSYM
folders but unable to load it with QtCreator and even if i am giving the absolute path of the qmtt directory, i am still not able to compile.
I also tried the steps mentioned in : how-can-i-add-module-mqtt-to-qt
but still getting the same error. -
Hi,
Can you describe exactly how you built and installed the module ?
-
-
From the looks of it you mixed the instructions from the official QtMQTT module and that one.
From their doc:
QT += qmqtt
-
-
Great ! Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)
-
@Sudhish-Kapoor please show me step by step on window desktop again. Thanks
-
@SGaist I installed QtMqtt in windows 10 and can see QtMqtt.dll inside bin folder. The problem is , QT creator shows unknown module found. I checked in the QT_INSTALL_LIBS Folder too. There is also QTMqtt found. But still not working. Please help
-
@Jagannath where did you get QtMqtt from ?
How exactly did you install it ? -
@SGaist Thank you for your reply. I have open-source QT. I am trying to use MQTT in the android application that I am creating. I cloned QtMqtt inside "C:\Qt\5.15.2\Src" folder from
git clone -b 5.15.2 https://code.qt.io/cgit/qt/qtmqtt.git/
After qmake, mingw32-make, mingw32-make install, I checked
qmake -query QT_INSTALL_LIB
at location "C:/Qt/5.15.2/mingw81_64/lib".
I found files named Qt5Mqtt.a, Qt5Mqtt.prl, Qt5Mqtt.dll.debug
I can find QtMqtt folder inside "C:\Qt\5.15.2\mingw81_64\include" folder.
But I couldnt find MQTT on "C:\Qt\5.15.2\android\include" folder. -
I found out while replying to your response that I tried to install with qmake at location "C:/Qt/5.15.2/mingw81_64/bin". Instead I changed path variable of qmake to location "C:/Qt/5.15.2/android/lib". Now it compiled. Thank you for your help @SGaist . :D