c++ - MinGW 下 windows 中的 Protobuf

标签 c++ windows bash protocol-buffers

尝试在 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/

相关文章:

c++ - Qt编程获取Android设备MAC ID

c++ - 为什么需要在这个 C++ 模板中指定类型?

windows - NW.js Windows 10 任务栏图标始终显示默认值

linux - 将 db 的空副本从 Windows 移动到 Linux

linux - If/else 有 4 个变量

c++ - 为什么需要在类之外定义静态数据成员?

c++ - 获取每个线程打开的句柄数

windows - 离线安装socket.io

bash - 在 shell 脚本的一行末尾有多余的分号吗?

bash - 有条件地省略 bash 中的命令行选项