Skip to content
Anime4000 edited this page Jul 2, 2024 · 3 revisions

Using MSYS2

Download and Install with default

Update MSYS2

Open any MSYS Terminal

pacman -Syu

Update Package

Open MINGW64 Terminal

pacman -Su

Install Development

pacman -S --needed base-devel git subversion mercurial nasm yasm cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-qt5 mingw-w64-cross-binutils mingw-w64-x86_64-ninja

Small Fix

ln -s /mingw64/bin/windres /mingw64/bin/x86_64-w64-mingw32-windres

Let's build

Clone Repo

git clone https://gitlab.com/AOMediaCodec/SVT-AV1

Enter folder

cd SVT-AV1/Build
mkdir msys2
cd msys2

Make with x86-64-v4

cmake ../.. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_C_FLAGS_RELEASE="-O3 -DNDEBUG -static" -DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG -static" -DBUILD_SHARED_LIBS=OFF

Compile

make