我是靠谱客的博主 个性草丛,最近开发中收集的这篇文章主要介绍windows编译qtav,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(43)

评论列表共有 0 条评论

立即
投稿
返回
顶部