我正在尝试使用 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/