Qt: MQTT Module unknown
-
Hi everyone,
i'm new to QT and i need to implement MQTT in QT for my university project.
Im working with the Qt Creator and the problem is, if i try to add the mqtt module to my .pro file with "QT += mqtt" (as described in http://doc.qt.io/QtMQTT/index.html) the outcome is:
- "Project ERROR: Unknown module(s) in QT: mqtt"
Installed components:
- Qt Creator 4.61,
- Qt 5.10.0
- Qt 5.10.1
- QT for Automations 1.0
Platform:
- Windows 10
Is there anything in addition i have to do in order that the mqtt module is found?
Hope somone can help me out, thanks. -
I solved the problem myself. In case someone has the same problem in the future the solution for me was to intall the Technology Preview "Qt for Automations 5.11.0 rc". I don't know why it didn't work before, because MQTT is also part of "Qt for Automations 1.0". Another solution would probably be to bouild it from the sourve provided by "Qt for Automations 1.0", but I didn't test that since the 5.11.0 rc version solved it for me.
-
Hi svolk!
Can you help me?
I need mqtt module but I got this issue!
So can you please help me how to install QT for Automations 1.0.?Thanks
-
There is a bug that Qt for Automation 1.0 only matches to Qt 5.10.0, and not Qt 5.10.1. This implies, that if you install 5.10.1 you will not get updated Qt Mqtt libraries.
We fixed this with Qt 5.11. There for all patch level releases you will also get updated Qt Mqtt builds.
-
@mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).
@Egn1n3 said in Qt: MQTT Module unknown:
@mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).
That is correct, you will only see it with commercial license.
-
@mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it.... (I am using the GPL version of Qt).
@Egn1n3 said in Qt: MQTT Module unknown:
@mkalinow Should you be able to select "Qt for Automation" in the Qt Maintenance tool? For both 5.10.0 and 5.11.0 I don't see it....
As @aha_1980 said, you will only see "Qt for Automation" in the Qt Maintenance Tool if you have a commercial license.
(I am using the GPL version of Qt).
Open source users can download the source code and build the modules. "Qt for Automation" consists of the following 3 modules:
- Qt MQTT, http://code.qt.io/cgit/qt/qtmqtt.git/ (GPLv3 only)
- Qt KNX, http://code.qt.io/cgit/qt/qtknx.git/ (GPLv3 only)
- Qt OPC UA, http://code.qt.io/cgit/qt/qtopcua.git/ (GPLv3; or LGPLv3 if you use the open62541 backend)
@mkalinow, could you please include these bits of info in the documentation and blog posts? Leena made a start at https://codereview.qt-project.org/#/c/231875/2/src/qtforautomation.qdoc ; it would be very helpful if this info is accessible elsewhere too (e.g. in the blog post at http://blog.qt.io/blog/2018/06/22/integrating-cloud-solutions-qt/ )