Files
pokerth/docs/build_vc_windows.txt
T

62 lines
2.4 KiB
Plaintext
Raw Normal View History

2007-12-09 22:27:10 +00:00
These are the instructions to compile PokerTH on Windows using MSVC 2008 Express Edition.
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
1. Get and install MSVC 2008 Express Edition (English version is strongly recommended).
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
2. Get and install a new Microsoft Platform SDK
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
This step can be left out if you use MSVC 2008 Professional instead of the Express Edition.
[about 1 GB download]
2007-06-07 16:25:47 +00:00
http://www.microsoft.com/downloads/details.aspx?familyid=FF6467E6-5BBA-4BF5-B562-9199BE864D29&displaylang=en
2007-12-09 22:27:10 +00:00
3. Get and install the DirectX SDK
This step can be left out if you use MSVC 2008 Professional instead of the Express Edition.
http://www.microsoft.com/downloads/details.aspx?familyid=4B78A58A-E672-4B83-A28E-72B5E93BD60A&displaylang=en
2007-12-12 16:15:59 +00:00
4. Get open source Qt 4.3.3 [zip file] from Trolltech.
2007-12-09 22:27:10 +00:00
It supports MSVC 2008, no patch is needed.
http://trolltech.com/developer/downloads/qt/windows
2007-06-07 16:25:47 +00:00
2007-12-12 16:15:59 +00:00
Set the QTDIR environment variable to your location of qt.
Set the QMAKESPEC environment to win32-msvc2005
(not 2008)
Compile Qt.
Add the Qt bin directory to your PATH environment variable.
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
5. Get boost 1.34.1 and bjam (latest version) and compile boost
See http://www.boost.org/more/getting_started/windows.html
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
6. Get and compile(!) (do not use precompiled version) OpenSSL
The OpenSSL build script requires perl, which can be downloaded for example here:
http://www.activestate.com/Products/activeperl/
Also, an assembler is recommended for this step, which comes for example with the WDK:
http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx
Basically you have to run (within the OpenSSL directory):
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
perl Configure VC-WIN32 no-shared
ms\do_masm
nmake -f ms\nt.mak
2007-06-07 16:25:47 +00:00
2007-12-12 16:15:59 +00:00
To build OpenSSL without assembler, consult the documentation.
2007-12-09 22:27:10 +00:00
After compiling OpenSSL, move the output from inc32 and out32 to include and lib.
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
7. Get and compile(!) (do not use precompiled version) SDL and SDL_mixer.
2007-12-12 16:15:59 +00:00
Use the project files in VisualC.zip of the source package.
Build both debug and release versions.
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
8. Run
qmake -tp vc -recursive pokerth.pro
2007-12-09 22:27:10 +00:00
in the pokerth directory. This will create a solution and project files.
Open the solution.
9. Set the "Program Database File Name" in the Properties section C/C++
for each project to a unique name.
2007-06-07 16:25:47 +00:00
2007-12-09 22:27:10 +00:00
10. Edit the library directories and the linker dependencies of the Debug
configuration, make them point to debug locations.
2007-12-09 22:27:10 +00:00
11. Rebuild the Solution.
2007 by Lothar May