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
-
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?
-
Hi,
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
-
Hi,
[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").
-
Again, start your application from the command line:
call@set QT_DEBUG_PLUGINS=1@
then
@yourapplication.exe@
-
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)