1,ProtoBuf 是google开源的一种类型XML的序列化工具,具体信息可以google下。
现在说一下在ubuntu中的编译
1,安装依赖工具
sudo apt-get install autoconf automake libtool curl make g++ unzip
2,获取源码并解压
git clon https://github.com/google/protobuf.git
3,生成configure文件
./autogen.sh
4,进行一系列的操作
./configure
make
make check
sudo make install
sudo ldconfig
如果“make check”失败,可以进行安装,但是在使用时有可能会在链接某些动态库会失败,需要手动去查找