Closed hrzhu closed 2 years ago
This seems to be a bug in the mpv waf
build system itself (rather than mpv-build). It expects libplacebo to have vulkan enabled, if mpv itself finds the vulkan headers, which does not necessarily follow.
You can get around this by using --disable-libplacebo
as you have done, or just commenting out the libplacebo
lines from the build
script (or running the commands in there minus the libplacebo ones).
In any case, it seems you have solved the build issue by not including libplacebo in the linked mpv. Therefore, the subsequent error you get at runtime is something different that doesn't appear related to the addition of libplacebo to mpv-build
. It looks like it's using --gpu-context=drm
rather than x11
/ x11egl
/ wayland
. Is that what you mean to do? Post your actual mpv --log-file
to https://0x0.st/ so we can see what's happening.
mpv's meson
build system solves that like this:
vulkan_opt = get_option('vulkan').require(
libplacebo.get_variable('pl_has_vulkan', default_value: '0') == '1',
error_message: 'libplacebo could not be found!',
)
It will make -Dvulkan=auto
degrade to disabling vulkan if libplacebo doesn't support it, or emit an error when it's required.
Aside: seems like libplacebo doesn't set variables: pc_vars
in the declare_dependency, /cc @haasn
I notice there's a new commit that adds libxpresent-dev dependency. I can now compile a working mpv(without libplacebo) after installing it.
I installed menson and ninja which is the new requirement for libplacebo. I got these error messages.
I installed glslang-dev but it couldn't find glslang/build_info.h. I don't know how to install shaderc. If I build mpv with --disable-libplacebo(adding it in mpv_options), the binary doesn't work properly.