エラー: 「google::protobuf::internal::ArenaStringPtr::GetNoArena」の呼び出しに一致する関数がありません

最初のステップは、protobuf をダウンロードすることです

https://github.com/google/protobuf/archive/v3.0.0.zip

protobuf-3.0.0 フォルダーに入ったら、autogen.sh を見つけて編集します。

autogen.sh をコメントアウトします。

#  echo "Google Mock not present.  Fetching gmock-1.7.0 from the web..."
#  curl $curlopts -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip

2番目のステップは、gmockをダウンロードすることです

http://pkgs.fedoraproject.org/repo/pkgs/gmock/gmock-1.7.0.zip/073b984d8798ea1594f5e44d85b20d66/gmock-1.7.0.zip

 ダウンロードした gmock-1.7.0.zip を protobuf-3.0.0 フォルダーに配置します。

埋め込む

./autogen.sh 
./configure
make
make check
sudo make install

おすすめ

転載: blog.csdn.net/qq_45577269/article/details/132590351