Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. [TUTORIAL] Cross compile for RaspberryPi 4 from MAC

[TUTORIAL] Cross compile for RaspberryPi 4 from MAC

Scheduled Pinned Locked Moved Brainstorm
16 Posts 7 Posters 4.7k 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.
  • GiridharG Offline
    GiridharG Offline
    Giridhar
    wrote on last edited by Giridhar
    #1

    Hello everybody. Some days ago I correctly made this cross-environment:

    Host Machine: MacBook Pro 13", Intel with macOS Monterey
    TargetMachine: Raspberry Pi 4B
    Qt Version: 6.2.1

    I would make a tutorial on GitHub because there are few information about the creation of this environment. Is this a good idea? Could be to help of someone or I am the only one that has encountered problems with it?

    Link to tutorial: here

    Founder & Developer of: https://pidmx.net
    Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

    jsulmJ J.HilkJ 2 Replies Last reply
    4
    • GiridharG Giridhar

      Hello everybody. Some days ago I correctly made this cross-environment:

      Host Machine: MacBook Pro 13", Intel with macOS Monterey
      TargetMachine: Raspberry Pi 4B
      Qt Version: 6.2.1

      I would make a tutorial on GitHub because there are few information about the creation of this environment. Is this a good idea? Could be to help of someone or I am the only one that has encountered problems with it?

      Link to tutorial: here

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Giridhar said in Should I make a tutorial?:

      Is this a good idea?

      This is for sure a good idea!
      I'm sure there are other people working with Mac who want or will in future want to cross compile for RPi.

      Maybe you could even contribute to https://wiki.qt.io/Raspberry_Pi_Beginners_Guide :-)

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

      1 Reply Last reply
      2
      • GiridharG Offline
        GiridharG Offline
        Giridhar
        wrote on last edited by
        #3

        @jsulm said in Should I make a tutorial?:

        Maybe you could even contribute to https://wiki.qt.io/Raspberry_Pi_Beginners_Guide :-)

        Hmmm, I would not to create problems with Qt wiki :-)
        Since my environment still have some problems (for example gdb doesn't run properly), could be better to make a public repo on GitHub and creating/fix issue directly there.

        Founder & Developer of: https://pidmx.net
        Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

        1 Reply Last reply
        0
        • GiridharG Giridhar

          Hello everybody. Some days ago I correctly made this cross-environment:

          Host Machine: MacBook Pro 13", Intel with macOS Monterey
          TargetMachine: Raspberry Pi 4B
          Qt Version: 6.2.1

          I would make a tutorial on GitHub because there are few information about the creation of this environment. Is this a good idea? Could be to help of someone or I am the only one that has encountered problems with it?

          Link to tutorial: here

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Giridhar go for it, it's something I myself have great interest in in! :D


          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.

          1 Reply Last reply
          1
          • GiridharG Offline
            GiridharG Offline
            Giridhar
            wrote on last edited by
            #5

            Okay, I'll start this job in my spare time. At the moment I am full due to university and work. I will put the link to the repo when I get started.

            Founder & Developer of: https://pidmx.net
            Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

            JKSHJ 1 Reply Last reply
            0
            • GiridharG Giridhar

              Okay, I'll start this job in my spare time. At the moment I am full due to university and work. I will put the link to the repo when I get started.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @Giridhar said in Should I make a tutorial?:

              Okay, I'll start this job in my spare time. At the moment I am full due to university and work. I will put the link to the repo when I get started.

              I look forward to it!

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              GiridharG 1 Reply Last reply
              0
              • JKSHJ JKSH

                @Giridhar said in Should I make a tutorial?:

                Okay, I'll start this job in my spare time. At the moment I am full due to university and work. I will put the link to the repo when I get started.

                I look forward to it!

                GiridharG Offline
                GiridharG Offline
                Giridhar
                wrote on last edited by
                #7

                @JKSH

                Ok, this is the link to the tutorial.

                https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

                As I said, I will update it in my free time. There is only a problem: I deleted the configuration folder so I need some days to prepare everything again. I will do it with the 6.2.2 version.

                Founder & Developer of: https://pidmx.net
                Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

                1 Reply Last reply
                2
                • artwawA Offline
                  artwawA Offline
                  artwaw
                  wrote on last edited by
                  #8

                  This is good. I myself work on macOS with RasPi but after failing a few times to set this up properly my way to go is with Remote Desktop access and compile directly on the Pi. It works but damn it is slow... I am happy to try out your way!

                  For more information please re-read.

                  Kind Regards,
                  Artur

                  GiridharG 1 Reply Last reply
                  0
                  • artwawA artwaw

                    This is good. I myself work on macOS with RasPi but after failing a few times to set this up properly my way to go is with Remote Desktop access and compile directly on the Pi. It works but damn it is slow... I am happy to try out your way!

                    GiridharG Offline
                    GiridharG Offline
                    Giridhar
                    wrote on last edited by
                    #9

                    @artwaw said in Should I make a tutorial?:

                    This is good. I myself work on macOS with RasPi but after failing a few times to set this up properly my way to go is with Remote Desktop access and compile directly on the Pi. It works but damn it is slow... I am happy to try out your way!

                    Yes, I used the same approach for the latest 6 months. The input lag is to hateful.

                    Founder & Developer of: https://pidmx.net
                    Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

                    1 Reply Last reply
                    0
                    • GiridharG Offline
                      GiridharG Offline
                      Giridhar
                      wrote on last edited by Giridhar
                      #10

                      Hello guys. I'm writing the tutorial but I've encountered some problems making the toolchain because the tool "Crosstool-ng" stuck on building m4 and I don't understand why. I'm so sorry. Working on it.

                      EDIT: After 10 hours of trying I compiled m4, hope I won't find new strange and random errors :D

                      Founder & Developer of: https://pidmx.net
                      Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

                      JKSHJ 1 Reply Last reply
                      1
                      • GiridharG Giridhar

                        Hello guys. I'm writing the tutorial but I've encountered some problems making the toolchain because the tool "Crosstool-ng" stuck on building m4 and I don't understand why. I'm so sorry. Working on it.

                        EDIT: After 10 hours of trying I compiled m4, hope I won't find new strange and random errors :D

                        JKSHJ Offline
                        JKSHJ Offline
                        JKSH
                        Moderators
                        wrote on last edited by
                        #11

                        @Giridhar said in Should I make a tutorial?:

                        Hello guys. I'm writing the tutorial but I've encountered some problems making the toolchain because the tool "Crosstool-ng" stuck on building m4 and I don't understand why. I'm so sorry. Working on it.

                        EDIT: After 10 hours of trying I compiled m4, hope I won't find new strange and random errors :D

                        You have nothing to apologize for! :D Finding and fixing problems is part of a programmer's life.

                        All the best.

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        1
                        • GiridharG Offline
                          GiridharG Offline
                          Giridhar
                          wrote on last edited by Giridhar
                          #12

                          There is a good news. I compiled a Qt Project from MacOS to raspberry pi using Cmake instead of Qmake.
                          BTW I'm still making the tutorial to make the cross-compile environment.

                          Founder & Developer of: https://pidmx.net
                          Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

                          1 Reply Last reply
                          1
                          • GiridharG Offline
                            GiridharG Offline
                            Giridhar
                            wrote on last edited by
                            #13

                            I would like to announce that I've finished to write the tutorial.
                            You can find it here.

                            Hoping that somebody of you could help me to improve it :-).

                            Founder & Developer of: https://pidmx.net
                            Mac - Qt6 for Rpi4 CrossCompile Environment tutorial: https://github.com/giridhar123/Qt-Rpi4-Mac-Cross-Compile

                            1 Reply Last reply
                            3
                            • Kent-DorfmanK Offline
                              Kent-DorfmanK Offline
                              Kent-Dorfman
                              wrote on last edited by
                              #14
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • N Offline
                                N Offline
                                Nobuddy
                                wrote on last edited by
                                #15

                                Any updates to this tutorial? Trying on an M4 Mac and the crosstool-ng build is crapping out when trying to build make.

                                1 Reply Last reply
                                0
                                • N Offline
                                  N Offline
                                  Nobuddy
                                  wrote on last edited by
                                  #16
                                  This post is deleted!
                                  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