From c3c10b970eeac105222f0de27a3edd3a1fae9a44 Mon Sep 17 00:00:00 2001 From: doodoocoder <316422663@qq.com> Date: Thu, 18 Jul 2019 14:28:38 +0800 Subject: [PATCH 1/2] boost build64 on windows the command should be this: .\b2 -j8 --with-serialization --with-atomic --with-log --with-locale --with-iostreams --with-system --with-regex --with-thread --with-date_time --with-chrono --with-filesystem --build-type=complete address-model=64 , not that: bjam.exe address-model=64 --with-serialization --with-atomic --with-log --with-locale --with-iostreams --with-system --with-regex --with-thread --with-date_time --with-chrono --with-filesystem link=static threading=multi variant=release runtime-link=shared or the vs2015 will prompt the error can not find libboost_system-vc140-mt-gd-1_58.lib --- win32_build.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32_build.bat b/win32_build.bat index 0cc2e0cb0..0095a05b1 100644 --- a/win32_build.bat +++ b/win32_build.bat @@ -85,7 +85,7 @@ set ZLIB_INCLUDE="%cd%\zlib-1.2.3-src\src\zlib\1.2.3\zlib-1.2.3\" ::cd boost_1_58_0 call bootstrap.bat @echo build start..... -bjam.exe address-model=64 --with-serialization --with-atomic --with-log --with-locale --with-iostreams --with-system --with-regex --with-thread --with-date_time --with-chrono --with-filesystem link=static threading=multi variant=release runtime-link=shared +.\b2 -j8 --with-serialization --with-atomic --with-log --with-locale --with-iostreams --with-system --with-regex --with-thread --with-date_time --with-chrono --with-filesystem --build-type=complete address-model=64 cd ../jsoncpp-0.10.6 devenv ./jsoncpp_lib_static.vcxproj /Build "Release|x64" /out log.txt cd ../libevent-release-2.0.22 @@ -98,4 +98,4 @@ devenv ./rocketmq-client-cpp.sln /Build "Release|x64" /out log.txt ::devenv ./rocketmq-client-cpp.vcxproj /Rebuild "Release|x64" /out log.txt ::cd .. @echo build end -goto:eof \ No newline at end of file +goto:eof From be7912a1168a9e9bb68587f79bc28d31b86b7a2f Mon Sep 17 00:00:00 2001 From: doodoocoder <316422663@qq.com> Date: Fri, 19 Jul 2019 17:51:12 +0800 Subject: [PATCH 2/2] use different command for x86 or x64 respectively use different command for x86 or x64 respectively --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c042054e6..2d079565e 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,12 @@ If your host is not available to internet to download the four library source fi [jsoncpp-0.10.6](https://codeload.github.com/jsj020122/jsoncpp-0.10.6/zip/master "jsoncpp-0.10.6") Extract to $(rocketmq-client-cpp root dir)/thirdparty/jsoncpp-0.10.6 -And then run following command to build rocketmq-client: +And then run following command to build x86 rocketmq-client: win32_build.bat build +to build x64 rocketmq-client: + + win32_build.bat build64 +