error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena’

The first step is to download protobuf

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

After entering the protobuf-3.0.0 folder, find autogen.sh to edit:

Comment out 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

The second step is to download gmock

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

 Place the downloaded gmock-1.7.0.zip in the protobuf-3.0.0 folder

implement

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

Guess you like

Origin blog.csdn.net/qq_45577269/article/details/132590351