BuildingOnWindows.wiki
author ovibalea@gmail.com
Fri, 13 Jan 2012 18:07:48 +0000
changeset 186 bb25c6b754dc
parent 185 859277aa45f2
child 187 fc67aa71e6ed
permissions -rw-r--r--
Fix the free pascal link
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     1
#summary Instructions for building Hedgewars on Windows
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     2
#labels Phase-Implementation,Phase-Design,Phase-Support
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     3
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     4
= Prerequisites =
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     5
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     6
 # CMake - http://cmake.org/cmake/resources/software.html
186
bb25c6b754dc Fix the free pascal link
ovibalea@gmail.com
parents: 185
diff changeset
     7
 # FreePascal - http://www.freepascal.org/down/i386/win32-ftp.freepascal.org.var
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     8
 # Qt SDK - http://qt.nokia.com/downloads/sdk-windows-cpp-offline
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     9
 # TortoiseHg ( or command-line mercurial )
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    10
 # Source code of Hedgewars
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    11
 # Windows building archive - it contains everything you need to compile Hedgewars on Windows.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    12
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    13
= Setup =
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    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.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    15
 # Install FreePascal.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    16
 # Install Qt SDK, with the "Custom" option:
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    17
  * Check "Qt SDK/Miscellaneous/MinGW <any version>"!
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    18
  * Check "Qt SDK/Development Tools/Desktop Qt/Qt <your version>/Desktop Qt <your version> - Mingw (it's the first checkbox)
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    19
  * Uncheck "Qt SDK/Development Tools/Symbian Toolchains"
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    20
  * Uncheck "Qt SDK/Development Tools/Harmattan"
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    21
 # Install TortoiseHg / mercurial
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    22
 # Restart the computer
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    23
 # Download the Hedgewars source, using mercurial:
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    24
  # Using TortoiseHg
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    25
   * Right-click in any folder on your computer
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    26
   * Select Tortoise HG -> Clone.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    27
   * In the _Source_ textbox enter: https://hedgewars.googlecode.com/hg/
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    28
   * Press clone
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    29
  # Command-line mercurial
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    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.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    31
   * Start _Run..._ ( WINDOWS Key + R , or Start -> Run... )
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    32
   * Enter:
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    33
{{{
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    34
cmd.exe
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    35
}}} 
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    36
   * Navigate to where you want to download the source
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    37
   * Type and execute ( The initial clone of the repository will take a while, is about 550MiB or so... ):
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    38
{{{
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    39
hg clone https://hedgewars.googlecode.com/hg/ trunk
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    40
}}}
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    41
 # Extract the Windows Building Archive to the hedgewars source folder, in the *bin* directory
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    42
 # Go to the "bin/build_windows.bat" file, and modify the following:
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    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\)
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    44
  * SET SET QTDIR=<path to the QtSDK\Desktop\Qt\<your version>> (for example: c:\QtSDK\Desktop\Qt\4.7.3\)
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    45
 # You can now build hedgewars, by running the *bin/build_windows.bat* command.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    46
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    47
= Building process =
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    48
Run the *bin/build_windows.bat* file each time you want to build the source.