ffmpeg x11grab compilation

今天编译ffmpeg时遇到个错误是Xfixes not found,于是google了一下找到下面这个帖子,解决了问题。


For the x11grab input device to be compiled you need to run ./configure with –enable-x11grab.

When you’ve run ./configure x11grab should be listed in the indev section like this.

  • Enabled indevs:
  • dv1394            lavfi            v4l2
  • fbdev            oss            x11_grab_device

If x11grab was not listed, then it is most likely Xfixes.h and/or XShm.h files are not in your compiler include path. These are validated in the ./configure script, and x11grab is disabled if they are not available. This is the check inside the configure script:

enabled x11grab                         &&
check_header X11/Xlib.h                 &&
check_header X11/extensions/XShm.h      &&
check_header X11/extensions/Xfixes.h    &&
check_func XOpenDisplay -lX11           &&
check_func XShmCreateImage -lX11 -lXext &&
check_func XFixesGetCursorImage -lX11 -lXext -lXfixes

On ubuntu 11.10 the libraries are available, but the headers are not installed. XShm.h is in the libxext-dev package and Xfixes.h is in libxfixes-dev

  • sudo apt-get install libxfixes-dev
  • sudo apt-get install libxext-dev

发布了264 篇原创文章 · 获赞 124 · 访问量 112万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览