BuildingOnWindows.wiki
changeset 1957 166ed9944600
parent 1956 625477ff2786
child 1958 6c8b92bd9511
equal deleted inserted replaced
1956:625477ff2786 1957:166ed9944600
    40    * In the _Source_ textbox, enter: https://hg.hedgewars.org/hedgewars/
    40    * In the _Source_ textbox, enter: https://hg.hedgewars.org/hedgewars/
    41    * Press "clone"
    41    * Press "clone"
    42   # Using command-line Mercurial
    42   # Using command-line Mercurial
    43    * If you have Windows 7 or later, skip the next 3 steps, and instead, use Shift + Right-click in the folder where you want to download the source.
    43    * If you have Windows 7 or later, skip the next 3 steps, and instead, use Shift + Right-click in the folder where you want to download the source.
    44    * Start _Run..._ ( Press Windows key + R, or click on the Start menu, then on "Run ..." )
    44    * Start _Run..._ ( Press Windows key + R, or click on the Start menu, then on "Run ..." )
    45    * Enter:
    45    * Enter: `cmd.exe`
    46 {{{
       
    47 cmd.exe
       
    48 }}}
       
    49    * Navigate to where you want to download the source
    46    * Navigate to where you want to download the source
    50    * Type and execute (The initial clone of the repository will take a while):
    47    * Type and execute (The initial clone of the repository will take a while): `hg clone https://hg.hedgewars.org/hedgewars/ trunk`
    51 {{{
       
    52 hg clone https://hg.hedgewars.org/hedgewars/ trunk
       
    53 }}}
       
    54  # Run Vckpg in the command line to build the necessary libraries (this will also take a while, especially for Qt). The command is:
    48  # Run Vckpg in the command line to build the necessary libraries (this will also take a while, especially for Qt). The command is:
    55   * For 32-bit builds:
    49   * For 32-bit builds: `./vcpkg.exe install sdl2 sdl2-image sdl2-ttf sdl2-mixer sdl2-mixer[libvorbis] physfs openssl qt5-base qt5-tools ffmpeg`
    56 {{{
    50   * For 64-bit builds: `./vcpkg.exe install sdl2:x64-windows sdl2-image:x64-windows sdl2-ttf:x64-windows sdl2-mixer:x64-windows sdl2-mixer[libvorbis]:x64-windows physfs:x64-windows openssl:x64-windows qt5-base:x64-windows qt5-tool:x64-windows ffmpeg:x64-windows`
    57 ./vcpkg.exe install sdl2 sdl2-image sdl2-ttf sdl2-mixer sdl2-mixer[libvorbis] physfs openssl qt5-base qt5-tools ffmpeg
       
    58 }}}
       
    59   * For 64-bit builds:
       
    60 {{{
       
    61 ./vcpkg.exe install sdl2:x64-windows sdl2-image:x64-windows sdl2-ttf:x64-windows sdl2-mixer:x64-windows sdl2-mixer[libvorbis]:x64-windows physfs:x64-windows openssl:x64-windows qt5-base:x64-windows qt5-tool:x64-windows ffmpeg:x64-windows
       
    62 }}}
       
    63  # Build Hedgewars
    51  # Build Hedgewars
    64   * Run the Developer Command Prompt for VS 2019 (or other installed version) from the Start menu (if you want Hedgewars to install to the default location in *C:/Program Files (x86)*, run it as administrator).
    52   * Run the Developer Command Prompt for VS 2019 (or other installed version) from the Start menu (if you want Hedgewars to install to the default location in *C:/Program Files (x86)*, run it as administrator).
    65   * For 64-bit builds, in the dev command prompt run the following command (not necessary for 32-bit builds)
    53   * For 64-bit builds, in the dev command prompt run the following command (not necessary for 32-bit builds): `VC\Auxiliary\Build\vcvarsall.bat amd64`
    66 {{{
       
    67 VC\Auxiliary\Build\vcvarsall.bat amd64
       
    68 }}}
       
    69   * Navigate to `<hedgewars_root>/tools` where `<hedgewars_root>` is the directory where you cloned the repository source to.
    54   * Navigate to `<hedgewars_root>/tools` where `<hedgewars_root>` is the directory where you cloned the repository source to.
    70   * Run `build_vcpkg.bat` script
    55   * Run `build_vcpkg.bat` script
    71  # After building, you can run Hedgewars from the installed location (default is `C:/Program Files (x86)/hedgewars/hedgewars.exe`)
    56  # After building, you can run Hedgewars from the installed location (default is `C:/Program Files (x86)/hedgewars/hedgewars.exe`)
    72 
    57 
    73 == Caveats ==
    58 == Caveats ==