美文网首页
win下使用Qt编译protobuf

win下使用Qt编译protobuf

作者: dhz120 | 来源:发表于2024-05-20 15:53 被阅读0次

win下使用Qt编译protobuf

环境

  • Qt creater 5.15.2
  • protobuf 3.21.9

编译动态库

  1. 使用Qt打开protobuf源码中的CMakeList.txt
  2. 点左侧边栏“项目”,将下边两个选项置为ON,其它所有置为OFF
    • protobuf_BUILD_SHARED_LIBS
    • protobuf_WITH_ZLIB
  3. 点左侧边栏“编辑”,右键protobuf-> CMAKE -> 重新构建

相关文章

网友评论

      本文标题:win下使用Qt编译protobuf

      本文链接:https://www.haomeiwen.com/subject/gahofjtx.html