[TUTORIAL] Cross compile for RaspberryPi 4 from MAC
-
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.1I 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
-
@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 :-)
-
@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. -
@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!
-
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.
-
@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.
-
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
-
@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.
-
This post is deleted!