No service found for - "org.qt-project.qt.mediaplayer" - SOLVED
There are many threads related to sound not playing on apps. I am running on Windows 7, 32bit, Qt 5.1.1. My problem was slightly different. A simple test program playing a wav file worked when running through Qt creator. However when trying to run from a deployment folder that contains the application, wav file, qt.dlls, and platforms folder (from qt/.../plugins/platforms), the app would open but not play the wav file with the following error:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
I had to add CONFIG += console to my .pro file to get the above output. Googling this output gave me a ton of results. I found that I needed to add the following to my deployment folder:
- mediaservice folder from plugins
This did not fix my problem however, after adding the system environment variable QT_DEBUG_PLUGINS and setting it to a value of 1, I got a ton more output when running the application. After some more googling of the debug output I stumbled upon my solution. I needed to include Qt5OpenGL.dll in my deployment folder.
I suppose a good way to build a deployment folder would be to include all dlls and plugins and work backwards to strip out un-needed files to reduce folder size.
Thank you for sharing your solution!
[quote]I suppose a good way to build a deployment folder would be to include all dlls and plugins and work backwards to strip out un-needed files to reduce folder size.[/quote]Yes, that's the technique recommended in this "wiki page":http://qt-project.org/wiki/Deploy_an_Application_on_Windows