...
Set up and install wenv: https://gitlab.com/Linaro/windowsonarm/wenv/
Activate wenv to launch a shell (PS or CMD)
Modify the file at
C:\wenv\msys2\msys64\etc\pacman.conf
and uncomment the[clangarm64]
line, and the one below itExecute:
C:\wenv\msys2\msys64\clangarm64.exe
In the window that opens (same for all subsequent commands also), execute
pacman -Syu
(OPTIONAL) The previous command may close the msys window, if so, execute the command from Step 2 4 and return to window for all subsequent commands
In the msys2 window, execute
pacman -Su
Then the following commands:
pacman -S git $MINGW_PACKAGE_PREFIX-{python,pkgconf,meson,clang,cmake}
pacman -S $MINGW_PACKAGE_PREFIX-{ffmpeg,libjpeg-turbo,spirv-cross,shaderc}
Clone MPV from the repo: https://github.com/mpv-player/mpv and
cd
into itCopy the file attached to the bottom of this section into the root of the cloned directory
Execute the following commands:
meson setup build --prefix=$MSYSTEM_PREFIX --cross-file=clang-arm64.txt -Dgl=disabled
meson compile -C build
Wait for compilation to finish, and observe the presence of the file
build\mpv.exe
...