Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Setting up cross compiler (rasp Pi)

Setting up cross compiler (rasp Pi)

Scheduled Pinned Locked Moved QtonPi
setting up rasp
11 Posts 3 Posters 3.3k 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.
  • N Offline
    N Offline
    newpi
    wrote on last edited by newpi
    #1

    Hi All,

    I'm having few issues setting up the cross compiler for my raspberry pi. I'm a newbie so bear with me on this :)

    I'm following the guide on :
    https://wiki.qt.io/RaspberryPi_Beginners_Guide

    in the Compiling qtbase section of this guide once i run the following commands,

    • ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi
      make -j 4
      sudo make install

    '/usr/local/qt5pi' folder want there? (do we expect this folder to be there?). On what location i'm meant to run the commands above? i noticed there is a '/usr/local/qt5pi' on /mnt/raspberry-pi-rootfs too may be thats where i'm going wrong.

    Could someone kindly help me on this. I've been working on this for a week now.

    Any help is appreciated.

    Thank you,

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

      Hi,

      Yes it's a folder as good as any, but with this naming it's clear what it is. It will contain the host tools that will be used to setup/handle your cross-compiled Qt. The one on the remote will contain the cross-compiled libraries that will be used to run your applications.

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Yes it's a folder as good as any, but with this naming it's clear what it is. It will contain the host tools that will be used to setup/handle your cross-compiled Qt. The one on the remote will contain the cross-compiled libraries that will be used to run your applications.

        N Offline
        N Offline
        newpi
        wrote on last edited by
        #3

        @SGaist thank you very much for your clarification..

        So it appears the host folder is missing. Do I simply clone the folder from /mnt/raspberry-pi-rootfps to the host workstation?

        Thank you

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

          No, it should be created when you call make install

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

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            No, it should be created when you call make install

            N Offline
            N Offline
            newpi
            wrote on last edited by
            #5

            @SGaist hmm.. That's what I'm trying to figure out. The host folder isn't there even though it's specified in the config script. Not sure what I'm don g wrong here.

            Thank you for your help sofar

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

              Got any error message when calling make install ?

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

              N 1 Reply Last reply
              0
              • SGaistS SGaist

                Got any error message when calling make install ?

                N Offline
                N Offline
                newpi
                wrote on last edited by
                #7

                @SGaist Hi I'm sorry about the delayed response.

                I re-ran the config just to make sure whether there are any errors.I didn’t notice any. I ran config, make, sudo make install all three on ~/Qt/5.5/Src$ and still i cant see /usr/local/qt5pi created?

                Not sure what im doing wrong here. My home folder is encrypted (if that makes any diffrence). i thought running sudo make install enable to create folders on root?

                I'm really frustrated with this issue, any help is appreciated,

                Thank you very much for your help so far.

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

                  When calling configure again, did you do it on a clean tree ?

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

                  N 1 Reply Last reply
                  0
                  • N newpi

                    @SGaist Hi I'm sorry about the delayed response.

                    I re-ran the config just to make sure whether there are any errors.I didn’t notice any. I ran config, make, sudo make install all three on ~/Qt/5.5/Src$ and still i cant see /usr/local/qt5pi created?

                    Not sure what im doing wrong here. My home folder is encrypted (if that makes any diffrence). i thought running sudo make install enable to create folders on root?

                    I'm really frustrated with this issue, any help is appreciated,

                    Thank you very much for your help so far.

                    J Offline
                    J Offline
                    Jonnax
                    wrote on last edited by Jonnax
                    #9

                    @newpi

                    The compiled files will be on the mounted sd card image. You set qt creator to use those files when configuring.
                    The only downside to this is that you need to mount that image every time you want to cross compile.
                    I just made a script to mount the img then open qt creator and it gets me back to where I was.

                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      When calling configure again, did you do it on a clean tree ?

                      N Offline
                      N Offline
                      newpi
                      wrote on last edited by
                      #10

                      @SGaist Hi No i ran it on ~/Qt/5.5/Src$

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

                        When you re-call configure you must do it on a clean tree otherwise you might have problems

                        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