Last active
November 20, 2019 07:55
-
-
Save liusheng/2ce92f2541c8dee630d320ad67d4131d to your computer and use it in GitHub Desktop.
cross build protobuf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
apt-get update | |
apt-get install -y wget autoconf automake libtool g++-aarch64-linux-gnu g++ make | |
apt-get install software-properties-common -y | |
add-apt-repository ppa:openjdk-r/ppa -y | |
apt-get update | |
apt install openjdk-8-jdk -y | |
export JAVA_HOME=`dirname $(dirname $(update-alternatives --list javac |grep java-8))` | |
echo $JAVA_HOME | |
rm /etc/ssl/certs/java/cacerts | |
update-ca-certificates -f | |
SKIP_TESTS=true ARCH=aarch_64 ./buildscripts/kokoro/unix.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
sudo apt-get update -y | |
sudo apt-get install -y wget autoconf automake libtool g++-aarch64-linux-gnu g++ make | |
readonly proto_dir="$(mktemp -d --tmpdir protobuf.XXXXXX)" | |
wget -O - https://github.com/google/protobuf/archive/v3.10.0.tar.gz | tar xz -C "$proto_dir" | |
pushd "$proto_dir"/protobuf-3.10.0/ | |
./autogen.sh | |
./protoc-artifacts/build-protoc.sh linux aarch_64 protoc | |
popd |
Author
liusheng
commented
Nov 20, 2019
centos 6.9:
wget -O- http://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/aarch64-linux-gnu/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu.tar.xz | tar -xJf - -C /tmp/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment