Protobuf 3.0.0-alpha-1 not compiling on windows

烈酒焚心 提交于 2019-12-25 04:27:24

问题


I'm trying to compile protobuf 3.0.0 alpha 1 on Windows using MinGW 4.9.2 & MSYS.

According to the instructions I'm supposed to:

./configure 
make
make check
make install

I added --prefix=/c/path/to/mingw to configure (How to build Google's protobuf in Windows using MinGW?) but it didnt help.

It fails at make with the message:

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

I've tried installing Automake but it doesnt come with aclocal.

Also today at work i managed to get it working on the first try with a bare MinGW & MSYS.


回答1:


It looks like you need to install autoconf (which is separate from automake, though they are often used together). You may also need to install libtool.



来源:https://stackoverflow.com/questions/27991975/protobuf-3-0-0-alpha-1-not-compiling-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!