BuildingOnWindows.wiki
changeset 757 0ac49c33cf3e
parent 652 0f7445a72880
child 774 86e81308d67d
equal deleted inserted replaced
756:03c80807b053 757:0ac49c33cf3e
     1 #summary Instructions for building Hedgewars on Windows (Currently outdated)
     1 #summary Instructions for building Hedgewars on Windows (Currently outdated)
     2 #labels Phase-Implementation,Phase-Design,Phase-Support
     2 #labels Phase-Implementation,Phase-Design,Phase-Support
     3 
     3 
     4 = Warning! =
     4 = Building on Windos =
       
     5 == Warning! ==
     5 These build instructions are very outdated. Try to build under [BuildingOnLinux GNU/Linux], if you can.
     6 These build instructions are very outdated. Try to build under [BuildingOnLinux GNU/Linux], if you can.
     6 
     7 
     7 If you have managed to get a successful Windows build for a recent Hedgewars build, please get in touch with us (Try the forums, for example: http://hedgewars.org/forum)
     8 If you have managed to get a successful Windows build for a recent Hedgewars build, please get in touch with us (Try the forums, for example: http://hedgewars.org/forum)
     8 
     9 
     9 = Things to download =
    10 == Things to download ==
    10 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.
    11 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.
    11 
    12 
    12  # CMake - download the *Windows (Win32 Installer)* 
    13  # CMake - download the *Windows (Win32 Installer)* 
    13   * Link: http://cmake.org/cmake/resources/software.html
    14   * Link: http://cmake.org/cmake/resources/software.html
    14  # FreePascal - download the *Download as installer* 
    15  # FreePascal - download the *Download as installer* 
    21   # Command-line mercurial
    22   # Command-line mercurial
    22    * Link: http://mercurial.selenic.com/downloads/
    23    * Link: http://mercurial.selenic.com/downloads/
    23  # _Windows building archive_ - it contains everything you need to compile Hedgewars on Windows.
    24  # _Windows building archive_ - it contains everything you need to compile Hedgewars on Windows.
    24    * Link: http://hedgewars.googlecode.com/files/hedgewars-win32-buildscripts.zip
    25    * Link: http://hedgewars.googlecode.com/files/hedgewars-win32-buildscripts.zip
    25 
    26 
    26 = Setup =
    27 == Setup ==
    27  # 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.
    28  # 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.
    28  # Install FreePascal.
    29  # Install FreePascal.
    29  # Install Qt SDK, with the "Custom" option:
    30  # Install Qt SDK, with the "Custom" option:
    30   * Click the *DESELECT ALL* button. We will then check only what we need
    31   * Click the *DESELECT ALL* button. We will then check only what we need
    31   * Check *Qt SDK/Miscellaneous/MinGW <any version>*
    32   * Check *Qt SDK/Miscellaneous/MinGW <any version>*
    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\)
    57   * 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\)
    57   * SET SET QTDIR=<path to the QtSDK\Desktop\Qt\<your version>> (for example: c:\QtSDK\Desktop\Qt\4.8.1\)
    58   * SET SET QTDIR=<path to the QtSDK\Desktop\Qt\<your version>> (for example: c:\QtSDK\Desktop\Qt\4.8.1\)
    58  # You can now build hedgewars, by running the *tools/build_windows.bat* command.
    59  # You can now build hedgewars, by running the *tools/build_windows.bat* command.
    59  # After building it, you can run it from the Desktop - using the *Hedgewars* shortcut.
    60  # After building it, you can run it from the Desktop - using the *Hedgewars* shortcut.
    60 
    61 
    61 = Additional Setup for Visual Studio 2010 =
    62 == Additional setup for Visual Studio 2010 ==
    62 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.
    63 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.
    63 
    64 
    64 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.
    65 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.
    65  # Make sure that under C/C++ => Additional Include Directories you have \hedgewars\misc\winutils\include\.
    66  # Make sure that under C/C++ => Additional Include Directories you have \hedgewars\misc\winutils\include\.
    66  # Change the Linker => Input => Additional Dependencies option to have the following at the end:
    67  # Change the Linker => Input => Additional Dependencies option to have the following at the end:
    67   * \hedgewars\misc\winutils\lib\SDL.lib
    68   * \hedgewars\misc\winutils\lib\SDL.lib
    68   * \hedgewars\misc\winutils\lib\SDLmain.lib
    69   * \hedgewars\misc\winutils\lib\SDLmain.lib
    69   * \hedgewars\misc\winutils\lib\SDL_mixer.lib
    70   * \hedgewars\misc\winutils\lib\SDL_mixer.lib
    70  # Adjust the Output Directory under the General settings to be just \hedgewars\bin\.
    71  # Adjust the Output Directory under the General settings to be just \hedgewars\bin\.
    71 
    72 
    72 = Building process =
    73 == Building process ==
    73 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.
    74 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.