Hosting PokerTH server with Docker

Have Problems with PokerTH Installation? Here you will find Help.
Post Reply
fifty
Posts: 1
Joined: Sat Jan 18, 2025 12:42 am

I've been trying to deploy the PokerTH server using the Dockerfile provided in the github to no avail, I've been running into different issues.

Using the straight Dockerfile I get:

Code: Select all

root::/opt/pokerth# /opt/pokerth/pokerth
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Does anyone have advice on how to get it to deploy?
User avatar
sp0ck
Posts: 320
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg
Been thanked: 31 times

Hi fifty,

you compiled the client instead of the server. The client needs a running xserver to connect to - with xcb installed.

If you want to compile the server, change the following entry in the Dockerfile:

Code: Select all

qmake CONFIG+="client c++11" QMAKE_CFLAGS_ISYSTEM="" -spec linux-g++ pokerth.pro && make
to

Code: Select all

qmake CONFIG+="official_server c++11" QMAKE_CFLAGS_ISYSTEM="" -spec linux-g++ pokerth.pro && make
You might also take a look at the wiki: https://github.com/pokerth/pokerth/wiki ... -for-Linux

EDIT: I updated the Dockerfile with a comment for server compilation.
Post Reply