Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Deplaying an application with plugin
Hello, I have realised an application using QtMultimedia. When I test it on debug mode all works fine, but not in release mode. I have the following error :
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
So I search for the error an I find that the plugin mediaservices have not been loaded,
I have created a subdirectory named plugins and i have put the mediaservice into it. But always the same error.
How could i fix that?
ps : sorry for my english i'm french
euchkatzl last edited by
did you do all the things mentioned here ?
No because I don't know how to do this.
I have search for directshow.pro in my Qt folder but i did not find it.
also for "recompile the plugin." I have to recompile it using Qt creator? or manually?
First thing to check is this fine "wiki entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows to ensure you are starting the deployment right.
Once that's done, and if still fails, then start your application from the command line with QT_DEBUG_PLUGINS=1 and see what goes wrong
bq. First thing to check is this fine wiki entry [qt-project.org] to ensure you are starting the deployment right.
I have already do this.
And the debug mode produces the same error :
defaultServiceProvider::requestService(): no service found for – “org.qt-project.qt.mediaplayer”
Activating that environment variable won't change the outcome, however you should analyze the output of your application to see which plugin fails and for what reason
I have not understand where i have to put the QT_DEBUG_PLUGINS=1 line
Please tell me about it
[quote author="Toxiik" date="1422875572"]I have created a subdirectory named plugins and i have put the mediaservice into it.[/quote]You should not have a subdirectory named "plugins". Go to SGaist's link again and look at the diagram carefully (replace "imageformats" with "mediaservice").
I have removed my subdirectory but it always don't work.
I have my .exe, my .dll and mediaservice
But always the same error
Again, start your application from the command line:
Thanks for your response, i have do that and the problem is not qtmultimedia.
When I run myapp.exe with the good parameter it works fine.
But when i associate a mp3 file with the myapp.exe and i try to run it, it fails.
How can i get the path of the mp3 file that i have double clicked?
Now i use QCoreApplication::arguments().at(1)
sorry for the double post, but i have resolved my problem, i have deleted all my built folder an rebuilt it and it works