在Windows中配置协议缓冲区

时间:2015-06-25 07:26:14

标签: protocol-buffers

我正在尝试在Windows中安装google协议缓冲区,首先是我的说明:

  1. cd'到包含包源代码和类型的目录  './configure'为您的系统配置包。如果你是  在旧版本的System V上使用'csh',您可能需要输入  'sh ./configure'反而阻止'csh'尝试执行  `configure'本身。

    运行`configure'需要一段时间。在跑步时,会打印一些  消息告诉它正在检查哪些功能。

  2. 当我执行'./configure'命令时,它会尝试在目录中打开文件标签configure,如果我使用'sh ./configure',它就不会将sh识别为术语。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

The instructions you're looking at are for Unix. On Windows, usually you'll want to follow the Windows installation instructions: https://github.com/google/protobuf#c-installation---windows As an exception, you'll want to follow the Unix instructions if you plan to use MinGW or Cygwin as your compiler (rather than Visual Studio). In these cases, you'll want to use the MSYS shell (for MinGW) or the Cygwin shell to run the commands in the instructions, not the regular Windows command prompt.