From 62fd3ee8f180ce65a442777cb4e55dc08afeb4fb Mon Sep 17 00:00:00 2001 From: ShannonDing Date: Sat, 22 Feb 2020 22:22:11 +0800 Subject: [PATCH 1/3] feat(jsoncpp): update jsoncpp to 0.10.7 in order to fix build error by gcc7+ --- build.sh | 2 +- example/common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 20a2426ca..852d2cb71 100755 --- a/build.sh +++ b/build.sh @@ -27,7 +27,7 @@ fname_libevent="libevent*.zip" fname_jsoncpp="jsoncpp*.zip" fname_boost="boost*.tar.gz" fname_libevent_down="release-2.1.11-stable.zip" -fname_jsoncpp_down="0.10.6.zip" +fname_jsoncpp_down="0.10.7.zip" fname_boost_down="1.58.0/boost_1_58_0.tar.gz" PrintParams() { diff --git a/example/common.h b/example/common.h index e3f1b0937..7dbd3d981 100644 --- a/example/common.h +++ b/example/common.h @@ -17,6 +17,7 @@ #ifndef ROCKETMQ_CLIENT4CPP_EXAMPLE_COMMON_H_ #define ROCKETMQ_CLIENT4CPP_EXAMPLE_COMMON_H_ +#include #include #include #include From 472a04e24ff48a7f70b116ab4d1269edd4ad1432 Mon Sep 17 00:00:00 2001 From: ShannonDing Date: Sat, 22 Feb 2020 22:38:58 +0800 Subject: [PATCH 2/3] doc(readme): modify jsoncpp to 0.10.7 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ddfd8d488..9a84e3407 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ RocketMQ-Client-CPP is the C/C++ client of Apache RocketMQ, a distributed messag - bzip2-devel 1.0.6: boost depend it - zlib-devel -The **build.sh** script will automatically download and build the dependency libraries including libevent, json and boost. It will save libraries under rocketmq-client-cpp folder, and then build both static and shared libraries for rocketmq-client. If the dependent libraries are built failed, you could try to build it manually with sources [libevent 2.0.22](https://github.com/libevent/libevent/archive/release-2.0.22-stable.zip "lib event 2.0.22"), [jsoncpp 0.10.6](https://github.com/open-source-parsers/jsoncpp/archive/0.10.6.zip "jsoncpp 0.10.6"), [boost 1.58.0](http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz "boost 1.58.0") +The **build.sh** script will automatically download and build the dependency libraries including libevent, json and boost. It will save libraries under rocketmq-client-cpp folder, and then build both static and shared libraries for rocketmq-client. If the dependent libraries are built failed, you could try to build it manually with sources [libevent 2.0.22](https://github.com/libevent/libevent/archive/release-2.0.22-stable.zip "lib event 2.0.22"), [jsoncpp 0.10.7](https://github.com/open-source-parsers/jsoncpp/archive/0.10.7.zip "jsoncpp 0.10.6"), [boost 1.58.0](http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz "boost 1.58.0") -If your host is not available to internet to download the three library source files, you can copy the three library source files (release-2.0.22-stable.zip 0.10.6.zip and boost_1_58_0.tar.gz) to rocketmq-client-cpp root dir, then the build.sh will automatically use the three library source files to build rocketmq-client-cpp: +If your host is not available to internet to download the three library source files, you can copy the three library source files (release-2.0.22-stable.zip 0.10.7.zip and boost_1_58_0.tar.gz) to rocketmq-client-cpp root dir, then the build.sh will automatically use the three library source files to build rocketmq-client-cpp: sh build.sh From 0d802a8539aefc5fe8f7701f0815b9cd68e95839 Mon Sep 17 00:00:00 2001 From: ShannonDing Date: Mon, 24 Feb 2020 15:40:02 +0800 Subject: [PATCH 3/3] doc(readme): modify jsoncpp to 0.10.7 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a84e3407..f4364db77 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ RocketMQ-Client-CPP is the C/C++ client of Apache RocketMQ, a distributed messag - bzip2-devel 1.0.6: boost depend it - zlib-devel -The **build.sh** script will automatically download and build the dependency libraries including libevent, json and boost. It will save libraries under rocketmq-client-cpp folder, and then build both static and shared libraries for rocketmq-client. If the dependent libraries are built failed, you could try to build it manually with sources [libevent 2.0.22](https://github.com/libevent/libevent/archive/release-2.0.22-stable.zip "lib event 2.0.22"), [jsoncpp 0.10.7](https://github.com/open-source-parsers/jsoncpp/archive/0.10.7.zip "jsoncpp 0.10.6"), [boost 1.58.0](http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz "boost 1.58.0") +The **build.sh** script will automatically download and build the dependency libraries including libevent, json and boost. It will save libraries under rocketmq-client-cpp folder, and then build both static and shared libraries for rocketmq-client. If the dependent libraries are built failed, you could try to build it manually with sources [libevent 2.0.22](https://github.com/libevent/libevent/archive/release-2.0.22-stable.zip "lib event 2.0.22"), [jsoncpp 0.10.7](https://github.com/open-source-parsers/jsoncpp/archive/0.10.7.zip "jsoncpp 0.10.7"), [boost 1.58.0](http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz "boost 1.58.0") If your host is not available to internet to download the three library source files, you can copy the three library source files (release-2.0.22-stable.zip 0.10.7.zip and boost_1_58_0.tar.gz) to rocketmq-client-cpp root dir, then the build.sh will automatically use the three library source files to build rocketmq-client-cpp: