Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”
Forum Updated to NodeBB v4.3 + New Features

Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 5.0k 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.
  • N Offline
    N Offline
    neda
    wrote on last edited by
    #1

    Hi,
    I want to run a simple sample camera application but I have this error:

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
    Note: I install Qt 5.9.2 in Raspberry Pi3 (Raspbian).
    

    Note: I install this packages but not benefit.

    sudo apt-get install libqt5multimedia5-plugins
    
    qtmultimedia5-dev
    sudo apt-get install gstreamer-tools
    sudo apt-get install gstreamer1.0-tools
    sudo apt-get dist-upgrade
    
    sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5
    
    sudo apt-get build-dep qtmultimedia5-dev
    
    jsulmJ 1 Reply Last reply
    0
    • N neda

      Hi,
      I want to run a simple sample camera application but I have this error:

      defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
      Note: I install Qt 5.9.2 in Raspberry Pi3 (Raspbian).
      

      Note: I install this packages but not benefit.

      sudo apt-get install libqt5multimedia5-plugins
      
      qtmultimedia5-dev
      sudo apt-get install gstreamer-tools
      sudo apt-get install gstreamer1.0-tools
      sudo apt-get dist-upgrade
      
      sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5
      
      sudo apt-get build-dep qtmultimedia5-dev
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @neda Those sudo apt-get install you did on your host machine or RaspberryPi?
      Also, you said you installed Qt 5.9.2. Those sudo apt-get install will not help you on RaspberryPi as it will install another Qt version not related to your Qt 5.9.2.
      How did you install Qt 5.9.2?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      0
      • jsulmJ jsulm

        @neda Those sudo apt-get install you did on your host machine or RaspberryPi?
        Also, you said you installed Qt 5.9.2. Those sudo apt-get install will not help you on RaspberryPi as it will install another Qt version not related to your Qt 5.9.2.
        How did you install Qt 5.9.2?

        N Offline
        N Offline
        neda
        wrote on last edited by
        #3

        @jsulm said in Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”:

        Those sudo apt-get install you did on your host machine or RaspberryPi?
        RaspberryPi

        @jsulm How did you install Qt 5.9.2?
        https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

        jsulmJ 1 Reply Last reply
        0
        • N neda

          @jsulm said in Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”:

          Those sudo apt-get install you did on your host machine or RaspberryPi?
          RaspberryPi

          @jsulm How did you install Qt 5.9.2?
          https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @neda Then all those apt-get install will not help you. When you built Qt did you build qtmultimedia?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • jsulmJ jsulm

            @neda Then all those apt-get install will not help you. When you built Qt did you build qtmultimedia?

            N Offline
            N Offline
            neda
            wrote on last edited by
            #5

            @jsulm said in Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”:

            When you built Qt did you build qtmultimedia?

            I don't know. How build qtmultimedia?

            jsulmJ 1 Reply Last reply
            0
            • N neda

              @jsulm said in Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”:

              When you built Qt did you build qtmultimedia?

              I don't know. How build qtmultimedia?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @neda Sorry, forget my last question: you have QtMultimedia, else you would not be able to build your app.
              Try to set QT_DEBUG_PLUGINS=1 in a terminal (or QtCreator Run settings for your project) and then start your app there, then post the output here:

              QT_DEBUG_PLUGINS=1 && ./my_app
              

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              0
              • jsulmJ jsulm

                @neda Sorry, forget my last question: you have QtMultimedia, else you would not be able to build your app.
                Try to set QT_DEBUG_PLUGINS=1 in a terminal (or QtCreator Run settings for your project) and then start your app there, then post the output here:

                QT_DEBUG_PLUGINS=1 && ./my_app
                
                N Offline
                N Offline
                neda
                wrote on last edited by neda
                #7

                @jsulm said in Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”:

                Try to set QT_DEBUG_PLUGINS=1 in a terminal

                In terminal:
                QT_DEBUG_PLUGINS=1

                I execute this commands in terminal:

                $ export QT_PLUGIN_PATH=/usr/local/plugins/
                $ export QT_DEBUG_PLUGINS=1
                

                @jsulm then start your app there
                Did you mean to run from terminal?

                I start my app in Qt Creator in Raspberry.
                output:

                Starting /home/pi/build-untitled-Desktop-Debug/untitled...
                QML debugging is enabled. Only use this in a safe environment.
                Unable to query physical screen size, defaulting to 100 dpi.
                To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
                JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
                defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
                transient parent ApplicationWindow_QMLTYPE_11(0xe66fc8) can not be same as window
                
                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