Unsolved Qt 5.9.3 no service found for mediaplayer
-
Hello guys,
Under Ubuntu 14 and latest Qt 5.9.3, I got error
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"So I checked the Media Player Example [QT_INSTALL_EXAMPLES]/multimediawidgets/player
And got the same error
Then, sudo apt-get install gstreamer*/libgstreamer*/libpulse* these everything but still no luck.
@ubuntu:~$ ls Qt/5.9.3/gcc_64/plugins/mediaservice/
libgstaudiodecoder.so libgstcamerabin.so libgstmediacapture.so libgstmediaplayer.soIt was fine and okay in Qt 5.7.1.
So what might be the problem?Thanks,
Allen -
Looks like this is the same issue as
https://forum.qt.io/topic/77275/unable-to-execute-the-player-example-after-a-fresh-install
Installing gstreamer from the untrusted ppa can play audio fine but still with some warnings/errors at the start up. And, maybe or not, this will pollute the gstreamer libraries so I suggest backup your Ubuntu before using untrusted ppa. -
Hi and welcome to devnet,
An educated guess is that you have GStreamer 0.1 installed on your system and the plugin is linked against GStreamer 1.0.
An alternative could be re-build the plugin (just the plugin not the whole of Qt) against your system installed GStreamer.