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. Can't cross compile modules for raspberry pi
Qt 6.11 is out! See what's new in the release blog

Can't cross compile modules for raspberry pi

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 4 Posters 5.5k Views 2 Watching
  • 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.
  • I Offline
    I Offline
    Igbf
    wrote on last edited by
    #1

    I'm a neofite in Qt, and I am trying to set up a development enviroment to cross compile for a raspberry pi 2 that will form an embedded system for a motorcycle.

    I am using Qt 5.5.1 (tried 5.6 aswell, but i prefer to stay on the stable release if possible), and buildroot with minimal packages (just Qt and CANBUS support) as operating system for the raspberry pi.

    For now i just want to run some tests, and get the example "Qt Quick Extras - Dashboard" (somewhat close to what i want as the interface of my raspberry, fed with real data) from Qt 5.5.1 examples compiled for my platform. I have been following this guide: https://wiki.qt.io/RaspberryPi2EGLFS , got qmake working, and managed to compile a "hello world" program, but it seems that i am missing some libraries (Qt quick most notably) to compile the whole dashboard project:
    http://i.imgur.com/5JPpYKH.png

    I tried to compile Qt Quick from source like the wiki says, cloning the 5.5.1 version of the corresponding repo and calling qmake

    ~/raspi/qt5/bin/qmake -r
    

    ...but I get an error

    Project ERROR: Unknown module(s) in QT: qml quick quick-private qml-private
    

    I guess i must compile some other modules first, but I'm not sure what I am looking for. Searched for solutions (https://forum.qt.io/topic/42211/solved-unknown-module-s-in-qt-quick-qml/16) but none of them seemed related to my problem.

    Any help will be really appreciated.

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

      Hi and welcome to devnet,

      IIRC, you need to build the QtDeclarative and QtQuickControls module

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

      H 1 Reply Last reply
      1
      • I Offline
        I Offline
        Igbf
        wrote on last edited by Igbf
        #3

        Many thanks for your help. It worked after compiling QtDeclarative. Now It seems I am missing QtGraphicalEffects, will look into it tomorrow. I should also find a workarround to show my application fullscreen with no window system at all (or is that behaviour already implemented in the Window class?)

        Just curious, How can I know the dependencys? Is it possible to know only from the error output? I did not see any reference pointing QtDeclarative until you wisely stated it.

        edit: Finally could not wait and got it working. Thank you for your help again :)

        Z 1 Reply Last reply
        0
        • I Offline
          I Offline
          Igbf
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • I Igbf

            Many thanks for your help. It worked after compiling QtDeclarative. Now It seems I am missing QtGraphicalEffects, will look into it tomorrow. I should also find a workarround to show my application fullscreen with no window system at all (or is that behaviour already implemented in the Window class?)

            Just curious, How can I know the dependencys? Is it possible to know only from the error output? I did not see any reference pointing QtDeclarative until you wisely stated it.

            edit: Finally could not wait and got it working. Thank you for your help again :)

            Z Offline
            Z Offline
            Zola
            wrote on last edited by
            #5

            @Igbf Look at Qt documentation, every module have dependencies described.

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Igbf
              wrote on last edited by
              #6

              I might be looking in the wrong places, but i can't find the dependencies listed in the documentation, for example i see no trace of QtDeclarative arround: http://doc.qt.io/qt-5/qtquickcontrols-index.html

              No luck in the compiling instructions either. You meant the wiki maybe?

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

                I don't remember if there's a defined place in the documentation for that but since you have the source, take a look at the sync.profile file.

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

                I 1 Reply Last reply
                1
                • SGaistS SGaist

                  I don't remember if there's a defined place in the documentation for that but since you have the source, take a look at the sync.profile file.

                  I Offline
                  I Offline
                  Igbf
                  wrote on last edited by
                  #8

                  @SGaist Thanks, that is what i was looking for.

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi and welcome to devnet,

                    IIRC, you need to build the QtDeclarative and QtQuickControls module

                    H Offline
                    H Offline
                    Husain
                    wrote on last edited by
                    #9

                    @SGaist
                    I am newbie to QT. I am facing same error for qml-private. Can you tell me how I can build QtDeclarative?

                    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