I was looking at the build architecture doc and noticed a reference to “Building OSMC completely from source” but I can’t find that doc.
I get the general instructions - git clone, apt install build-essential etc. but that doesn’t tell me which make command or shell script to run, and from the looks of git, the 4k+ uses the vero3 build?
I mean is there a “build everything into .debs” script, do do you have to go into every directory like:
cd osmc/package/mediacenter-osmc
make vero3
cd filesystem/
make vero3
cd osmc/packages/kernel-osmc
make vero3
.....
I had the idea of setting up a Debian bullseye (not bookworm?) aarch64 VM on my M4 mac to do the build - probably a lot quicker than on a 4k+ right? Or is armv7 still used not just aarch64 everywhere?
No – you need to build each package manually, like any other distribution with a package manager. It is not an ELEC based system.
You can build on macOS using something like Parallels. ARMv7 and Aarch64 will be handled just fine.
I couldn’t even build the armv7 toolchain on a debian11 aarch64 VM on the m4:
chroot: failed to run command ‘/debootstrap/debootstrap’: Exec format error
Filesystem configuration failed
Installing /etc/resolv.conf
Installing /etc/network/interfaces
Fixing TLS patch
chroot: failed to run command ‘mount’: Exec format error
I wonder if the chroot setup is expecting x86_64 or something (I might try on a Ryzen 7 later).
So I tried on a vero4k+ and that failed too but got a lot further - maybe I need to try a different git branch to master? a lot of the patches failed to apply:
2 out of 5 hunks FAILED -- saving rejects to file xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp.rej
1 out of 3 hunks FAILED -- saving rejects to file xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.h.rej
patching file xbmc/windowing/amlogic/WinSystemAmlogicGLESContext.h
Exiting build with return code 1
make: *** [Makefile:11: vero3] Error 1
make: Leaving directory '/mnt/package/mediacenter-osmc'
make: *** [Makefile:11: vero3] Error 2
Vero 4K/4K+ isn’t supported anymore. Check out the last supported tag.
yeah i was wondering which tag/branch was the final one for 4k+
so is V aarch64 completely (not armv7l) i thought it was still s905x just a faster one?
Currently Vero V is still armv7 on userland and aarch64 kernel
Builds fine on MacBook Air M2 (using Parallels)
1 Like