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 1 Feb 2019, 09:04 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.

    J 1 Reply Last reply 1 Feb 2019, 09:22
    0
    • H harip
      1 Feb 2019, 09:04

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 1 Feb 2019, 09:22 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 1 Feb 2019, 09:46 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 1 Reply Last reply 1 Feb 2019, 09:49
        0
        • H harip
          1 Feb 2019, 09:46

          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 Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 1 Feb 2019, 09:49 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 Feb 2019, 10:16
          1
          • J J.Hilk
            1 Feb 2019, 09:49

            @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 1 Feb 2019, 10:16 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 1 Reply Last reply 1 Feb 2019, 10:20
            0
            • H harip
              1 Feb 2019, 10:16

              @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 Offline
              J Offline
              J.Hilk
              Moderators
              wrote on 1 Feb 2019, 10:20 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 1 Feb 2019, 10:31
              0
              • J J.Hilk
                1 Feb 2019, 10:20

                @harip qtcharts I believe ;-)

                H Offline
                H Offline
                harip
                wrote on 1 Feb 2019, 10:31 last edited by
                #7

                @J.Hilk Thank you :)

                1 Reply Last reply
                0

                1/7

                1 Feb 2019, 09:04

                • Login

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