Crosscompilation - the lazy way. Possible?
-
Good evening,
I recently revisited my plans to do something with raspi gathering dust in the drawer and decided to code a bit for it.I discovered same tutorial as described here https://forum.qt.io/topic/87988/compiling-qt-on-windows-for-cross-compilation-with-raspberry-fails-project-error-cannot-run-target-compiler/2 - https://wiki.qt.io/RaspberryPi2EGLFS
As @jsulm advised in one of the posts I am able to setup Linux VM for myself but I am lazy - my everyday computer is Mac, every other system works via VMs. Is there a way to setup cross compilation for RasPi 32bit on 64bit macOS that can't even run anything 32bit? Honest question, I never touched cross compilation tasks.
If there is no such way (and I assume that is the case here) I have no problems working through the VM, it's just I am lazy.
Many thanks in advance!
-
Have you looked into Yocto? It is, or at least was a Linux to Linux cross compile system/distribution/pain in the neck. I see there are blog posts about using it from macOS and Windows via docker, and something about a web interface.
https://www.yoctoproject.org/software-overview/development-environment/
The pain in the neck part of cross compilation is keeping the process from accidentally using an incompatible component from the host system.