首先在linux平台这边先安装arm-linux-gcc-4.4.3,可以使用友善之臂提供的这个编译工具,安装过程请自行参考其他文章。
需要先准备好以下源代码:
1、cmake-3.7.2(本地编译)
https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
或者3.7.2以上版本,因为后面要使用cmake搜索boost-1.63,低版本的cmake会搜不到。
2、OpenSSL(arm交叉编译)
我用的是OpenSSL-1.0.0
https://www.openssl.org/source/old/1.0.0/openssl-1.0.0.tar.gz
3、paho.mqtt.embedded-c或者paho.mqtt.c(arm交叉编译)
https://github.com/eclipse/paho.mqtt.embedded-c/tree/master
https://github.com/eclipse/paho.mqtt.c
这个不是domoticz平台必须的,只是用来在mini2440上做开发板上的MQTT客户端应用程序的,例如控制mini2440上的GPIO或者其他设备。
如果不需要在mini2440做MQTT客户端应用程序,则不需要这个库。
因为后面会在STM32上用客户端,paho.mqtt.c比较大,并且,paho.mqtt.embe