paho.mqtt.cpp的使用
安装部署
准备工作
$ sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui
$ sudo apt-get install libssl-dev
$ sudo apt-get install doxygen graphviz
paho.mqtt.c的安装
$ git clone https://github.com.cnpmjs.org/eclipse/paho.mqtt.c.git
$ cd paho.mqtt.c
$ cmake -Bbuild -H. -DPAHO_WITH_SSL=ON -DPAHO_ENABLE_TESTING=OFF
$ sudo cmake --build build/ --target install
$ sudo ldconfig
paho.mqtt.cpp的安装
$ git clone https://github.com.cnpmjs.org/eclipse/paho.mqtt.cpp
$ cd paho.mqtt.cpp
$ cmake -Bbuild -H. -DPAHO_BUILD_DOCUMENTATION=TRUE -DPAHO_BUILD_SAMPLES=TRUE
$ sudo cmake --build build/ --target install
$ sudo ldconfig
————————————————
转载于https://blog.csdn.net/wei242425445/article/details/108874179