我试图在我的Mac OS High Sierra计算机上编译Qt 5.9.x.
我使用以下选项进行配置:
./configure --prefix=/Users/myuserid/opt/qt593 \
-opensource \
-release -gui -widgets -no-opengl -confirm-license \
-shared -no-dbus -nomake examples
配置后我编译,一段时间后它停止了 以下未定义的符号:
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软件包?从那以后我真的不需要它 我不打算做任何声音或视频吗?
任何人都会看到此错误并知道如何修复它? 感谢
答案 0 :(得分:0)
我目前正在osx上编译Qt 5.9.3。当我使用'--no-opengl'开关时,我得到相同的错误,没有它,编译成功。不过,我不知道这是否适合您。