A Pi 5 is much faster for running ARM code than emulation by QEMU on an x86. Even so, a good x86 server will have 64 cores or more and most build scripts can run in parallel.Using other pi's for building when you have powerful pc, doesn't looks like proper solution. About QEMU, I know that it's possible to emulate raspi3ap with it, mount raspbian image and bult software inside virtual machine. It's smart fix, but not a solution at all. Is there actual buildroot or something like this? How official raspbian software building for repos?I think you can place the SD card from the Zero 2 into a Pi 4 or 5, boot it and then compile OpenCV natively using the faster machine. After that put the card back in the Zero 2 and you're done.
Apparently the Debian build package system "now has good support" for cross compiling.
https://wiki.debian.org/CrossCompiling
I have never tried this.
Raspbian started out as an enthusiast project to rebuild Debian software-float 32-bit ARM for the original ARMv6 Pi with hardware float. I'd be surprised if cross compiling is used, but maybe that's how Debian builds their armel packages.
The Ampere Altra and recent Graviton processors are 64-bit only but Graviton 1, 2 and 3 can build Raspbian packages in a 32-bit chroot. I'd try that over cross compiling because the build process is already complicated enough.
Statistics: Posted by ejolson — Sun Nov 17, 2024 1:16 pm