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.

Post's attachments

vapoursynth-dev.tar.gz 412.03 kb, 1227 downloads since 2017-09-14 

Re: Building mpv with Vapoursynth for Windows

You can also use this media autobuild suite for compilation, although it relies on all the gits being compatible to one another (for now there is a bug in libass that stops the process) but if you want to control every aspect of compilation, this is a good tool.