Clone
4
Building PokerTH for Linux.md
sco edited this page 2022-01-10 22:29:51 +01:00

It should compile with:

Remark: It's not been fully tested with GCC 7.x, although it should work. It's also not tested with GCC 8.x, but it seems to work.

Requirements

The following DEVELOPMENT packages are required to compile the server. Runtime libraries are not enough to compile. Development packages are mandatory (ie: libXXXX_dev)

Compilation

Server:

$ qmake QMAKE_CFLAGS_ISYSTEM="" -spec linux-g++ pokerth.pro
$ make

Binaries are left in (./bin/pokerth_server and ./chatcleaner)

Client:

$ qmake CONFIG+="client" QMAKE_CFLAGS_ISYSTEM="" -spec linux-g++ pokerth.pro
$ make

Binary is left in (./pokerth)

Options (for qmake)

  • if development libraries are not in /usr (default) add: PREFIX="/path_to_libraries" (ie: PREFIX="/usr/local")
  • if an specific compiler has to be set: QMAKE_CC="C compiler" QMAKE_CXX="C++ compiler" (ie: QMAKE_CC="/usr/bin/gcc-5" QMAKE_CXX="/usr/bin/g++-5")
  • if an specific mode has to be set: CONFIG+="mode" (ie: CONFIG+="client c++11")

KNOWN BUGS