Skip to content
Anime4000 edited this page Jul 2, 2024 · 6 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://github.com/fraunhoferhhi/vvenc

Enter folder

cd vvenc
mkdir build
cd build

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"

Make with znver2

cmake .. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_C_FLAGS_RELEASE="-O3 -DNDEBUG -static -mtune=znver2 -march=znver2" -DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG -static -mtune=znver2 -march=znver2"

Compile

make