1.下载
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c/
mkdir build
cd build
2.配置
cmake -DCMAKE_C_COMPILER=/opt/scm/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -DCMAKE_INSTALL_PREFIX=/share/eciot/allwiner-t3/paho/paho.mqtt.c/build_arm/_install ../
3.编译
make
4.安装
make install