os未定义符号AVFMediaPlayerService

os未定义符号AVFMediaPlayerService

本文介绍了qt编译mac os未定义符号AVFMediaPlayerService AVFVideoRendererControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac OS High Sierra计算机上编译Qt 5.9.x.

Im trying to compile Qt 5.9.x on my Mac OS High Sierra computer.

我使用以下选项进行配置:

I configure with the following options:

./configure --prefix=/Users/myuserid/opt/qt593 \
    -opensource  \
    -release -gui -widgets -no-opengl -confirm-license \
    -shared -no-dbus -nomake examples

配置后,我会编译,但一段时间后它会停止以下未定义的符号:

After configuring I compile and after a while it stops with thefollowing undefined symbols:

Undefined symbols for architecture x86_64:
  "AVFVideoRendererControl::staticMetaObject", referenced from:
      AVFMediaPlayerService::releaseControl(QMediaControl*) in avfmediaplayerservice.o
  "AVFVideoRendererControl::AVFVideoRendererControl(QObject*)", referenced from:
      AVFMediaPlayerService::requestControl(char const*) in avfmediaplayerservice.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [../../../../plugins/mediaservice/libqavfmediaplayer.dylib] Error 1
make[4]: *** [sub-mediaplayer-make_first] Error 2
make[3]: *** [sub-avfoundation-make_first] Error 2
make[2]: *** [sub-plugins-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtmultimedia-make_first] Error 2

如何解决或克服此错误?我还没有看到要下载用于Mac OS的AVMediaPlayer软件包吗?从那以后我真的不需要它我不打算制作任何声音或视频吗?

How do I fix or get past this error? I haven't seen an AVMediaPlayer package to download for Mac OS? I really don't need it anyhow sinceIm not planning on doing any Sound or Video?

有人看到此错误,知道如何解决吗?谢谢

Anyone see this error and know how to fix it?Thanks

推荐答案

我目前正在osx上编译Qt 5.9.3.当我使用'--no-opengl'开关时,遇到相同的错误,没有它,编译成功.不过,我不知道这是否适合您.

I'm currently compiling Qt 5.9.3 on osx. I get the same error when I use the '--no-opengl' switch, without it, the compilation is successful. I don't know if this is an option for you, though.

这篇关于qt编译mac os未定义符号AVFMediaPlayerService AVFVideoRendererControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:45