Opened 3 months ago
Closed 2 months ago
#11145 closed defect (invalid)
Ubuntu 20.04 compiling mpv ran into errors due to commit 13489c8
Reported by: | luckysk | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avutil |
Version: | git-master | Keywords: | vulkan |
Cc: | luckysk | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | yes |
Description (last modified by )
Due to commit 13489c8, compiling mpv on Ubuntu 20.04 resulted in the following errors:
FAILED: libmpv.so.2.3.0.p/filters_f_lavfi.c.o ccache cc -Ilibmpv.so.2.3.0.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -I/home/rland/work/src/mpv-build/build_libs/include -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/lua5.1 -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O0 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -fPIC -D_REENTRANT -pthread -DPL_HAVE_PTHREAD -DPTHREAD_HAS_SETCLOCK -DPL_STATIC -MD -MQ libmpv.so.2.3.0.p/filters_f_lavfi.c.o -MF libmpv.so.2.3.0.p/filters_f_lavfi.c.o.d -o libmpv.so.2.3.0.p/filters_f_lavfi.c.o -c ../filters/f_lavfi.c In file included from /home/rland/work/src/mpv-build/build_libs/include/libplacebo/utils/libav_internal.h:45, from /home/rland/work/src/mpv-build/build_libs/include/libplacebo/utils/libav.h:293, from ../filters/f_lavfi.c:35: /home/rland/work/src/mpv-build/build_libs/include/libavutil/hwcontext_vulkan.h:44:5: error: unknown type name 'VkVideoCodecOperationFlagBitsKHR' 44 | VkVideoCodecOperationFlagBitsKHR video_caps; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [81/191] Compiling C object libmpv.so.2.3.0.p/demux_demux_mkv.c.o FAILED: libmpv.so.2.3.0.p/demux_demux_mkv.c.o ccache cc -Ilibmpv.so.2.3.0.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -I/home/rland/work/src/mpv-build/build_libs/include -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/lua5.1 -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O0 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -fPIC -D_REENTRANT -pthread -DPL_HAVE_PTHREAD -DPTHREAD_HAS_SETCLOCK -DPL_STATIC -MD -MQ libmpv.so.2.3.0.p/demux_demux_mkv.c.o -MF libmpv.so.2.3.0.p/demux_demux_mkv.c.o.d -o libmpv.so.2.3.0.p/demux_demux_mkv.c.o -c ../demux/demux_mkv.c In file included from /home/rland/work/src/mpv-build/build_libs/include/libplacebo/utils/libav_internal.h:45, from /home/rland/work/src/mpv-build/build_libs/include/libplacebo/utils/libav.h:293, from ../demux/demux_mkv.c:40: /home/rland/work/src/mpv-build/build_libs/include/libavutil/hwcontext_vulkan.h:44:5: error: unknown type name 'VkVideoCodecOperationFlagBitsKHR' 44 | VkVideoCodecOperationFlagBitsKHR video_caps; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [82/191] Compiling C object libmpv.so.2.3.0.p/sub_osd.c.o [83/191] Compiling C object libmpv.so.2.3.0.p/sub_draw_bmp.c.o [84/191] Compiling C object libmpv.so.2.3.0.p/sub_sd_lavc.c.o [85/191] Compiling C object libmpv.so.2.3.0.p/video_filter_vf_format.c.o FAILED: libmpv.so.2.3.0.p/video_filter_vf_format.c.o ccache cc -Ilibmpv.so.2.3.0.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -I/home/rland/work/src/mpv-build/build_libs/include -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/lua5.1 -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O0 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -fPIC -D_REENTRANT -pthread -DPL_HAVE_PTHREAD -DPTHREAD_HAS_SETCLOCK -DPL_STATIC -MD -MQ libmpv.so.2.3.0.p/video_filter_vf_format.c.o -MF libmpv.so.2.3.0.p/video_filter_vf_format.c.o.d -o libmpv.so.2.3.0.p/video_filter_vf_format.c.o -c ../video/filter/vf_format.c In file included from /home/rland/work/src/mpv-build/build_libs/include/libplacebo/utils/libav_internal.h:45, from /home/rland/work/src/mpv-build/build_libs/include/libplacebo/utils/libav.h:293, from ../video/filter/vf_format.c:27: /home/rland/work/src/mpv-build/build_libs/include/libavutil/hwcontext_vulkan.h:44:5: error: unknown type name 'VkVideoCodecOperationFlagBitsKHR' 44 | VkVideoCodecOperationFlagBitsKHR video_caps;
The version of Vulkan used by the Ubuntu 20.04 release is 1.2.131.2-1. From what I've found through Google, VkVideoCodecOperationFlagBitsKHR was introduced in version 1.2.175. I can't upgrade Vulkan directly.What's the best way to prevent this error?
Attachments (1)
Change History (3)
by , 3 months ago
comment:1 by , 3 months ago
Description: | modified (diff) |
---|
comment:2 by , 2 months ago
Analyzed by developer: | set |
---|---|
Reproduced by developer: | set |
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Its not a bug in FFmpeg. libplacebo has some issues with its configuration. There's a fix that's being worked on:
https://code.videolan.org/videolan/libplacebo/-/merge_requests/670