From 2e63c7e24722b147b594dec0fb9a86ac7e16e59c Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 11 Feb 2011 08:32:07 +0000 Subject: [PATCH] Updating build instructions. Windows build on Windows is no longer supported, only supported method is cross compiling on Linux. --- docs/build_mingw_windows.txt | 37 +++++++++++++++++---- docs/linux_build_scripts/prepare_pokerth.sh | 4 +-- docs/server_setup_howto.txt | 4 +-- 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/docs/build_mingw_windows.txt b/docs/build_mingw_windows.txt index 63f4a319..bb60cac8 100644 --- a/docs/build_mingw_windows.txt +++ b/docs/build_mingw_windows.txt @@ -1,9 +1,32 @@ -Please see -http://sourceforge.net/project/showfiles.php?group_id=166634&package_id=268019 -for some scripts to compile PokerTH using mingw. +PokerTH can be built for Windows using the MinGW cross environment +http://mingw-cross-env.nongnu.org/ -The scripts are also provided in the win32_build_scripts subdirectory, but they -require specific download and uncompression tools to run, which are provided -with the package at the upper link. +You need a Linux system to set this up. -2008 by Lothar May +1. Install all requirements listed there: +http://mingw-cross-env.nongnu.org/#requirements +on your Linux system. + +2. Download the latest release of mingw-cross-env and extract it to /opt/mingw + +3. Within /opt/mingw, run +make +(this takes quite some time) + +4. As the user you would like to use to compile PokerTH for Windows, +add the cross compiler to your path; e.g.: +PATH="/opt/mingw/usr/bin:$PATH" +(in .profile) + +5. Download and extract whichever source version of PokerTH you wish to compile. +http://pokerth.net/download.html + +6. Within the pokerth directory, run +i686-pc-mingw32-qmake DEFINES+=BOOST_THREAD_USE_LIB pokerth.pro +make release + +PokerTH can also be built using MinGW or Visual Studio on Windows, +but neither method is supported, because it takes too much time to keep +several methods updated. + +2011 by Lothar May diff --git a/docs/linux_build_scripts/prepare_pokerth.sh b/docs/linux_build_scripts/prepare_pokerth.sh index a012c96f..d5045f04 100644 --- a/docs/linux_build_scripts/prepare_pokerth.sh +++ b/docs/linux_build_scripts/prepare_pokerth.sh @@ -1,9 +1,9 @@ #!/bin/bash PKTH_GSASL="libgsasl-1.4.4" PKTH_GSASL_FILE="$PKTH_GSASL.tar.gz" -PKTH_QT="qt-everywhere-opensource-src-4.7.0" +PKTH_QT="qt-everywhere-opensource-src-4.7.1" PKTH_QT_FILE="$PKTH_QT.tar.gz" -PKTH_BOOST="boost_1_44_0" +PKTH_BOOST="boost_1_45_0" PKTH_BOOST_FILE="$PKTH_BOOST.tar.bz2" if [ ! -e $PKTH_GSASL_FILE ]; then diff --git a/docs/server_setup_howto.txt b/docs/server_setup_howto.txt index a1064dc4..5046c51b 100644 --- a/docs/server_setup_howto.txt +++ b/docs/server_setup_howto.txt @@ -25,7 +25,7 @@ is run on a vserver with very limited memory. The following packages are required to compile the server: * qmake (Qt development tools) -* boost 1.36, 1.38 recommended +* boost 1.42, latest recommended - boost-thread - boost-filesystem - boost-datetime @@ -286,4 +286,4 @@ The bot always answers to "BotName: " style commands. It ignores private messages. -2007-2009 by Lothar May +2007-2011 by Lothar May