2012-04-12 20:29:53 +00:00
|
|
|
PokerTH can be built for Windows using MXE (the M cross environment)
|
|
|
|
|
http://mxe.cc/
|
2008-04-25 16:30:53 +00:00
|
|
|
|
2011-02-11 08:32:07 +00:00
|
|
|
You need a Linux system to set this up.
|
2008-05-16 16:07:04 +00:00
|
|
|
|
2011-02-11 08:32:07 +00:00
|
|
|
1. Install all requirements listed there:
|
2012-04-12 20:29:53 +00:00
|
|
|
http://mxe.cc/#requirements
|
2011-02-11 08:32:07 +00:00
|
|
|
on your Linux system.
|
|
|
|
|
|
2012-04-12 20:29:53 +00:00
|
|
|
2. Download the latest release of MXE and extract it to /opt/mingw
|
|
|
|
|
(if this does not work, as some packages might be broken, try the latest development release)
|
2011-02-11 08:32:07 +00:00
|
|
|
|
2011-02-21 23:32:09 +00:00
|
|
|
3. Patch OpenSSL dependencies out of Qt build file (OpenSSL license is not compatible with the GPL)
|
2011-12-31 09:29:01 +00:00
|
|
|
For your convenience, a patch file is included to remove at least one OpenSSL dependency. This patch
|
|
|
|
|
is without warranty, you need to make sure for yourself that you do not link to OpenSSL.
|
2011-02-21 23:32:09 +00:00
|
|
|
Within /opt/mingw, run
|
|
|
|
|
patch -p1 < /path/to/pokerth/docs/win32_rm_openssl.diff
|
|
|
|
|
|
|
|
|
|
4. Within /opt/mingw, run
|
2011-02-11 13:24:10 +00:00
|
|
|
make gcc
|
|
|
|
|
make qt
|
|
|
|
|
make boost
|
|
|
|
|
make curl
|
|
|
|
|
make libgsasl
|
|
|
|
|
make sdl_mixer
|
|
|
|
|
make tinyxml
|
2011-06-12 20:25:57 +00:00
|
|
|
make libircclient
|
2011-02-11 08:32:07 +00:00
|
|
|
(this takes quite some time)
|
|
|
|
|
|
2011-02-21 23:32:09 +00:00
|
|
|
5. As the user you would like to use to compile PokerTH for Windows,
|
2011-02-11 08:32:07 +00:00
|
|
|
add the cross compiler to your path; e.g.:
|
|
|
|
|
PATH="/opt/mingw/usr/bin:$PATH"
|
|
|
|
|
(in .profile)
|
2011-02-13 00:23:15 +00:00
|
|
|
Alternatively, run
|
|
|
|
|
export PATH="/opt/mingw/usr/bin:$PATH"
|
2011-02-11 08:32:07 +00:00
|
|
|
|
2011-02-21 23:32:09 +00:00
|
|
|
6. Download and extract whichever source version of PokerTH you wish to compile.
|
2011-02-11 08:32:07 +00:00
|
|
|
http://pokerth.net/download.html
|
|
|
|
|
|
2011-02-21 23:32:09 +00:00
|
|
|
7. Within the pokerth directory, run
|
2011-02-11 08:32:07 +00:00
|
|
|
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
|