-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need update build script for linux aarch64 #88
base: master
Are you sure you want to change the base?
Conversation
@@ -92,12 +92,7 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_INSTALL_LIBDIR=lib" | |||
if [[ ${cmake_options} =~ USE_CAFFE=ON || ${cmake_options} =~ USE_ONNX=ON || ${cmake_options} =~ USE_FLOW=ON ]]; then | |||
PROTOC_ROOT=${work_dir}/protoc | |||
protobuf_version="3.14.0" | |||
protobuf_cmake_options="" | |||
if [[ ${target} =~ linux-aarch64 ]]; then | |||
protobuf_version="3.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when using linux-aarch64 run on android phone, we find that protobuf only 3.1.0 can work, we encounter error when using 3.14.
@@ -92,12 +92,7 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_INSTALL_LIBDIR=lib" | |||
if [[ ${cmake_options} =~ USE_CAFFE=ON || ${cmake_options} =~ USE_ONNX=ON || ${cmake_options} =~ USE_FLOW=ON ]]; then | |||
PROTOC_ROOT=${work_dir}/protoc | |||
protobuf_version="3.14.0" | |||
protobuf_cmake_options="" | |||
if [[ ${target} =~ linux-aarch64 ]]; then | |||
protobuf_version="3.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when using linux-aarch64 run on android phone, we find that protobuf only 3.1.0 can work, we encounter error when using 3.14.
fix build error on linux aarch64
Using
bash ./install.sh --target=linux-aarch64
builds this lib will cause a error. It will download protocolbuffers from https://github.com/protocolbuffers/protobuf/releases/download/v3.1.0/protoc-3.1.0-.zip.