Update protobuf to v3.2.0 for MOBILE_INFERENCE compiling.
Created by: qingqing01
The Mobile client of Baidu needs to use protobuf v3.2. But if using the official protobuf v3.2.0 in https://github.com/google/protobuf in PaddlePaddle, the cross-compiling for android in linux failed. The error is as follows. The https://github.com/google/protobuf/pull/3878 solved this error by adding flags to allow one to omit building libprotoc and protoc binaries, but it merged after v3.5.0. So I maintain protobuf in my own Github and fix the v3.2 by patching the https://github.com/google/protobuf/pull/3878 .
/bin/sh: ./js_embed: cannot execute binary file
make[5]: *** [/home/xx/android-cross-build/build-v8/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc] Error 126
make[5]: *** Deleting file `/home/xx/android-cross-build/build-v8/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc'
/home/xx/android-cross-build/build2/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/js/js_generator.cc:(.text._ZNK6google8protobuf8compiler2js9Generator12GenerateFileERKNS2_16GeneratorOptionsEPNS0_2io7PrinterEPKNS0_14FileDescriptorE+0x46c): undefined reference to `well_known_types_js'
/home/xx/android-cross-build/build2/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/js/js_generator.cc:(.text._ZNK6google8protobuf8compiler2js9Generator12GenerateFileERKNS2_16GeneratorOptionsEPNS0_2io7PrinterEPKNS0_14FileDescriptorE+0x470): undefined reference to `well_known_types_js'
libprotobuf.a(common.cc.o): In function `google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::string const&)':
/home/xx/android-cross-build/build2/third_party/protobuf/src/extern_protobuf/src/google/protobuf/stubs/common.cc:(.text._ZN6google8protobuf8internal17DefaultLogHandlerENS0_8LogLevelEPKciRKSs[_ZN6google8protobuf8internal17DefaultLogHandlerENS0_8LogLevelEPKciRKSs]+0x188): undefined reference to `__android_log_write'
/home/xx/android-cross-build/build2/third_party/protobuf/src/extern_protobuf/src/google/protobuf/stubs/common.cc:(.text._ZN6google8protobuf8internal17DefaultLogHandlerENS0_8LogLevelEPKciRKSs[_ZN6google8protobuf8internal17DefaultLogHandlerENS0_8LogLevelEPKciRKSs]+0x1f4): undefined reference to `__android_log_write'