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. RasPi and Qt errors!
Forum Updated to NodeBB v4.3 + New Features

RasPi and Qt errors!

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
16 Posts 4 Posters 3.9k Views 1 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.
  • SGaistS SGaist

    Hi,

    Are you doing native build on the RasPi 2 ?

    If so, did you build all of Qt or just qtbase ?

    L.J.5L Offline
    L.J.5L Offline
    L.J.5
    wrote on last edited by
    #3

    @SGaist In all honesty I'm not 100%, originally I was following the steps of the native build and whilst leaving to compile for the odd 2 days would have problems and such and then need to restart the process and so on. Following on from that the other day during my searching about saw that it could be done through sudo apt-get install qtcreator.

    I'm rather new to using the Pi! Any suggestions how to get this sorted and check different things?

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

      So it seems you have an incomplete build of Qt 5.

      Qt Creator installation doesn't mean that you have also a development version of Qt installed.

      What exactly did fail when you tried to build Qt 5 ?

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

      L.J.5L 1 Reply Last reply
      0
      • SGaistS SGaist

        So it seems you have an incomplete build of Qt 5.

        Qt Creator installation doesn't mean that you have also a development version of Qt installed.

        What exactly did fail when you tried to build Qt 5 ?

        L.J.5L Offline
        L.J.5L Offline
        L.J.5
        wrote on last edited by
        #5

        @SGaist I will try running the "make" and "sudo make install" again and will get back to you with the output of what's the problem!

        Thanks

        1 Reply Last reply
        0
        • L.J.5L Offline
          L.J.5L Offline
          L.J.5
          wrote on last edited by
          #6

          Having followed this: https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

          This time I had no errors, when running which qmake I get : "/usr/bin/qmake" which is different to what is the output in the tutorial above. Furthermore when trying to follow the final stage of compiling the example I get this :

          pi@******:~ $ cp -r~/opt/qt5/qtbase/examples/opengl/cube ~/
          cp: invalid option -- '~'
          Try 'cp --help' for more information.

          What are the best next steps to take to solving this?

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

            It's not the same qmake.

            Aren't you missing a space between -r and ~ ?

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

            L.J.5L 1 Reply Last reply
            0
            • SGaistS SGaist

              It's not the same qmake.

              Aren't you missing a space between -r and ~ ?

              L.J.5L Offline
              L.J.5L Offline
              L.J.5
              wrote on last edited by
              #8

              @SGaist Beside that, do you happen to know what I can try as I keep getting "UnKnown Modules: Quick QML"

              ?

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

                Did you build the qtdeclarative module ?

                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
                • RaspQt5R Offline
                  RaspQt5R Offline
                  RaspQt5
                  wrote on last edited by
                  #10

                  Hi, Have simular proplems.

                  I have done it this way : https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

                  But how i can add quick / qml / declarative modules?
                  After running ./configure those are missing...

                  Thank you in advance. :)

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

                    Hi and welcome to devnet,

                    Did you call configure in Qt 5's root directory or in qtbase ?

                    If the later, simply go in the module folders you are interested in and call qmake, make, make install.

                    Ensure that you use the correct qmake. Either you have only one and that's the one you build or use the full path so you are sure that you are calling the correct version.

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

                    RaspQt5R 1 Reply Last reply
                    0
                    • RaspQt5R Offline
                      RaspQt5R Offline
                      RaspQt5
                      wrote on last edited by
                      #12
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        Did you install make?

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

                        1 Reply Last reply
                        0
                        • RaspQt5R Offline
                          RaspQt5R Offline
                          RaspQt5
                          wrote on last edited by
                          #14
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Hi and welcome to devnet,

                            Did you call configure in Qt 5's root directory or in qtbase ?

                            If the later, simply go in the module folders you are interested in and call qmake, make, make install.

                            Ensure that you use the correct qmake. Either you have only one and that's the one you build or use the full path so you are sure that you are calling the correct version.

                            RaspQt5R Offline
                            RaspQt5R Offline
                            RaspQt5
                            wrote on last edited by
                            #15

                            @SGaist

                            Hi,

                            I call configure in qtbase. After make and install i manage to build and run ./cube

                            After that i went to qtdeclartive forlder and run qmake , make and make install with no errors. Maybe i dont use correct qmake. Where in can change path for qmake?

                            Thank you in advance.

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

                              Use the full path to your qmake binary.

                              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

                              • Login

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