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. Building QML based applications in Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

Building QML based applications in Raspberry Pi

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 3 Posters 2.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.
  • H Offline
    H Offline
    harip
    wrote on last edited by
    #1

    This is the first time I am trying to build a Qt QML based application targeted to be run in Raspberry Pi. To create a cross compile tool chain I have followed the instructions in the Wiki article in the link https://wiki.qt.io/RaspberryPi2EGLFS. I am able to successfully build and run qtwidget example in the Rpi. However when I try to qmake a qml application I am getting the following error :
    Project ERROR: Unknown module(s) in QT: quick

    I have tried running sudo apt-get install qtdeclarative5-dev as suggested in many forums. But this is not making any change in my case. Kindly please help me in finding the missing configuration.

    jsulmJ 1 Reply Last reply
    0
    • H harip

      This is the first time I am trying to build a Qt QML based application targeted to be run in Raspberry Pi. To create a cross compile tool chain I have followed the instructions in the Wiki article in the link https://wiki.qt.io/RaspberryPi2EGLFS. I am able to successfully build and run qtwidget example in the Rpi. However when I try to qmake a qml application I am getting the following error :
      Project ERROR: Unknown module(s) in QT: quick

      I have tried running sudo apt-get install qtdeclarative5-dev as suggested in many forums. But this is not making any change in my case. Kindly please help me in finding the missing configuration.

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

      @harip said in Building QML based applications in Raspberry Pi:

      I have tried running sudo apt-get install qtdeclarative5-dev as suggested in many forums

      This will not help. You need to cross-compile QML modules as well.

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

      1 Reply Last reply
      0
      • H Offline
        H Offline
        harip
        wrote on last edited by
        #3

        Hi, Thanks for the reply.

        What needs to be done in addition to cross compile QML modules as well? What is the change to be made in the commands in the article https://wiki.qt.io/RaspberryPi2EGLFS to build QML modules as well?

        J.HilkJ 1 Reply Last reply
        0
        • H harip

          Hi, Thanks for the reply.

          What needs to be done in addition to cross compile QML modules as well? What is the change to be made in the commands in the article https://wiki.qt.io/RaspberryPi2EGLFS to build QML modules as well?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @harip
          as far as I know
          you replace in the guide
          qtbase, with qtdeclarative and if needed qtquickcontrols2


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          H 1 Reply Last reply
          1
          • J.HilkJ J.Hilk

            @harip
            as far as I know
            you replace in the guide
            qtbase, with qtdeclarative and if needed qtquickcontrols2

            H Offline
            H Offline
            harip
            wrote on last edited by
            #5

            @J.Hilk Thank you .
            I will try that,. One more thing, I am also planning to use QtCharts in my application what needs to be added to include this module also.

            J.HilkJ 1 Reply Last reply
            0
            • H harip

              @J.Hilk Thank you .
              I will try that,. One more thing, I am also planning to use QtCharts in my application what needs to be added to include this module also.

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @harip qtcharts I believe ;-)


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              H 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @harip qtcharts I believe ;-)

                H Offline
                H Offline
                harip
                wrote on last edited by
                #7

                @J.Hilk Thank you :)

                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