简体   繁体   中英

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.

I got the protobuf source and used msys' bash to run "configure", but the output from the configure hangs at a specific point.

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

What it states is:

  • Go to C:\\MinGW\\bin and make a copy of mingw32-make.exe. Then rename it to make.exe
  • Now go to C:\\MinGW\\msys\\1.0\\bin and rename make.exe to makeOLD.exe (just in case)
  • Then move your new make.exe into C:\\MinGW\\msys\\1.0\\bin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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