无法运行基于QMediaPlayer的应用程序

时间:2017-03-16 11:32:53

标签: linux qt gstreamer

我创建了一个全新安装的Ubuntu 14.04.5 LTS(Trusty Tahr)的虚拟机,然后我安装了Qt 5.8。拱门是x64。

我尝试执行以下示例: http://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-player-example.html,结果是错误:

defaultServiceProvider::requestService(): no service found for -
"org.qt-project.qt.mediaplayer"

我启用了QT_DEBUG_PLUGINS = 1变量并看到:

Got keys from plugin meta data ("gstreamermediaplayer")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/QtWorkspace/bin/mediaservice" ...
Cannot load library /home/user/Qt/5.8/gcc_64/plugins/mediaservice/libgstmediaplayer.so: (/home/user/Qt/5.8/gcc_64/plugins/mediaservice/../../lib/libqgsttools_p.so.1: undefined symbol: _gst_value_list_type)
QLibraryPrivate::loadPlugin failed on "/home/user/Qt/5.8/gcc_64/plugins/mediaservice/libgstmediaplayer.so" : "Cannot load library /home/user/Qt/5.8/gcc_64/plugins/mediaservice/libgstmediaplayer.so: (/home/user/Qt/5.8/gcc_64/plugins/mediaservice/../../lib/libqgsttools_p.so.1: undefined symbol: _gst_value_list_type)"
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

“libqgsttools_p.so.1:undefined symbol:_gst_value_list_type”错误的原因是什么?为什么会出现这种不匹配? QtMultimedia是否可能不支持GStreamer 1.0(Trusty附带GStreamer 1.2.4)?

0 个答案:

没有答案