Water's Home

Just another Life Style

0%

How to build Google's protobuf in Windows using MinGW

CMAKE Config

mingw32-make & install

c:\protobuf-3.5.1build>mingw32-make
Scanning dependencies of target libprotobuf-lite
[ 0%] Building CXX object CMakeFiles/libprotobuf-lite.dir/C_/protobuf-3.5.1/src/google/protobuf/arena.cc.obj
[ 1%] Building CXX object CMakeFiles/libprotobuf-lite.dir/C_/protobuf-3.5.1/src/google/protobuf/arenastring.cc.obj
[ 1%] Building CXX object CMakeFiles/libprotobuf-lite.dir/C_/protobuf-3.5.1/src/google/protobuf/extension_set.cc.obj
[ 2%] Building CXX object CMakeFiles/libprotobuf-lite.dir/C_/protobuf-3.5.1/src/google/protobuf/generated_message_table_driven_lite.cc.obj
……

c:\protobuf-3.5.1build>mingw32-make install
[ 12%] Built target libprotobuf-lite
[ 52%] Built target libprotobuf
[ 52%] Built target js_embed
[ 99%] Built target libprotoc
[100%] Built target protoc
Install the project…
– Install configuration: “”
– Installing: C:/protobuf-3.5.1-qt5.9/lib/libprotobuf-lite.a
– Installing: C:/protobuf-3.5.1-qt5.9/lib/libprotobuf.a
– Installing: C:/protobuf-3.5.1-qt5.9/lib/libprotoc.a
– Installing: C:/protobuf-3.5.1-qt5.9/bin/protoc.exe
……