From b91c680c742ad81b83480cd631591d9a0ef60de8 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 29 Jan 2018 17:42:01 +0800 Subject: [PATCH] Bump version 0.1.0 Signed-off-by: Jianhui Zhao --- README.md | 32 +++++++++++++++++++++++++++++++- src/CMakeLists.txt | 4 ++-- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 059617e..f76b842 100755 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [4]: https://github.com/zhaojh329/libumqtt/pulls [5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=plastic [6]: https://github.com/zhaojh329/libumqtt/issues/new -[7]: https://img.shields.io/badge/release-0.0.1-blue.svg?style=plastic +[7]: https://img.shields.io/badge/release-0.1.0-blue.svg?style=plastic [8]: https://github.com/zhaojh329/libumqtt/releases [9]: https://travis-ci.org/zhaojh329/libumqtt.svg?branch=master [10]: https://travis-ci.org/zhaojh329/libumqtt @@ -35,6 +35,36 @@ Support QoS 0, 1 and 2. Support ssl. * [CyaSSl(wolfssl)] - If you choose wolfssl as your SSL backend * [openssl] - If you choose openssl as your SSL backend + +# How to build and install +## For Linux distribution, such as Ubuntu and Centos +Install build tools + + sudo apt install gcc cmake git # For Ubuntu + + yum install gcc cmake git # For Centos + +Install dependent packages + + sudo apt install libjson-c-dev # For Ubuntu + + sudo apt install json-c-devel # For Centos + + git clone https://git.openwrt.org/project/libubox.git + cd libubox && cmake -DBUILD_LUA=OFF . && sudo make install + +Install libumqtt + + git clone https://github.com/zhaojh329/libumqtt.git + cd libumqtt && cmake . && sudo make install + +Run example + + ./example/helloworld + +## For Embedded Linux Platform +You need to cross compiling by yourself + # Contributing If you would like to help making [libumqtt](https://github.com/zhaojh329/libumqtt) better, see the [CONTRIBUTING.md](/CONTRIBUTING.md) file. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 219c3be..ecd63c0 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,8 +3,8 @@ add_definitions(-O -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wno-misleading-inden # The version number. set(UMQTT_VERSION_MAJOR 0) -set(UMQTT_VERSION_MINOR 0) -set(UMQTT_VERSION_PATCH 1) +set(UMQTT_VERSION_MINOR 1) +set(UMQTT_VERSION_PATCH 0) # Check the third party Libraries find_package(Libubox REQUIRED)