準備工作:
安裝mingw,和msys,下載protobuf-2.4.1和openssl-1.0.1c;
啓動msys.bat,進入sh;
cd /protobuf/
> ./Configure
> make
沒有出錯,一切ok;
cd /openssl/
> ./config
> make
提示錯誤:
CPU you selected does not support x86-64 instruction set
./ config --help 查看幫助,嘗試
./ config 386 問題依舊
最後直接修改Makefile,將-march=i486修改爲-march=x86-64,編譯
> make
搞定。