How to build Qt statically to make the Qt multimedia work
-
wrote on 28 Nov 2017, 13:13 last edited by DCsunset
I'm using Ubuntu 16.04
After I have statically built the Qt 5.10.0, my program that includes Qt multimedia module goes wrong:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
I have searched for the solution for a long time. Some solutions are to build Qt with gstreamer. However, Ubuntu seems to have broken packages and can't install libgstreamer1.0-dev.
Installing libgstreamer0.1-dev doesn't help at all.In addition, I have tried to include the shared library of gstreamer, but the program has the same error. And when I'm trying to build Qt 5.9.3, it turns out the none of gstreamer, pulseaudio and alsa can be found.
Is there any solution to it?
Thanks in advance.
-
Hi and welcome to devnet,
Did you check that you are correctly linking to the static plugins ?
-
wrote on 29 Nov 2017, 01:48 last edited by DCsunset
Maybe it's exactly the problem here.
I've seen this section before, but I can't find a list of Qt static plugins supported including the plugins I need.What plugin do I need to add in terms of Qt multimedia?
-
Maybe it's exactly the problem here.
I've seen this section before, but I can't find a list of Qt static plugins supported including the plugins I need.What plugin do I need to add in terms of Qt multimedia?
wrote on 29 Nov 2017, 03:08 last edited by jiancaiyang@DCsunset To take a look for source code.
Maybe some hint could be found in source code, and bugreports.qt.io could be another good place for you. -
Do you mean the plugins are not built or that you can't configure Qt to build ?
1/6