Solved Qt error: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
-
Hello!
First, sorry for my bad english.
I have a small C++ Qt console program and it plays a sound.
When i run the project inside the Qt creator it plays the sound, but when i try to run the .exe not inside the Qt, i get the following text in my console program:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"I hope someone could help me
-
Hi and welcome to devnet,
What OS are you using ? What version of Qt ?
-
Hi!
Thank you.
I'm using Windows 10 64-bit and Qt 5.7.0 for Windows 64-bit -
Ok, then what console are you using to run your application ?
Since it's outside Qt Creator, did you follow the deployment steps for Windows (essentially run windeployqt) ? -
I just click the builded .exe file in the release folder to run my console application, so i did not follow the deployment steps because i haven't known about it
-
-
Thank you! It worked :)