how to add a mqtt library on qt
-
wrote on 15 Sept 2021, 15:01 last edited by
After I do all command
git clone https://github.com/qt/qtmqtt
cd qmqtt
mkdir build
cd build
qmake -r ..
make
sudo make install
when i created a project i got an error, unknown module(s) in QT : qtmqtt
it is possible to help me please -
Hi
maybe it was not copied to right place
try/full path to the qt you use/qmake -query QT_INSTALL_LIBS
(like ~/Qt/5.10.0/gcc_64/bin/qmake )and see where it points.
then look there if you have
Qt5Mqtt.so in the right folder -
wrote on 15 Sept 2021, 16:36 last edited byThis post is deleted!
-
Hi and welcome to devnet,
Any chances that you wrote
QT += qtmqtt
rather thanQT += mqtt
? -
Hi
maybe it was not copied to right place
try/full path to the qt you use/qmake -query QT_INSTALL_LIBS
(like ~/Qt/5.10.0/gcc_64/bin/qmake )and see where it points.
then look there if you have
Qt5Mqtt.so in the right folderwrote on 16 Sept 2021, 08:58 last edited by OSEMO NDJUDI@mrjj Hi
my QT path is ~/QT/5.15.2/gcc_64/lib.
it is normal?
thank you for the answer -
@mrjj Hi
my QT path is ~/QT/5.15.2/gcc_64/lib.
it is normal?
thank you for the answerWell you can install it as you wish so any path can be normal.
Make sure you are not using a distro that has Qt already included as then there can be multiple qmake etc.
So in that libs, do you have the Qt5Mqtt file ?
else try to see where it put it with
sudo updatedb
locate Qt5Mqtt -
Well you can install it as you wish so any path can be normal.
Make sure you are not using a distro that has Qt already included as then there can be multiple qmake etc.
So in that libs, do you have the Qt5Mqtt file ?
else try to see where it put it with
sudo updatedb
locate Qt5Mqttwrote on 16 Sept 2021, 09:34 last edited by@mrjj in lib I have libqt5qmqtt file.
i have a directory Qt5Mqtt in ~/lib/cmake.
how do i know if my distribution has Qt included? -
wrote on 16 Sept 2021, 10:08 last edited by
@SGaist I wrote in QT += mqtt in my .pro file
-
Which distribution are you using ?
Which version of a Qt are you using ?
How did you install it ?
1/9