Topic-icon Error compiling pokerth on Linux

More
28 Mar 2015 14:00 - 28 Mar 2015 15:22 #26007 by supernoob
supernoob created the topic: Error compiling pokerth on Linux
Hi,

today i wanted to compile pokerth on Linux/Opensuse.
I read https://github.com/pokerth/pokerth/blob/master/INSTALL . It gives me an error after i typed "make" in terminal. It printed a lot of errors, starting with
make -f Makefile.pokerth_protocol 
make[1]: Entering directory `/home/felix/Documents/8progr/1c/pth/pokerth-master'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DENABLE_IPV6 -DQT_NO_DEBUG -I/usr/share/qt4/mkspecs/default -I. -I/usr/include -I. -Isrc -I/include -Imocs -o obj/pokerth.pb.o src/third_party/protobuf/pokerth.pb.cc
In file included from src/third_party/protobuf/pokerth.pb.cc:5:0:
src/third_party/protobuf/pokerth.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
 #error This file was generated by an older version of protoc which is
  ^
src/third_party/protobuf/pokerth.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
 #error incompatible with your Protocol Buffer headers.  Please
  ^
src/third_party/protobuf/pokerth.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
 #error regenerate this file with a newer version of protoc.
  ^

i installed protobuf prior to typing make (if i am not mistaken)
I am not a Linux expert.
Is there a way how i can fix this?
thx for help

everything is a question of organisation.
The following user(s) said Thank You: Ghost__

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

More
29 Mar 2015 01:58 #26033 by supernoob
supernoob replied.
Hello, i guess it was somehow solved - by installing a lower version of google/protobuf

everything is a question of organisation.
The following user(s) said Thank You: Ghost__

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

More
30 Mar 2015 15:20 - 30 Mar 2015 18:35 #26062 by supernoob
supernoob replied.
Ok, now i got the next problem:
I installed pokerth using the following commands:
git clone https://github.com/pokerth/pokerth.git
cd pokerth
qmake pokerth.pro
make
sudo make install
and i did not see any errors. I opened pokerth from konsole, and after clicking "2 Internet Game" and entering username and password, the progress bar stayed at "Starting Session... (80 %)" for a long time. Then an error message appears "The connection to the server was lost", and in the konsole i found the following error messages:
[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "PokerTHMessage" because it is missing required fields: (cannot determine missing fields for lite message)
Session 4294967295 - Connection closed: asio.misc:2
Session 4294967295 - unhandled exception in HandleRead: src/net/common/clientthread.cpp (481): Error 16

I have no idea how to fix this error and i'd like to be able to connect to the pokerth server. Any Help is appreciated, thx in advance

EDIT: i have OpenSUSE (linux) and i have protoc version 2.5.0

EDIT 2: i just noticed that 4294967295 (the session number) is the highest possible unsigned 32-bit number - what does it mean?

everything is a question of organisation.
The following user(s) said Thank You: Ghost__

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

More
30 Mar 2015 18:35 - 30 Mar 2015 18:40 #26064 by jamine*
jamine* replied.
I did a build for a Player receiving similar message and it was the players interface was out off date and had to d/l a fix then apply it. After that it worked.

A search here discover this link but it was not solved.
http://www.pokerth.net/community/14-bugs/12145-libprotobuf-error.html

Wish I could be more helpful.

"Let me get lucky, just this ONE TIME"!, use it wisely.
The following user(s) said Thank You: Ghost__

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

More
30 Mar 2015 22:03 - 30 Mar 2015 22:11 #26071 by Gary_Ch
Gary_Ch replied.

4294967295 (the session number) is the highest possible unsigned 32-bit number

4294967295 aka 0xFFFFFFFF is -1 too -- common error code / "invalid value"... INVALID_HANDLE_VALUE on Windows, for example.
I have not tried to compile PokerTH. So, it's just idea. Maybe, stupid idea :)
The following user(s) said Thank You: Ghost__

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

More
31 Mar 2015 03:50 #26078 by supernoob
supernoob replied.
OK i guess i partially solved it.

I knew the problem had to do with protobuf. After reading a bit about it, i came across this file: https://github.com/pokerth/pokerth/blob/master/pokerth.proto
the newest commit reads "[...] (currently untested)" - so it looked like a potential source for the error.
I decided to clone the source code from the branch "stable" instead of master.
(after applying a fix manually (libircclient.h)) it compiled without errors.
And i even can connect to the game server again.
Now i realize that i should have tried the stable version earlier - sorry guys.
to sum it up: a possible explanation would be, that there is an error in pokerth.proto

@Gary_Ch: thanks for pointing that out to me - i use -1 as error code all the time by myself, however, this time i did not thought about it as -1
@jamine* thx for the link and comment.

@ pokerth developers: Sorry, i was too lazy to check what exactly (if anything) in pokerth.proto is wrong, but maybe you should have a look and see if there is something wrong (or if i am wrong :) ) - you can ask me to compile the updated code to see if it works
@all: should i make a new thread or report this as a bug somewhere?

everything is a question of organisation.
The following user(s) said Thank You: Ghost__, sp0ck

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/