Unknown module(s) in QT: mqtt
-
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