Page 1 of 3

Compile pokerTH on Debian 11 doesnt work

Posted: Wed Jan 11, 2023 6:01 pm
by sam289
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 ?

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Thu Jan 12, 2023 6:17 am
by sp0ck

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.

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Thu Jan 12, 2023 3:02 pm
by sam289
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.

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Wed Feb 22, 2023 12:01 am
by sam289
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 ?

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Wed Feb 22, 2023 3:44 am
by wertherman
I am having the same issue with Protoc!

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Wed Feb 22, 2023 9:23 am
by sam289
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 ?

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Wed Feb 22, 2023 6:50 pm
by sp0ck

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.

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Wed Feb 22, 2023 7:41 pm
by sp0ck
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/

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Thu Feb 23, 2023 12:21 am
by wertherman
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

Re: Compile pokerTH on Debian 8 doesnt work

Posted: Thu Feb 23, 2023 2:12 pm
by sam289
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.