The Protobuf-c package contains an implementation of the Google Protocol Buffers data serialization format in C.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://github.com/protobuf-c/protobuf-c/releases/download/v1.5.2/protobuf-c-1.5.2.tar.gz
MD5 校验和:0612ee47cccaaf4ad1c4f0c8bdc13abf
大小:520 KB
预计所需磁盘空间:56 MB
预计构建时间:0.6 SBU(含测试)
First fix issues caused by protobuf-34 and later:
patch -Np1 -i ../protobuf-c-1.5.2-protobuf34_fix-1.patch
Install Protobuf-c by running the following commands:
CXXFLAGS="${CXXFLAGS:--O2 -g} -std=c++20" \
./configure --prefix=/usr --disable-static &&
make
To test the results, issue: make check.
Now, as the root user:
make install
CXXFLAGS="${CXXFLAGS:--O2 -g}
-std=c++20": Override the default C++ standard (C++ 2017) of
this package, as the headers from protobuf-35 and later require C++
2020 features.
--disable-static: This
switch prevents installation of static versions of the libraries.