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 4 Sept 2019, 06:51 last edited by umutgurbuz 9 Dec 2019, 11:59
    #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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Sept 2019, 21:04 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 5 Sept 2019, 08:08 last edited by umutgurbuz 9 May 2019, 08:08
        #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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 5 Sept 2019, 18:23 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 6 Sept 2019, 05:13 last edited by
            #5

            Yes , it is installed.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 6 Sept 2019, 22:22 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 8 Sept 2019, 12:03
              0
              • U Offline
                U Offline
                umutgurbuz
                wrote on 8 Sept 2019, 11:05 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • S SGaist
                  6 Sept 2019, 22:22

                  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 8 Sept 2019, 12:03 last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • S SGaist
                    6 Sept 2019, 22:22

                    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 9 Sept 2019, 06:25 last edited by
                    #9

                    @sgaist all

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 9 Sept 2019, 06:54 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 9 Sept 2019, 10:20 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

                        4/11

                        5 Sept 2019, 18:23

                        7 unread
                        • Login

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