[FFmpeg-devel] [PATCH] configure: Add missing xlib dependency for VAAPI X11 code

Mark Thompson sw at jkqxz.net
Thu Nov 15 00:59:59 EET 2018


Fixes #7538.
---
$ ../configure --disable-vdpau --enable-vaapi
...
$ rm libavutil/libavutil.pc ; make libavutil/libavutil.pc ; cat libavutil/libavutil.pc
...

Before:
Libs: -L${libdir}  -lavutil -pthread -L/usr/local/lib -lva-drm -lva -L/usr/local/lib -lva-x11 -lva -lm -L/usr/local/lib -lva

After:
Libs: -L${libdir}  -lavutil -pthread -L/usr/local/lib -lva-drm -lva -L/usr/local/lib -lva-x11 -lva -lm -L/usr/local/lib -lva -lXv -lX11 -lXext


 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index b02b4ccb2e..9bc4cf330d 100755
--- a/configure
+++ b/configure
@@ -2815,6 +2815,7 @@ d3d11va_deps="dxva_h ID3D11VideoDecoder ID3D11VideoContext"
 dxva2_deps="dxva2api_h DXVA2_ConfigPictureDecode ole32 user32"
 ffnvcodec_deps_any="libdl LoadLibrary"
 nvdec_deps="ffnvcodec"
+vaapi_x11_deps="xlib"
 videotoolbox_hwaccel_deps="videotoolbox pthreads"
 videotoolbox_hwaccel_extralibs="-framework QuartzCore"
 xvmc_deps="X11_extensions_XvMClib_h"
-- 
2.19.1


More information about the ffmpeg-devel mailing list