Unsolved How to build Qt statically to make the Qt multimedia work
-
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 ?
-
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?
-
@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. -
@SGaist Actually, it's not the problem of adding QTPLUGIN, because qmake will automatically add the necessary plugin.
I should compile Qt with gstreamer, alsa or pulseaudio, but I fail to do it.
-
Do you mean the plugins are not built or that you can't configure Qt to build ?