今天编译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