代码拉取完成,页面将自动刷新
All platform Qt5.7 can find here. if your platform is ubuntu20.04, you can download qt downloader by run:
wget https://download.qt.io/new_archive/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run
then, we change the execution authority of qt-opensource-linux-x64-5.7.0.run and execute.
sudo chmod u+x qt-opensource-linux-x64-5.7.0.run
./qt-opensource-linux-x64-5.7.0.run
find your qmake installed path, set qmake run path.
PATH=$PATH:$PWD
export PATH
git clone https://github.com/emqx/qmqtt.git
cd qmqtt
qmake
make
sudo make install
git clone https://github.com/emqx/MQTT-Client-Examples.git
cd MQTT-Client-Examples/mqtt-client-Qt/
mkdir build
cd build
qmake ..
make
./client/qmqtt_example
when you run qmqtt_example, make sure a local broker can access.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。