BuildingOnWindows.wiki
changeset 187 fc67aa71e6ed
parent 186 bb25c6b754dc
child 188 5608902c4aee
equal deleted inserted replaced
186:bb25c6b754dc 187:fc67aa71e6ed
     1 #summary Instructions for building Hedgewars on Windows
     1 #summary Instructions for building Hedgewars on Windows
     2 #labels Phase-Implementation,Phase-Design,Phase-Support
     2 #labels Phase-Implementation,Phase-Design,Phase-Support
     3 
     3 
     4 = Prerequisites =
     4 = Things to download =
       
     5 First of all, please use this guide over here ( http://windows.microsoft.com/en-US/windows7/find-out-32-or-64-bit) to see whether your OS is 32 or 64 bit. You will need it while doing the setup.
     5 
     6 
     6  # CMake - http://cmake.org/cmake/resources/software.html
     7  # CMake - download the *Windows (Win32 Installer)* 
     7  # FreePascal - http://www.freepascal.org/down/i386/win32-ftp.freepascal.org.var
     8   * Link: http://cmake.org/cmake/resources/software.html
     8  # Qt SDK - http://qt.nokia.com/downloads/sdk-windows-cpp-offline
     9  # FreePascal - download the *Download as installer* - 
     9  # TortoiseHg ( or command-line mercurial )
    10   * Link: http://www.freepascal.org/down/i386/win32-ftp.freepascal.org.var
    10  # Source code of Hedgewars
    11  # Qt SDK 
    11  # Windows building archive - it contains everything you need to compile Hedgewars on Windows.
    12   * Link: http://qt.nokia.com/downloads/sdk-windows-cpp-offline
       
    13  # Mercurial - pick one (TortoiseHg has a GUI and is more user-friendly)
       
    14   # TortoiseHg - Chose one based on your OS version
       
    15    * Link: http://tortoisehg.bitbucket.org/download/index.html
       
    16   # Command-line mercurial -
       
    17    * Link (OS 32 bits): http://mercurial.selenic.com/release/windows/Mercurial-2.0.2.exe
       
    18    * Link (OS 64 bits): http://mercurial.selenic.com/release/windows/Mercurial-2.0.2-x64.exe
       
    19  # _Windows building archive_ - it contains everything you need to compile Hedgewars on Windows.
       
    20    * Link: <todo>
    12 
    21 
    13 = Setup =
    22 = Setup =
    14  # Install CMake, but please *ensure* you select "Add CMake to the system PATH for all users", so you can run CMake directly from command line.
    23  # Install CMake, but please *ensure* you select "Add CMake to the system PATH for all users", so you can run CMake directly from command line.
    15  # Install FreePascal.
    24  # Install FreePascal.
    16  # Install Qt SDK, with the "Custom" option:
    25  # Install Qt SDK, with the "Custom" option:
    17   * Check "Qt SDK/Miscellaneous/MinGW <any version>"!
    26   * Check "Qt SDK/Miscellaneous/MinGW <any version>"
    18   * Check "Qt SDK/Development Tools/Desktop Qt/Qt <your version>/Desktop Qt <your version> - Mingw (it's the first checkbox)
    27   * Check "Qt SDK/Development Tools/Desktop Qt/Qt <your version>/Desktop Qt <your version> - Mingw (it's the first checkbox)
    19   * Uncheck "Qt SDK/Development Tools/Symbian Toolchains"
    28   * Uncheck "Qt SDK/Development Tools/Symbian Toolchains"
    20   * Uncheck "Qt SDK/Development Tools/Harmattan"
    29   * Uncheck "Qt SDK/Development Tools/Harmattan"
    21  # Install TortoiseHg / mercurial
    30  # Install TortoiseHg / mercurial
    22  # Restart the computer
    31  # Restart the computer
    23  # Download the Hedgewars source, using mercurial:
    32  # Download the Hedgewars source:
    24   # Using TortoiseHg
    33   # Using TortoiseHg
    25    * Right-click in any folder on your computer
    34    * Right-click in any folder on your computer
    26    * Select Tortoise HG -> Clone.
    35    * Select Tortoise HG -> Clone.
    27    * In the _Source_ textbox enter: https://hedgewars.googlecode.com/hg/
    36    * In the _Source_ textbox enter: https://hedgewars.googlecode.com/hg/
    28    * Press clone
    37    * Press clone
    29   # Command-line mercurial
    38   # Using Command-line mercurial
    30    * If you have Windows 7 skip the next 3 steps, and instead, SHIFT + Right click in the folder where you want to download the source.
    39    * If you have Windows 7 skip the next 3 steps, and instead, SHIFT + Right click in the folder where you want to download the source.
    31    * Start _Run..._ ( WINDOWS Key + R , or Start -> Run... )
    40    * Start _Run..._ ( WINDOWS Key + R , or Start -> Run... )
    32    * Enter:
    41    * Enter:
    33 {{{
    42 {{{
    34 cmd.exe
    43 cmd.exe
    36    * Navigate to where you want to download the source
    45    * Navigate to where you want to download the source
    37    * Type and execute ( The initial clone of the repository will take a while, is about 550MiB or so... ):
    46    * Type and execute ( The initial clone of the repository will take a while, is about 550MiB or so... ):
    38 {{{
    47 {{{
    39 hg clone https://hedgewars.googlecode.com/hg/ trunk
    48 hg clone https://hedgewars.googlecode.com/hg/ trunk
    40 }}}
    49 }}}
    41  # Extract the Windows Building Archive to the hedgewars source folder, in the *bin* directory
    50  # Extract the _Windows Building Archive_ to the hedgewars source folder, in the *bin* directory
    42  # Go to the "bin/build_windows.bat" file, and modify the following:
    51  # Go to the "bin/build_windows.bat" file, and modify the following:
    43   * SET PASCAL=<put the path to the directory that contains fpc's executable (fpc.exe)> (for example: c:\FPC\2.4.4\bin\i386-win32\)
    52   * SET PASCAL=<put the path to the directory that contains fpc's executable (fpc.exe)> (for example: c:\FPC\2.4.4\bin\i386-win32\)
    44   * SET SET QTDIR=<path to the QtSDK\Desktop\Qt\<your version>> (for example: c:\QtSDK\Desktop\Qt\4.7.3\)
    53   * SET SET QTDIR=<path to the QtSDK\Desktop\Qt\<your version>> (for example: c:\QtSDK\Desktop\Qt\4.7.3\)
    45  # You can now build hedgewars, by running the *bin/build_windows.bat* command.
    54  # You can now build hedgewars, by running the *bin/build_windows.bat* command.
    46 
    55