https://github.com/wang-bin/QtAV/wiki/Build-QtAV
我的环境windows Qt mingw版本, 5.14.1
参考wiki,很顺利
1、下载
git clone https://github.com/wang-bin/QtAV.git
cd QtAV && git submodule update –init
2、下载依赖
http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86%2Bx64.7z/download
解压到QtAV同一级目录
3、设置环境
官网推荐配置
(Recommended) Edit .qmake.conf (if use qmake)
Extract ffmpeg to QtAV source dir. add 2 lines in .qmake.conf
INCLUDEPATH += $$PWD/ffmpeg/include
LIBS += -L$$PWD/ffmpeg/lib
我的配置
INCLUDEPATH += $$PWD/../QtAV-depends-windows-x86+x64/include
LIBS += -L$$PWD/../QtAV-depends-windows-x86+x64/lib
4、编译
mkdir your_build_dir
cd your_build_dir
qmake QtAV_source_dir/QtAV.pro
mingw32-make.exe –j4
5、运行
只要把依赖库拷贝到bin目录下,就可以双击运行了