c++ - Protobuf 3.0.0-alpha-1 无法在 Windows 上编译

标签 c++ mingw protocol-buffers msys

我正在尝试使用 MinGW 4.9.2 和 MSYS 在 Windows 上编译 protobuf 3.0.0 alpha 1。

根据说明,我应该:

./configure 
make
make check
make install

我在配置中添加了 --prefix=/c/path/to/mingw ( How to build Google's protobuf in Windows using MinGW? ) 但它没有帮助。

它在 make 处失败并显示消息:

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/Markus/protobuf-3.0.0-alpha- 1/missing aclocal-1.14 -I m4

/home/Markus/protobuf-3.0.0-alpha-1/missing: line 81: aclocal-1.14: command not found

WARNING: 'aclocal-1.14' is missing on your system.

    You should only need it if you modified 'acinclude.m4' or
     'configure.ac' or m4 files included by 'configure.ac'.
     The 'aclocal' program is part of the GNU Automake package:
     <http://www.gnu.org/software/automake>
     It also requires GNU Autoconf, GNU m4 and Perl in order to run:
     <http://www.gnu.org/software/autoconf>
     <http://www.gnu.org/software/m4/>
     <http://www.perl.org/>

make: *** [aclocal.m4] Error 127

我试过安装 Automake,但它没有附带 aclocal。

也是在今天的工作中,我设法让它在第一次尝试时使用裸机 MinGW 和 MSYS。

最佳答案

看来您需要安装 autoconf(它与 automake 是分开的,尽管它们经常一起使用)。您可能还需要安装 libtool。

关于c++ - Protobuf 3.0.0-alpha-1 无法在 Windows 上编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27991975/

相关文章:

c# - c++/c# 编码结构以获取固定指针

C++:替换我们有迭代器的 std::unordered_set 中的元素

shell - 打开新的 msys 终端并运行命令

c++ - Thrift 与 Protocol Buffer

protocol-buffers - 有什么方法可以将 google protobuf 二进制文件(.pb 文件)反编译为 .proto 文件

c++ - 构建 smplayer 到 LLVM IR 并由 lli 运​​行

c++ - 在模型动态插入和删除QTableView中的行时发出信号/槽

c - 为什么 Windows 上的 MinGW 不需要静态链接?

c++ - CheckRemoteDebuggerPresent 在 MingW 中不存在

java - Protocol buffer Java解析问题