Topic: Building mpv with Vapoursynth for Windows
This's the starting point:
https://github.com/lachs0r/mingw-w64-cmake
For the first time make yourself familiar with all the tools and ensure you actually can build mpv with the default options (i.e. w/o Vapoursynth).
If you want to build a specific version (i.e., 0.27), add to the packages/mpv.conf:
GIT_TAG v0.27.0
Hint: it's always a pain in the ass to build ANGLE, but we can use shared dlls instead:
packages/mpv.cmake:
--enable-egl-angle
packages/angle.cmake:
ExternalProject_Add(angle
DEPENDS gcc
GIT_REPOSITORY https://chromium.googlesource.com/angle/angle
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/include/EGL ${MINGW_INSTALL_PREFIX}/include/EG
COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/include/KHR ${MINGW_INSTALL_PREFIX}/include/KHR
BUILD_IN_SOURCE 1
LOG_DOWNLOAD 1 LOG_UPDATE 1 LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1
)
Next, add "--enable-vapoursynth" to mpv.cmake.
We don't want to build Vapoursynth, we only need headers and a .dll to link with:
- unpack the attached .tar.gz into /build-64
- set correct paths in build/64/prefix/x86_64-w64-mingw32/lib/pkgconfig/vapoursynth-*.pc files - right now they point to /mnt/data/mingw-w64-cmake
Rebuild mpv.