Skip to content

Commit

Permalink
Bump version 0.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Jan 29, 2018
1 parent 709317d commit b91c680
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b91c680

Please sign in to comment.