Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

steelONIONknight
Copy link

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.

@CLAassistant
Copy link

CLAassistant commented Jan 15, 2022

CLA assistant check
All committers have signed the CLA.

@@ -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"
Copy link
Contributor

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"
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants