BuildingOnWindows.wiki
changeset 2222 57453f1d37cf
parent 2186 08ee59cebec7
equal deleted inserted replaced
2221:4bf8172a73a1 2222:57453f1d37cf
    10 == Required Tools ==
    10 == Required Tools ==
    11 Choose either 32-bit or 64-bit depending on your system and which build you want to make.
    11 Choose either 32-bit or 64-bit depending on your system and which build you want to make.
    12 
    12 
    13   * CMake: click either *Windows win32-x86 Installer* or *Windows win64-x64 Installer*
    13   * CMake: click either *Windows win32-x86 Installer* or *Windows win64-x64 Installer*
    14     * Link: https://cmake.org/download/
    14     * Link: https://cmake.org/download/
       
    15     * or run `winget install cmake` in the command line
    15   * Visual Studio: click *Download Visual Studio → Community 2019* (earlier version starting from Community 2015 Update 3 might also work)
    16   * Visual Studio: click *Download Visual Studio → Community 2019* (earlier version starting from Community 2015 Update 3 might also work)
    16     * Link: https://visualstudio.microsoft.com/
    17     * Link: https://visualstudio.microsoft.com/
    17   * Vcpkg
    18   * Vcpkg
    18     * Link: https://github.com/Microsoft/vcpkg
    19     * Link: https://github.com/Microsoft/vcpkg
    19   * !FreePascal: click *Windows 32-bit*, then download *fpc-<version>-win32.exe* (for 64-bit builds also download *fpc-<version>.i386-win32.cross.x86_64-win64.exe*)
    20   * !FreePascal: click *Windows 32-bit*, then download *fpc-<version>-win32.exe* (for 64-bit builds also download *fpc-<version>.i386-win32.cross.x86_64-win64.exe*)
    39       * Press "clone"
    40       * Press "clone"
    40     * Using command-line Mercurial
    41     * Using command-line Mercurial
    41       * Shift + Right-click in the folder where you want to download the source and select "Open Command Prompt Window Here" or "Open PowerShell window here".   
    42       * Shift + Right-click in the folder where you want to download the source and select "Open Command Prompt Window Here" or "Open PowerShell window here".   
    42       * Type and execute (The initial clone of the repository will take a while): `hg clone https://hg.hedgewars.org/hedgewars/ trunk`
    43       * Type and execute (The initial clone of the repository will take a while): `hg clone https://hg.hedgewars.org/hedgewars/ trunk`
    43   * Navigate to the Vcpkg directory in the command line and build the necessary libraries (this will also take a while, especially for Qt). The command is:
    44   * Navigate to the Vcpkg directory in the command line and build the necessary libraries (this will also take a while, especially for Qt). The command is:
    44     * For 32-bit builds: `.\vcpkg.exe install sdl2 sdl2-image sdl2-ttf sdl2-mixer[dynamic-load,libvorbis] sdl2-net physfs openssl qt5-base qt5-tools ffmpeg`
    45     * For 32-bit builds: `.\vcpkg.exe install sdl2 sdl2-image sdl2-ttf sdl2-mixer sdl2-net physfs openssl qt5-base qt5-tools ffmpeg`
    45     * For 64-bit builds: `.\vcpkg.exe install sdl2:x64-windows sdl2-image:x64-windows sdl2-ttf:x64-windows sdl2-mixer[dynamic-load,libvorbis]:x64-windows sdl2-net:x64-windows physfs:x64-windows openssl:x64-windows qt5-base:x64-windows qt5-tools:x64-windows ffmpeg:x64-windows`
    46     * For 64-bit builds: `.\vcpkg.exe install sdl2 sdl2-image sdl2-ttf sdl2-mixer sdl2-net physfs openssl qt5-base qt5-tools ffmpeg --triplet=x64-windows`
    46   * Build Hedgewars
    47   * Build Hedgewars
    47     * From the Start menu run either "x86 Native Tools Command Prompt for VS 2019" or "x64 Native Tools Command Prompt for VS 2019" (if you want Hedgewars to install to the default location in `C:\Program Files`, run it as administrator).  
    48     * From the Start menu run either "x86 Native Tools Command Prompt for VS 2019" or "x64 Native Tools Command Prompt for VS 2019" (if you want Hedgewars to install to the default location in `C:\Program Files`, run it as administrator).  
    48     * Navigate to `<hedgewars_root>\tools` where `<hedgewars_root>` is the directory where you cloned the repository source to.
    49     * Navigate to `<hedgewars_root>\tools` where `<hedgewars_root>` is the directory where you cloned the repository source to.
    49     * Run `build_vcpkg.bat` script
    50     * Run `build_vcpkg.bat` script
    50   * After building, you can run Hedgewars from the installed location (default is `C:\Program Files\hedgewars\hedgewars.exe`)
    51   * After building, you can run Hedgewars from the installed location (default is `C:\Program Files\hedgewars\hedgewars.exe`)