概述
error: avutil is required, but compiler can not find it
.
You should set some environment vars so that compiler can find FFmpeg and other libraries files.
For VC compiler, they are INCLUDE and LIB. For gcc, they are CPATH and LIBRARY_PATH. e.g.
vc:
set INCLUDE=ffmpeg_pathinclude;portaudio_pathinclude;%INCLUDE%
set LIB=ffmpeg_pathlib;portaudio_pathlib;%LIB%
gcc in unix shell environment(including mingw with sh.exe):
export CPATH=ffmpeg_path/include:portaudio_path/include:$CPATH
export LIBRARY_PATH=ffmpeg_path/include:portaudio_path/lib:$LIBRARY_PATH
gcc in windows cmd environment without sh.exe
set CPATH=ffmpeg_pathinclude;portaudio_pathinclude;%CPATH%
set LIBRARY_PATH=ffmpeg_pathlib;portaudio_pathlib;%LIBRARY_PATH%
If you are building in QtCreator, goto QtCreator's 'Projects' page and add or append those environment.
I think i should write some documents to show how to build QtAV.
不能自己添加名字!
最后
以上就是个性草丛为你收集整理的windows编译qtav的全部内容,希望文章能够帮你解决windows编译qtav所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复