Topic-icon Trying to build server and get " undefined reference to `google::protobuf..."

More
12 Apr 2020 00:02 #45962 by tfountain
tfountain created the topic: Trying to build server and get " undefined reference to `google::protobuf..
I am trying to build a server on Ubuntu 18.04.

I've installed all the google protocol buffer packages but still can't get it to successfully build.

There are multiple of these, but here is an example error:
chatcleaner.pb.cc:(.text+0x1981): undefined reference to `google::protobuf::internal::InitSCCImpl(google::protobuf::internal::SCCInfoBase*)'
lib/libpokerth_protocol.a(chatcleaner.pb.o): In function `ChatCleanerMessage* google::protobuf::Arena::CreateMaybeMessage<ChatCleanerMessage>(google::protobuf::Arena*)':
chatcleaner.pb.cc:(.text+0x19c5): undefined reference to `google::protobuf::internal::ArenaImpl::AllocateAlignedAndAddCleanup(unsigned long, void (*)(void*))'

I've done "apt install" for the following:

libprotobuf-dev
protobuf-compiler

and protobuf-all based on this thread: https://askubuntu.com/questions/1072683/how-can-i-install-protoc-on-ubuntu-16-04

Any ideas?

Please Log in or Create an account to join the conversation.

More
12 Apr 2020 14:30 - 12 Apr 2020 16:03 #45978 by sp0ck
sp0ck replied.
Hi,

please try this:

sudo apt-get build-dep pokerth

Source have to be enabled in apt-repository

Good luck.

Please Log in or Create an account to join the conversation.

Champions of

PokerTH - live

The PokerTH spectator tool.

Member Login

 advert
NOTE! This site uses cookies and similar technologies.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information

We use cookies to personalize content and ads to offer features for social media and analyze the number of hits on our website. We also provide information about your use of our website to our partner for social media, advertising and analysis on.
http://www.google.com/intl/de/policies/privacy/partners/