编译protobuf v3.20.0

https://github.com/protocolbuffers/protobuf

git clone [email protected]:protocolbuffers/protobuf.git

cd protobuf
git checkout -b v3.20.0 v3.20.0
git submodule update --init --recursive
./autogen.sh
./configure --prefix=/home/xiaxinkai/github/protobuf_install
make -j8
make check
make install

你可能感兴趣的:(git,github)