Requirements
============

To compile PokerTH you need following libs: 

Linux (outdated! ... update follows):
- Qt version >= 6.7.0, 6.8.x recommended  --> http://qtsoftware.com/
- zlib version >= 1.2.3  --> http://www.zlib.net/
- libcurl version >= 7.16  --> http://curl.haxx.se/
- libgcrypt (e.g. version 1.4.6)  --> http://www.gnu.org/software/libgcrypt/
- libgsasl version >= 1.4 --> http://www.gnu.org/software/gsasl/
- libboost_thread, libboost_filesystem, libboost_datetime, libboost_program_options,
  libboost_iostreams, libboost_asio, libboost_regex, libboost_random, libboost_uuid
  (version >= 1.83, latest always recommended)  --> http://www.boost.org/
- libSDL_mixer, libSDL  --> http://www.libsdl.org/
- libSQLite3 --> http://sqlite.org/
- libtinyxml > 2.0 --> http://www.sourceforge.net/projects/tinyxml
- protoc >= 2.3.0 (during build), libprotobuf >= 2.3.0 -> https://github.com/google/protobuf
- For the server: libircclient 1.3 --> http://www.sourceforge.net/projects/libircclient/

Windows (outdated):
see docs/build_mingw_windows.txt


Basic Installation
==================

Linux:

  1. Type "cd path/to/the/sources". Then type:

    `cmake -DCMAKE_BUILD_TYPE:STRING=Release -S. -B./build -G Ninja` ... configures the build

  2. Type `cmake --build ./build --config Release --target all --` to compile all targets.
      ... you can specify the following binary build targets instead of `all`:
      `pokerth_client`, `pokerth_qml-client` (not yet finished!), `pokerth_dedicated_server`, `pokerth_official_server`, `pokerth_chatcleaner`

  3. Become root (typing "su" or "sudo -s") and type 
      `cmake --install ./build ` to install --component <target you build for(e.g. pokerth_client)>.
