简体   繁体   English

MinGW下Windows中的Protobuf

[英]Protobuf in windows under MinGW

Trying to compile and use google's protobuf in MinGW in windows - it is a dependency for a program I need to install. 试图在Windows的MinGW中编译和使用Google的protobuf-这是我需要安装的程序的依赖项。

I got the protobuf source and used msys' bash to run "configure", but the output from the configure hangs at a specific point. 我获得了protobuf源,并使用msys的bash运行“配置”,但是configure的输出挂在特定的位置。

protobuf-2.6.0>sh configure

checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)...

Thanks to @KentonVarda for pointing me in the right direction: I came across the following: https://superuser.com/questions/581921/netbeans-mingw-c-file-not-found 感谢@KentonVarda指出正确的方向:我遇到了以下问题: https ://superuser.com/questions/581921/netbeans-mingw-c-file-not-found

What it states is: 它指出的是:

  • Go to C:\\MinGW\\bin and make a copy of mingw32-make.exe. 转到C:\\ MinGW \\ bin并复制mingw32-make.exe。 Then rename it to make.exe 然后将其重命名为make.exe
  • Now go to C:\\MinGW\\msys\\1.0\\bin and rename make.exe to makeOLD.exe (just in case) 现在转到C:\\ MinGW \\ msys \\ 1.0 \\ bin并将make.exe重命名为makeOLD.exe(以防万一)
  • Then move your new make.exe into C:\\MinGW\\msys\\1.0\\bin. 然后将新的make.exe移至C:\\ MinGW \\ msys \\ 1.0 \\ bin。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM