Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build Qt statically to make the Qt multimedia work
Forum Updated to NodeBB v4.3 + New Features

How to build Qt statically to make the Qt multimedia work

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DCsunset
    wrote on last edited by DCsunset
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you check that you are correctly linking to the static plugins ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        DCsunset
        wrote on last edited by DCsunset
        #3

        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?

        jiancaiyangJ 1 Reply Last reply
        0
        • D 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?

          jiancaiyangJ Offline
          jiancaiyangJ Offline
          jiancaiyang
          wrote on last edited by jiancaiyang
          #4

          @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.

          我们自己的论坛:http://qtdream.com
          擅长三维角色仿真动画。

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DCsunset
            wrote on last edited by DCsunset
            #5

            @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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you mean the plugins are not built or that you can't configure Qt to build ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved