Compile pokerTH on Debian 11 doesnt work

Have Problems with PokerTH Installation? Here you will find Help.
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

Hello
I try to compile pokerTH on Debian 8 and stuck at
libgcrypt library.

apt-get install libgcrypt... --> doesn't work

Download libgcrypt and compiling cause error
libgpg-error missing

Then download libgpg-error ... compiling successfull.

Try again compiling libgcrypt with parameter where libgpg-error is.
--> doesn't work cant find lib

Anybody here has knowledge to solve this problem ?
User avatar
sp0ck
Posts: 238
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg
Been thanked: 14 times

Code: Select all

apt build-dep pokerth

Code: Select all

apt install libmysql++-dev qt5-default
... these commands do the trick on Ubuntu 18.04 - the package names for Debian might be slightly different in the second command.

Please also checkout Github Wiki.
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

Hi, thank you. :-)

The used HDD crashed now and I have to install Debian on other HDD, USB Stick and then I try your recommendations. Debian Gnome crashed, freezed.
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

Hi

Now I installed debian 11.
I installed pokerTH application ---> works fine

apt build-dep pokerth ---> works
apt install libmysql++-dev ---> works
qt5-default is not available.
I installed qt5-make only.
I followed the instructons in INSTALL file.
"qmake pokerth.pro" ---> works
"make" ---> error. See in picture.
Too old version of protoc ? or protobuf ?
What is the best way to fix that error ?
Attachments
Screenshot_from_2023-02-22_00-36-41.png
Screenshot_from_2023-02-22_00-36-41.png (132.01 KiB) Viewed 3301 times
Last edited by sam289 on Wed Feb 22, 2023 11:18 am, edited 1 time in total.
wertherman
Posts: 2
Joined: Wed Feb 22, 2023 3:42 am

I am having the same issue with Protoc!
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

This fixed it:
protoc pokerth.proto --cpp_out=./src/third_party/protobuf/
protoc chatcleaner.proto --cpp_out=./src/third_party/protobuf/
but now next problems: in the picture
It seems I have to compile with older C++ version ?
Attachments
errors.jpg
errors.jpg (139.72 KiB) Viewed 3284 times
User avatar
sp0ck
Posts: 238
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg
Been thanked: 14 times

Code: Select all

if an specific mode has to be set: CONFIG+="mode" (ie: CONFIG+="client c++11")
Please try the CONFIG+="c++11" mode.
User avatar
sp0ck
Posts: 238
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg
Been thanked: 14 times

wertherman wrote: Wed Feb 22, 2023 3:44 am I am having the same issue with Protoc!
Use Sam's solution.

Code: Select all

protoc pokerth.proto --cpp_out=./src/third_party/protobuf/
protoc chatcleaner.proto --cpp_out=./src/third_party/protobuf/
wertherman
Posts: 2
Joined: Wed Feb 22, 2023 3:42 am

sam289 wrote: Wed Feb 22, 2023 9:23 am This fixed it:
protoc pokerth.proto --cpp_out=./src/third_party/protobuf/
protoc chatcleaner.proto --cpp_out=./src/third_party/protobuf/
but now next problems: in the picture
It seems I have to compile with older C++ version ?
Stuck here as well now... I don't know what you mean by the config+="mode" or if that is related
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

When compiler complains about source code then I guess
it has something to do with newer C++ Compiler doesnt understand old code.

I tried

Code: Select all

qmake CONFIG+="client c++11" pokerth.pro

Code: Select all

make
but make produces same errors.

I tried to contact the packages maintainer of Debian pokerth package.
This works very well on Debian 11.
He must know how to compile the source.
Post Reply