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. A few questions about cross-compiling on Rapberry pi
Forum Updated to NodeBB v4.3 + New Features

A few questions about cross-compiling on Rapberry pi

Scheduled Pinned Locked Moved Mobile and Embedded
49 Posts 3 Posters 12.0k 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
    ixpervision
    wrote on 11 Mar 2015, 14:28 last edited by ixpervision 3 Nov 2015, 14:29
    #5

    Thanks for replies.
    I started working yesterday but I did not succeed to cross compile. I get error while performing qmake step on qtimageformat. Qtbase was not creat a problem and qmake works here well. All of the library gave following error witohut qtbase.

    /home/sefa/opt/qt5/qtimageformats/.qmake.conf:1: Cannot find feature qt_build_config
    Could not find qmake configuration file devices/linux-rasp-pi-g++.
    Error processing project file: ./qtimageformats.pro

    How can I fix it?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Mar 2015, 21:01 last edited by
      #6

      How are you calling qmake ?

      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
      • I Offline
        I Offline
        ixpervision
        wrote on 11 Mar 2015, 22:06 last edited by
        #7

        as /mnt/rasp-pi-rootfs/usr/local/qt5pi/bin/qmake.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 11 Mar 2015, 22:14 last edited by
          #8

          IIRC, you should also have one on your computer in /usr/local/qt5pi, use that one

          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
          • I Offline
            I Offline
            ixpervision
            wrote on 11 Mar 2015, 22:27 last edited by
            #9

            Thanks. This solved my problem. .I approached the end and I have another problem now I'm glad if you help some more. I made all the adjustments on qt creator. when I was run the app I get the following error;

            :-1: error: Compiler /home/sefa/rsp/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ not found. Check the value of CROSS_COMPILE -device-option

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 11 Mar 2015, 22:29 last edited by
              #10

              As silly as it may sound, is the file there ?

              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
              • I Offline
                I Offline
                ixpervision
                wrote on 11 Mar 2015, 22:38 last edited by ixpervision 3 Nov 2015, 22:41
                #11

                No such directory as /home/sefa/rsp.... This is my previous trying. Although I show the directory for the compiler as /home/sefa/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++. I get error that /home/sefa/rsp/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ not found. Check the value of CROSS_COMPILE -device-option.

                I do not understand why there is such.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 11 Mar 2015, 22:46 last edited by
                  #12

                  You moved it after having compiled Qt ?

                  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
                  • I Offline
                    I Offline
                    ixpervision
                    wrote on 11 Mar 2015, 22:59 last edited by ixpervision 3 Nov 2015, 23:00
                    #13

                    Ok I solved this issue by mkdir /home/sefa/rsp.. and copy past the compiler here. What about Unknown module(s) in QT: quick. This problem probably stems from this, at the end of the document said, go to the “Rasperry Pi” kit tab->System Environment and add LD_LIBRARY_PATH which is set to /usr/local/qt5pi/lib. But I do not know how to do it?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 11 Mar 2015, 23:02 last edited by
                      #14

                      Before modifying anything, did you compile/install that 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
                      • I Offline
                        I Offline
                        ixpervision
                        wrote on 11 Mar 2015, 23:09 last edited by
                        #15

                        I have a qtquick1 file. And I run the following string in this file.
                        /usr/local/qt5pi/bin/qmake .
                        make -j 4
                        sudo make install

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 11 Mar 2015, 23:23 last edited by
                          #16

                          You need to build the qtdeclarative module. qtquick1 is for the version of 1

                          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
                          • I Offline
                            I Offline
                            ixpervision
                            wrote on 12 Mar 2015, 12:33 last edited by
                            #17

                            When I compiled qtdeclarative I get the following error.

                            make[2]: Entering directory /home/sefa/opt/qt5/qtdeclarative/src/qmldevtools' make[2]: *** No rule to make target /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/qglobal.h', needed by .obj/qqmljsast.o'. Stop. make[2]: Leaving directory /home/sefa/opt/qt5/qtdeclarative/src/qmldevtools'
                            make[1]: *** [sub-qmldevtools-make_first-ordered] Error 2
                            make[1]: Leaving directory `/home/sefa/opt/qt5/qtdeclarative/src'
                            make: *** [sub-src-make_first] Error 2

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 12 Mar 2015, 22:44 last edited by
                              #18

                              Did you mount your Raspberry Pi root filesystem before building ?

                              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
                              • I Offline
                                I Offline
                                ixpervision
                                wrote on 12 Mar 2015, 23:10 last edited by
                                #19

                                Yes I did. Also I get another error when make app without using qtquick as;

                                error: error trying to exec 'cc1plus': execvp: No such file or directory

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  ixpervision
                                  wrote on 13 Mar 2015, 16:06 last edited by
                                  #20

                                  SGasist, Is there something you think about this issue ?

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 13 Mar 2015, 21:08 last edited by
                                    #21

                                    Did you move anything around like your compiler folder ?

                                    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
                                    • I Offline
                                      I Offline
                                      ixpervision
                                      wrote on 13 Mar 2015, 21:30 last edited by
                                      #22

                                      No I did not move anything.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 13 Mar 2015, 21:39 last edited by
                                        #23

                                        Then clean the module and call qmake again with your Rasberry Pie root filesystem mounted

                                        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
                                        • I Offline
                                          I Offline
                                          ixpervision
                                          wrote on 15 Mar 2015, 14:19 last edited by
                                          #24

                                          Hi,

                                          I can compile qtdeclarative after clean the module. And I still get same error. I did not understand.

                                          1 Reply Last reply
                                          0

                                          14/49

                                          11 Mar 2015, 23:02

                                          topic:navigator.unread, 35
                                          • Login

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