参考:https://github.com/google/protobuf/blob/master/src/README.md
代码Git: https://github.com/google/protobuf
To build protobuf from source, the following tools are needed:
- autoconf
- automake
- libtool
- curl (used to download gmock)
- make
- g++
- unzip
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig # refresh shared library cache.
tips: 可以根据autogen.sh手动下载gmock与gtest
转载于:https://www.cnblogs.com/yanghangjunHobot/p/8504835.html
最后
以上就是发嗲毛巾最近收集整理的关于ProtoBuffer-C++环境搭建的全部内容,更多相关ProtoBuffer-C++环境搭建内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复