0x01 下载protobuf源码
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protobuf-all-3.15.6.zip
wget protoc-3.15.6-linux-x86_64.zip
0x02 安装环境
sudo apt install autoconf automake libtool curl make gcc g++ unzip git -y
sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
0x03 配置与编译
unzip protobuf-all-3.15.6.zip
unzip protoc-3.15.6-linux-x86_64.zip -d protoc-3.15.6
cd protobuf-3.15.6
./configure --host=arm-linux CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --with-protoc=../protoc-3.15.6/bin/protoc
make -j4
# 编译后生成在src/protoc
本文提供了一份详细的指南,教你如何下载并为ARM架构编译Protobuf 3.15.6版本。包括下载源码、安装必要环境依赖、配置及编译过程。
4501

被折叠的 条评论
为什么被折叠?



