官方文档:https://github.com/wang-bin/QtAV/wiki/Build-QtAV
clone源码
git clone https://github.com/wang-bin/QtAV.git
git submodule update --init
根据不同系统需要,具体操作看官方文档
Windows
ffmpeg依赖
官方文档提供编译好的库, 下载地址:
http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86%2Bx64.7z/download
也可以自己下载编译
将ffmpeg lib目录拷贝到qt lib目录, include目录拷贝到qt include目录, bin目录拷贝到qt bin目录。
编译QtAV
使得QtCreator打开QtAV.pro构建即可
安装QtAV
在编译生成目录,运行sdk_install.bat,会拷贝相应文件到Qt安装目录, debug/release同理
使用QtAV
在新工程.pro文件中添加 QT += avwidgets即可 (GUI工程)