BuildingOnWindows.wiki
author ovibalea@gmail.com
Fri, 13 Jan 2012 20:30:06 +0000
changeset 191 595bacc9782f
parent 190 7199dc0aca2f
child 192 9a34387a4262
permissions -rw-r--r--
Edited wiki page BuildingOnWindows through web user interface.
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
187
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
     4
= Things to download =
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
     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.
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
     6
187
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
     7
 # CMake - download the *Windows (Win32 Installer)* 
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
     8
  * Link: http://cmake.org/cmake/resources/software.html
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
     9
 # FreePascal - download the *Download as installer* - 
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    10
  * Link: http://www.freepascal.org/down/i386/win32-ftp.freepascal.org.var
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    11
 # Qt SDK 
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    12
  * Link: http://qt.nokia.com/downloads/sdk-windows-cpp-offline
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    13
 # Mercurial - pick one (TortoiseHg has a GUI and is more user-friendly)
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    14
  # TortoiseHg - Chose one based on your OS version
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    15
   * Link: http://tortoisehg.bitbucket.org/download/index.html
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    16
  # Command-line mercurial -
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    17
   * Link (OS 32 bits): http://mercurial.selenic.com/release/windows/Mercurial-2.0.2.exe
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    18
   * Link (OS 64 bits): http://mercurial.selenic.com/release/windows/Mercurial-2.0.2-x64.exe
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    19
 # _Windows building archive_ - it contains everything you need to compile Hedgewars on Windows.
188
5608902c4aee Added the windows building archive link
ovibalea@gmail.com
parents: 187
diff changeset
    20
   * Link: http://hedgewars.org/download/hedgewars-win32-buildscripts.zip
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    21
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    22
= Setup =
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    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.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    24
 # Install FreePascal.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    25
 # Install Qt SDK, with the "Custom" option:
187
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    26
  * Check "Qt SDK/Miscellaneous/MinGW <any version>"
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    27
  * 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
    28
  * Uncheck "Qt SDK/Development Tools/Symbian Toolchains"
191
595bacc9782f Edited wiki page BuildingOnWindows through web user interface.
ovibalea@gmail.com
parents: 190
diff changeset
    29
  * Uncheck "Qt SDK/Development Tools/Maemo Toolchain" ( if it exists )
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    30
  * Uncheck "Qt SDK/Development Tools/Harmattan"
189
d61c1a06f636 Remove some other unneeded QT Components
ovibalea@gmail.com
parents: 188
diff changeset
    31
  * Uncheck "Qt SDK/Development Tools/Simulator"
d61c1a06f636 Remove some other unneeded QT Components
ovibalea@gmail.com
parents: 188
diff changeset
    32
  * Uncheck "Documentation"
190
7199dc0aca2f Add info about possible error message boxes
ovibalea@gmail.com
parents: 189
diff changeset
    33
  * !!If there will be any error message boxes, just press ignore until it won't show anymore :)
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    34
 # Install TortoiseHg / mercurial
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    35
 # Restart the computer
187
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    36
 # Download the Hedgewars source:
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    37
  # Using TortoiseHg
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    38
   * Right-click in any folder on your computer
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    39
   * Select Tortoise HG -> Clone.
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    40
   * In the _Source_ textbox enter: https://hedgewars.googlecode.com/hg/
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    41
   * Press clone
187
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    42
  # Using Command-line mercurial
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    43
   * 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
    44
   * Start _Run..._ ( WINDOWS Key + R , or Start -> Run... )
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    45
   * Enter:
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
cmd.exe
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    48
}}} 
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    49
   * Navigate to where you want to download the source
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    50
   * 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
    51
{{{
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    52
hg clone https://hedgewars.googlecode.com/hg/ trunk
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    53
}}}
187
fc67aa71e6ed Make the tutorial a bit more user friendly :P
ovibalea@gmail.com
parents: 186
diff changeset
    54
 # Extract the _Windows Building Archive_ to the hedgewars source folder, in the *bin* directory
185
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    55
 # Go to the "bin/build_windows.bat" file, and modify the following:
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    56
  * 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
    57
  * 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
    58
 # 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
    59
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    60
= Building process =
859277aa45f2 Add windows building wiki page.
ovibalea@gmail.com
parents:
diff changeset
    61
Run the *bin/build_windows.bat* file each time you want to build the source.