zoukankan      html  css  js  c++  java
  • google::protobuf 编译方法

    这两天用了一下Protobuf 感觉很方便, 记录一下编译过程, 以做务忘(需要安装cmake):

    1: 下载地址: https://developers.google.com/protocol-buffers/docs/downloads

    2: 解压后会有一个cmake目录, 打开vs command line 并进入cmake目录

    3: c:protobufcmake > mkdir build & cd build

    4: 如果编译为debug:

      c:protobufcmakeuild>mkdir debug & cd debug

      c:protobufcmakeuilddebug>cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=../../../install ../..

    5: 如果编译为debug:

      c:protobufcmakeuild>mkdir release & cd release

      c:protobufcmakeuild elease>cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=../../../install ../..

     6: 开始编译

      c:protobufcmakeuilddebug>nmake

    7: 安装

      c:protobufcmakeuilddebug>nmake install

      成功后会在最上层根目录(c:protobuf)下生成一个install的文件夹,里面有三个文件夹,bin,include和lib。

    原文地址: Google protobuf windows 下编译

  • 相关阅读:
    HTML5画布(线条、渐变)
    HTML5画布(圆形)
    HTML5画布(矩形)
    HTML5拖放
    HTML5音频
    HTML5视频
    table添加正确的样式
    Mac上SublimeText3安装Emmet时PyV8安装问题
    PHP分页
    Mysql的limit用法
  • 原文地址:https://www.cnblogs.com/cnsnow/p/7000878.html
Copyright © 2011-2022 走看看