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.
  • G Giridhar
    13 Dec 2021, 11:53

    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 Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 13 Dec 2021, 12:08 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
    • G Offline
      G Offline
      Giridhar
      wrote on 13 Dec 2021, 12:18 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
      • G Giridhar
        13 Dec 2021, 11:53

        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 Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 13 Dec 2021, 12:23 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
        • G Offline
          G Offline
          Giridhar
          wrote on 13 Dec 2021, 17:40 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

          J 1 Reply Last reply 14 Dec 2021, 00:49
          0
          • G Giridhar
            13 Dec 2021, 17:40

            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.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 14 Dec 2021, 00:49 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

            G 1 Reply Last reply 17 Dec 2021, 10:02
            0
            • J JKSH
              14 Dec 2021, 00:49

              @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!

              G Offline
              G Offline
              Giridhar
              wrote on 17 Dec 2021, 10:02 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
              • A Offline
                A Offline
                artwaw
                wrote on 17 Dec 2021, 10:08 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

                G 1 Reply Last reply 17 Dec 2021, 13:05
                0
                • A artwaw
                  17 Dec 2021, 10:08

                  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!

                  G Offline
                  G Offline
                  Giridhar
                  wrote on 17 Dec 2021, 13:05 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
                  • G Offline
                    G Offline
                    Giridhar
                    wrote on 26 Dec 2021, 16:02 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

                    J 1 Reply Last reply 27 Dec 2021, 13:37
                    1
                    • G Giridhar
                      26 Dec 2021, 16:02

                      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

                      J Offline
                      J Offline
                      JKSH
                      Moderators
                      wrote on 27 Dec 2021, 13:37 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
                      • G Offline
                        G Offline
                        Giridhar
                        wrote on 7 Jan 2022, 14:39 last edited by Giridhar 1 Jul 2022, 15:37
                        #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
                        • G Offline
                          G Offline
                          Giridhar
                          wrote on 20 Mar 2022, 17:58 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 21 Mar 2022, 03:33 last edited by
                            #14
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • N Offline
                              N Offline
                              Nobuddy
                              wrote on 14 Nov 2024, 02:19 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 14 Nov 2024, 02:29 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