No service found (mediaplayer) in Ubuntu 14.04
-
Hi everyone.
I'm trying to execute some mediaplayer examples based on qml, but I'm having several problems when running applications that depend on the mediaplayer module.
These are the details of my OS and my system:
- Ubuntu 14.04, 32 bits
- Qt5.5 Installed by QtCreator installator online QtCreator installator for Linux 32bits. I have Installed the default Qt5.5 options, all Tools and all QtExtras. The folder containing Qt is /home/user/Qt/
Other developers solved his problem by installing gstreamer libraries, although this solution didn't work for me. Currently, I've installed in my computer the following dependencies:
- https://paste.kde.org/p6ong2hqy
- (And another packagers related to multimedia and qt, like libqt5multimedia5-plugins, etc)
I've read that the error might be due to a missing library but checking the mediaservice plugin in my Qt folder I found:
/home/user/Qt /5.5 /gcc /plugins /mediaservice libqtmedia_audioengine.so
After configuring, compiling and running the default Qt example (QML Video Example) when I try to play a video, the output is:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" qml: [qmlvideo] VideoItem.onError error 5 errorString The QMediaPlayer object does not have a valid service qml: [qmlvideo] Content.onFatalError
This is the output with QT_DEBUG_PLUGINS=1: https://paste.kde.org/pqxpxtb4s
Thank you,
Jonatan -
I provide more information. In this case I used ldd command with files below:
~/Qt/5.5/gcc/plugins/mediaservice/libqtmedia_audioengine.so
$ ldd ~/Qt/5.5/gcc/plugins/mediaservice/libqtmedia_audioengine.so linux-gate.so.1 => (0xb77dd000) libQt5Multimedia.so.5 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libQt5Multimedia.so.5 (0xb76ed000) libQt5Gui.so.5 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libQt5Gui.so.5 (0xb7039000) libQt5Network.so.5 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libQt5Network.so.5 (0xb6ea7000) libQt5Core.so.5 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libQt5Core.so.5 (0xb695e000) ibGL.so.1 => /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0xb68a0000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb6884000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb679b000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6755000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6738000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6589000) libicui18n.so.54 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libicui18n.so.54 (0xb6310000) libicuuc.so.54 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libicuuc.so.54 (0xb6167000) libicudata.so.54 => /home/user/Qt/5.5/gcc/plugins/mediaservice/./../../lib/libicudata.so.54 (0xb493c000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb4937000) libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0xb4934000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb492b000) libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb481e000) /lib/ld-linux.so.2 (0xb77e0000) libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb47f5000) libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0xb47dc000) libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb47c9000) libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb47c5000) libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb47be000) libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xb47bb000) libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb4687000) libxcb-glx.so.0 => /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xb466f000) libxcb-dri2.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri2.so.0 (0xb4669000) libxcb-dri3.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri3.so.0 (0xb4664000) libxcb-present.so.0 => /usr/lib/i386-linux-gnu/libxcb-present.so.0 (0xb4660000) libxcb-sync.so.1 => /usr/lib/i386-linux-gnu/libxcb-sync.so.1 (0xb4659000) libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb4637000) libxshmfence.so.1 => /usr/lib/i386-linux-gnu/libxshmfence.so.1 (0xb4634000) libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xb462d000) libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xb461e000) libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb45e0000) libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb45dc000) libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb45d4000)
~/Qt/5.5/gcc/lib/libQt5Multimedia.so
$ ldd ~/Qt/5.5/gcc/lib/libQt5Multimedia.so linux-gate.so.1 => (0xb77c6000) libQt5Network.so.5 => /home/user/Qt/5.5/gcc/lib/libQt5Network.so.5 (0xb7554000) libQt5Gui.so.5 => /home/user/Qt/5.5/gcc/lib/libQt5Gui.so.5 (0xb6ea0000) libQt5Core.so.5 => /home/user/Qt/5.5/gcc/lib/libQt5Core.so.5 (0xb6957000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb690f000) libGL.so.1 => /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0xb687d000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6795000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb674e000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6731000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6582000) libicui18n.so.54 => /home/user/Qt/5.5/gcc/lib/libicui18n.so.54 (0xb6309000) libicuuc.so.54 => /home/user/Qt/5.5/gcc/lib/libicuuc.so.54 (0xb6161000) libicudata.so.54 => /home/user/Qt/5.5/gcc/lib/libicudata.so.54 (0xb4935000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb4930000) libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0xb492d000) librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb4924000) libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb4818000) /lib/ld-linux.so.2 (0xb77c9000) libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb47ee000) libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0xb47d5000) libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb47c2000) libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb47be000) libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb47b8000) libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xb47b4000) libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb4680000) libxcb-glx.so.0 => /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xb4668000) libxcb-dri2.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri2.so.0 (0xb4662000) libxcb-dri3.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri3.so.0 (0xb465e000) libxcb-present.so.0 => /usr/lib/i386-linux-gnu/libxcb-present.so.0 (0xb4659000) libxcb-sync.so.1 => /usr/lib/i386-linux-gnu/libxcb-sync.so.1 (0xb4652000) libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb4630000) libxshmfence.so.1 => /usr/lib/i386-linux-gnu/libxshmfence.so.1 (0xb462d000) libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xb4627000) libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xb4617000) libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb45d9000) libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb45d5000) libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb45ce000)