尝试在 Windows 的 MinGW 中编译和使用谷歌的 protobuf - 它是我需要安装的程序的依赖项。
我获得了 protobuf 源并使用 msys 的 bash 运行“配置”,但配置的输出在特定点挂起。
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\1.0\bin 并将 make.exe 重命名为 makeOLD.exe(以防万一)
- 然后将新的 make.exe 移动到 C:\MinGW\msys\1.0\bin。
关于c++ - MinGW 下 windows 中的 Protobuf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28901812/