BuildingOnWindows.wiki
changeset 212 d47acc7f7185
parent 195 a4eb962ff8a3
child 266 76e82a7897f1
equal deleted inserted replaced
211:2aebd9de1a5e 212:d47acc7f7185
    15    * Link: http://tortoisehg.bitbucket.org/download/index.html
    15    * Link: http://tortoisehg.bitbucket.org/download/index.html
    16   # Command-line mercurial
    16   # Command-line mercurial
    17    * Link (OS 32 bits): http://mercurial.selenic.com/release/windows/Mercurial-2.0.2.exe
    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
    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.
    19  # _Windows building archive_ - it contains everything you need to compile Hedgewars on Windows.
    20    * Link: http://hedgewars.org/download/hedgewars-win32-buildscripts.zip
    20    * Link: http://hedgewars.googlecode.com/files/hedgewars-win32-buildscripts.zip
    21 
    21 
    22 = Setup =
    22 = Setup =
    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.
    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.
    24  # Install FreePascal.
    24  # Install FreePascal.
    25  # Install Qt SDK, with the "Custom" option:
    25  # Install Qt SDK, with the "Custom" option:
    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\)
    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\)
    53   * 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\)
    54  # You can now build hedgewars, by running the *tools/build_windows.bat* command.
    54  # You can now build hedgewars, by running the *tools/build_windows.bat* command.
    55  # After building it, you can run it from the Desktop - using the *Hedgewars* shortcut.
    55  # After building it, you can run it from the Desktop - using the *Hedgewars* shortcut.
    56 
    56 
       
    57 = Additional Setup for Visual Studio 2010 =
       
    58 To build Hedgewars using Visual Studio 2010, you will need to update a few SDL files using this zip file (http://hedgewars.googlecode.com/files/hedgewars-VS2010-additional.zip). Just download and overwrite it into your currect hedgewars project folder. This is mainly an update to SDL_mixer (updating it to version 1.2.12), and changing the SDLconfig.h file to work with the sperate platform headers instead of the current one.
       
    59 
       
    60 Next you will need to change some project settings. If you don't have the SDL directives set correctly in CMake then your project files will be incorect (they still may be incorrect even if you did get them set right). You need to change the following Project Settings for the 'hedgewars' project.
       
    61  # Make sure that under C/C++ => Additional Include Directories you have \hedgewars\misc\winutils\include\.
       
    62  # Change the Linker => Input => Additional Dependencies option to have the following at the end:
       
    63   * \hedgewars\misc\winutils\lib\SDL.lib
       
    64   * \hedgewars\misc\winutils\lib\SDLmain.lib
       
    65   * \hedgewars\misc\winutils\lib\SDL_mixer.lib
       
    66  # Adjust the Output Directory under the General settings to be just \hedgewars\bin\.
       
    67 
    57 = Building process =
    68 = Building process =
    58 Run the *tools/build_windows.bat* file each time you want to build the source. Please note that there might some incompatibilities with the environment paths of this script in case that you are running MinSYS or Cygwin: we are quite confident that if you use such software you're quite able to correctly set up any paths.
    69 Run the *tools/build_windows.bat* file each time you want to build the source. Please note that there might some incompatibilities with the environment paths of this script in case that you are running MinSYS or Cygwin: we are quite confident that if you use such software you're quite able to correctly set up any paths.