Qt MQTT not available
I was a question about a new addition to Qt: Qt MQTT.
I found here that it is available for Qt version 5.10.
I tried making one of the examples, but when I try to include the library: QT += mqtt, it says Project ERROR: Unknown module(s) in QT: mqtt.
I checked my installation: I have Qt5.10.0 with mingw 5.3.0 (on windows)
In the examples page, the mqtt examples aren't available.
Any idea how to add Qt MQTT?
With kind regards,
Hi and welcome to devnet,
That's indeed surprising. Worst case scenario:
- Clone the module from http://code.qt.io
- Open the main .pro file in QtCreator
- Build the module with the Qt version you want to use it with
- Then go on the console and type ming32-make install. in the folder where you built the module.
@SGaist Thanks, this worked, but will qt mqtt ever be available in the release version? (instead of building it myself)?
AFAIK, yes. But I don't know when.
Qt Mqtt is part of Qt for Automation, released as an AddOn to Qt.
If you own a license for this addon, then this will also be visible to you in the installer.
Otherwise, you will need to clone and build the repository, like @SGaist mentioned.