win下使用Qt编译protobuf
环境
- Qt creater 5.15.2
- protobuf 3.21.9
编译动态库
- 使用Qt打开protobuf源码中的CMakeList.txt
- 点左侧边栏“项目”,将下边两个选项置为ON,其它所有置为OFF
- protobuf_BUILD_SHARED_LIBS
- protobuf_WITH_ZLIB
- 点左侧边栏“编辑”,右键protobuf-> CMAKE -> 重新构建
本文标题:win下使用Qt编译protobuf
本文链接:https://www.haomeiwen.com/subject/gahofjtx.html
网友评论