How to use mqtt client class in qml?
I am trying to use mqtt protocol in qt quick application. i have already followed the steps which are explained in Qt Documentation Quick MQTT Example. i am getting error while building "error : "Unknown module(s) in Qt : mqtt". How to solve this?
Pablo J. Rogina last edited by
vladstelmahovsky last edited by
@pablo-j-rogina and install it after that
@vladstelmahovsky sorry i didnt get it. how to install mqtt?
Quang Phu last edited by Quang Phu
You can install follow these commands:
/home/nexle-user/Qt5.13.1/5.13.1/gcc_64/bin/qmake -query QT_INSTALL_LIBS(here I build mqtt for desktop so I use qmake inside gcc_64, if you want to build for other platform, just choose correct qmake ) . And this is my output /home/nexle-user/Qt5.13.1/5.13.1/gcc_64/lib, then cd to there:
git clone git://code.qt.io/qt/qtmqtt.git
make install(if has errors, please try
sudo make install)
i am trying this and getting some issu.
till git cloning is worked fine after that when i am going to run "make" command it showing error like "no target specified and no makefile found. stop."
please help me to resolve this..
Arbaj Patel last edited by Arbaj Patel
Thank you @Quang-Phu i got the solution. Thank you all.
Quang Phu last edited by
@Arbaj-Patel glad to hear that, please close this issue as solved.