yg0x01 opened a new pull request #338:
URL: https://github.com/apache/rocketmq-client-cpp/pull/338


   ## What is the purpose of the change
   
   Fix build error on aarch64 platform
   
   ## Brief changelog
   
   The build.sh runs failed on arm64. I checked and fix some error, add some 
judgement logic on the point which could failed on arm64.
   
   1. In CmakeList.txt there is -m32 and -m64 option for compile, but for arm64 
this params should not exist. In build.sh we should add this option when detect 
arm platform.
   2. Old openssl-1.1.1d build failed on arm, but 1.1.1i version fix the error, 
so we should update openssl version for arm.
   3. Jsoncpp copy .a from x86_64-linux-gnu folder, but on arm it should be 
aarch64-linux-gnu.
   4. Boost b2 tool have a option `architecture` for build arm. When we build 
from arm we should add it.
   
   ## Verifying this change
   
   XXXX
   
   Follow this checklist to help us incorporate your contribution quickly and 
easily. Notice, `it would be helpful if you could finish the following 5 
checklist(the last one is not necessary)before request the community to review 
your PR`.
   
   - [x] Make sure there is a [Github 
issue](https://github.com/apache/rocketmq/issues) filed for the change (usually 
before you start working on it). Trivial changes like typos do not require a 
Github issue. Your pull request should address just this issue, without pulling 
in other changes - one PR resolves one issue. 
   - [x] Format the pull request title like `[ISSUE #123] Fix UnknownException 
when host config not exist`. Each commit in the pull request should have a 
meaningful subject line and body.
   - [x] Write a pull request description that is detailed enough to understand 
what the pull request does, how, and why.
   - [x] Write necessary unit-test(over 80% coverage) to verify your logic 
correction, more mock a little better when a cross-module dependency exists.
   - [ ] If this contribution is large, please file an [Apache Individual 
Contributor License Agreement](http://www.apache.org/licenses/#clas).
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to