[FFmpeg-devel] x11 output device for libavdevice

Stefano Sabatini stefasab at gmail.com
Thu May 30 13:12:24 CEST 2013


On date Thursday 2013-05-30 12:40:59 +0200, Carl Eugen Hoyos encoded:
> On Thursday 30 May 2013 12:12:12 pm Stefano Sabatini wrote:
> > On date Thursday 2013-05-30 09:57:17 +0000, Carl Eugen Hoyos encoded:
> > > Stefano Sabatini <stefasab <at> gmail.com> writes:
> > > > > I'll push the patch in a few days if no one will review it.
> > > >
> > > > Pushed.
> > >
> > > On my system, gcc needs -lX11 -lXext to succeed linking.
> >
> > Fix it or send a patch, since I can't reproduce the issue here.
> 
> Patch attached, this is approximately what MPlayer does.
> 
> Carl Eugen

> diff --git a/configure b/configure
> index 63d7ebb..be20646 100755
> --- a/configure
> +++ b/configure
> @@ -2085,7 +2085,7 @@ v4l2_outdev_deps_any="linux_videodev2_h sys_videoio_h"
>  vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines"
>  vfwcap_indev_extralibs="-lavicap32"
>  xv_outdev_deps="X11_extensions_Xvlib_h XvGetPortAttribute"
> -xv_outdev_extralibs="-lXv"
> +xv_outdev_extralibs="-lXv -lX11 -lXext"
>  x11grab_indev_deps="x11grab"
>  
>  # protocols
> @@ -3984,7 +3984,7 @@ check_func_headers windows.h SetConsoleTextAttribute
>  check_func_headers windows.h Sleep
>  check_func_headers windows.h VirtualAlloc
>  check_func_headers glob.h glob
> -check_func_headers "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute -lXv
> +check_func_headers "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute -lXv -lX11 -lXext

LGTM, thanks.
-- 
FFmpeg = Foolish Funny Mastering Pacific Experimenting Guide


More information about the ffmpeg-devel mailing list