Unsolved Error with MQTT Client GUI Written with Qt
-
I have a problem with the QMQTT library from https://github.com/emqx/qmqtt-client I've been trying my first with it but there's always this bug:
error: Unknown module(s) in QT: qmqtt
This is my tree:
And This is my .pro
Anyone can see the problem?
-
@Juancinho_cardecan You're missing
QT += mqtt
in your pro file, see https://doc.qt.io/QtMQTT/index.html
Why is your -L pointing to a source code directory?
P.S. please post text, not screen-shots -
With :
QT += mqtt -
@Juancinho_cardecan Do you mean you have that in your pro file?
If so: did you actually built and installed MQTT? -
@jsulm said in Error with MQTT Client GUI Written with Qt:
You're missing
QT += mqttIt looks like the OP is creating his Qt MQTT client application based on the external MQTT library qmqtt, not the Qt framework MQTT module itself, that's why the .pro file uses the
LIBS
directive with-lqmqtt
@Juancinho_cardecan is there any compelling reason to use this external library qmqtt (and client example) instead of using Qt framework own MQTT module and examples?
-
@Pablo-J-Rogina @Juancinho_cardecan Looks like that, but in this case his -L points to the source directory, unless he built that lib and put the libs inside that directory it can't work. My impressions is that he actually did not build the lib...