MinGW 下 windows 中的 Protobuf

Protobuf in windows under MinGW

尝试在 windows 的 MinGW 中编译和使用 google 的 protobuf - 它是我需要安装的程序的依赖项。

我得到了 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)...

感谢@KentonVarda 为我指明了正确的方向: 我遇到了以下情况: https://superuser.com/questions/581921/netbeans-mingw-c-file-not-found

内容是:

  • 转到 C:\MinGW\bin 并复制 mingw32-make.exe。然后重命名为 make.exe
  • 现在转到 C:\MinGW\msys.0\bin 并将 make.exe 重命名为 makeOLD.exe(以防万一)
  • 然后将新 make.exe 移动到 C:\MinGW\msys.0\bin.