Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
mediaplayergstreamer1.0raspberry pi3deployment
11 Posts 2 Posters 2.3k Views
  • 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.
  • U Offline
    U Offline
    umutgurbuz
    wrote on last edited by umutgurbuz
    #1

    Hi ,I am a newbie and I have been cross compiled qt 5.10.1 for raspberry pi 3 using the link : https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/.
    Now , I tried to run an application that uses QMediaPlayer class and it works fine when i run it on my computer (Ubuntu 18.04). On the application I push a button and it plays an mp3 but when i run the application in for raspberry pi and when i pushed the button it says : defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" .

    I have installed gstreamer libraries with these commands :

    sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-dev gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-alsa

    sudo apt-get install gstreamer1.0-plugins-* gstreamer1.0-libav ffmpeg

    sudo apt-get install gstreamer1.0-plugins-* gstreamer1.0-libav gstreamer1.0-ffmpeg

    sudo apt-get install libqt5multimedia5-plugins
    But it still gives the same error . I would appreciate any help .

    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 install all these packages on your target sysroot ?

      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
      • U Offline
        U Offline
        umutgurbuz
        wrote on last edited by umutgurbuz
        #3

        I installed them on raspberry pi. I have looked my config summary.

        Qt Multimedia:
        ALSA ................................... no
        GStreamer 1.0 .......................... no
        GStreamer 0.10 ......................... no
        Video for Linux ........................ yes
        OpenAL ................................. no
        PulseAudio ............................. no
        Resource Policy (libresourceqt5) ....... no
        Windows Audio Services ................. no
        DirectShow ............................. no
        Windows Media Foundation ............... no

        Then I have installed gstreamer dev packages both in my computer and raspberry pi and configure again with multimedia options and terminal error says like below :
        WARNING: host pkg-config not found

        ERROR: Feature 'alsa' was enabled, but the pre-condition 'config.unix && !config.qnx && libs.alsa' failed.

        ERROR: Feature 'gstreamer_1_0' was enabled, but the pre-condition 'libs.gstreamer_1_0' failed.

        ERROR: Feature 'pulseaudio' was enabled, but the pre-condition 'libs.pulseaudio' failed.
        And this is my config command :
        ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -no-use-gold-linker -v -no-gbm -gstreamer 1.0 -alsa -pulseaudio

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

          Do you have pkg-config installed on your host ?

          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
          • U Offline
            U Offline
            umutgurbuz
            wrote on last edited by
            #5

            Yes , it is installed.

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

              Can you generate the list of package installed on the sysroot you are using to cross-compile Qt ?

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

              U 2 Replies Last reply
              0
              • U Offline
                U Offline
                umutgurbuz
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • SGaistS SGaist

                  Can you generate the list of package installed on the sysroot you are using to cross-compile Qt ?

                  U Offline
                  U Offline
                  umutgurbuz
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Can you generate the list of package installed on the sysroot you are using to cross-compile Qt ?

                    U Offline
                    U Offline
                    umutgurbuz
                    wrote on last edited by
                    #9

                    @sgaist all

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

                      How many versions of Qt do you have on that device ?
                      If you build your application directly on the Pi, does it behave correctly ?

                      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
                      • U Offline
                        U Offline
                        umutgurbuz
                        wrote on last edited by
                        #11

                        0_1568024286357_2019-09-09 13-17-33 ekran görüntüsü.png
                        I have these versions . It does not work when i build directly on raspberry pi .

                        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