qt compile mac os undefined symbols AVFMediaPlayerService AVFVideoRendererControl

岁酱吖の 提交于 2019-12-11 17:34:02

问题


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 the following 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

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 since Im not planning on doing any Sound or Video?

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


回答1:


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.



来源:https://stackoverflow.com/questions/47848765/qt-compile-mac-os-undefined-symbols-avfmediaplayerservice-avfvideorenderercontro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!