Back

ubuntu - ubuntu 20 下安装 libpaho-mqtt-dev

发布时间: 2023-08-08 05:12:00

refer to:
https://unix.stackexchange.com/questions/527810/installing-eclipse-paho-mqtt-c-client-on-debian

sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui git doxygen graphviz libssl-dev
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
git checkout v1.2.1
cmake -Bbuild -H. -DPAHO_WITH_SSL=ON
sudo cmake --build build/ --target install
sudo ldconfig

就可以了。

chatgpt 也是这样说的。

Back