Skip to content

Instantly share code, notes, and snippets.

@HFTrader
Last active April 27, 2020 01:13
Show Gist options
  • Select an option

  • Save HFTrader/3602458a54b4a784b9e159e3411bac9e to your computer and use it in GitHub Desktop.

Select an option

Save HFTrader/3602458a54b4a784b9e159e3411bac9e to your computer and use it in GitHub Desktop.

Initial setup of MSYS2

This page documents the instructions for setting up a Windows build using MSYS2.

First, you have to download and install MSYS2 from https://www.msys2.org/

Update the package database

pacman -Sy pacman
pacman -Syu

If needed, close the MSYS2 command prompt, and run it again to update the rest.

pacman -Su

Install required tools

pacman -S yasm
pacman -S make
pacman -S autoconf automake
pacman -S diffutils
pacman -S patch
pacman -S git
pacman -S svn
pacman -S tar
pacman -S pkg-config

Building with MinGW-w64 toolchain

If you plan to create a Windows build with a mingw-msys profile, you have to install the corresponding toolchain. CMake is only required for compiling the x265 encoder.

Note that cross compiling with MSYS-MinGW will take considerably longer than cross compiling with MinGW on a Unix host.

Install 64-bit toolchain

pacman -Sy mingw-w64-x86_64-{gcc,libtool,cmake,clang}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment