| | |
| | | #!/bin/bash |
| | | |
| | | #+-------------------------------------------------------------------------------------------- |
| | | #|Description: This shell script used download and compile MQTT C library mosquitto for ARM |
| | | #|Description: This shell script used download and compile mosquitto for RaspberryPi |
| | | #| Author: GuoWenxue <guowenxue@gmail.com> |
| | | #| ChangeLog: |
| | | #| 1, Initialize 1.0.0 on 2011.04.12 |
| | |
| | | fi |
| | | |
| | | tar -xzf ${SRC_NAME}.${PACK_SUFIX} |
| | | check_result "ERROR: decompress ${SRC_NAME} failure" |
| | | |
| | | cd ${SRC_NAME} |
| | | |
| | | sudo apt install -y libssl1.0-dev |
| | | |
| | | export DESTDIR=${PREFIX_PATH} |
| | | make WITH_SRV=no WITH_UUID=no |
| | |
| | | sudo make prefix=${PREFIX_PATH} install |
| | | } |
| | | |
| | | sudo apt install -y libssl1.0-dev |
| | | |
| | | compile_mosquitto |
| | | |