ffmpeg
./configure --enable-shared --enable-pic
/*这个跟ffplay无关
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
yum install faac-devel
ffmpeg命令行执行录制的时候,提示错误“”The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it”,网上看直接在命令中add '-strict -2' 就可以了,但是我这里加了没有效果。
解决方法:
在configurate时--enable-libfaac,这时候可能会提示你nonfree,那就再开启nonfree好了, --enable-nonfree,重新编译,问题解决
*/
最重要的是export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig,要不然找不到ffmpeg
然后opencv
make过程中的错误:
/lib64/libgbm.so.1: undefined reference to `wayland_buffer_is_drm'
解决办法:升级相应的包, yum install libgbm
centos cmake版本低的时候,注释opencv/cmake/cl2cpp.cmake的第50行