Compiling OSMC nightlies (Leia) on Raspberry Pi Vero 4k - StormTrooper/osmc GitHub Wiki

For the latest nightlies you will first need to upgrade to stretch:

https://discourse.osmc.tv/t/testing-osmc-images-for-debian-stretch/55016

Once upgraded then install dependencies for building:

sudo apt-get install make git

Clone git:

git clone http://github.com/Stormtrooper/osmc -b gmc-18

Update source list. Edit

sudo nano /etc/apt/sources.list

And add:

deb http://apt.osmc.tv stretch-devel main

Then run update:

sudo apt-get update

sudo apt-get dist-upgrade

Building rbp2/Vero2/Vero3 Image

cd osmc/package/mediacenter-next-osmc/

rbp2/rbp3: make rbp2

Vero 2: make vero2

Vero 4K: make vero3

Building rbp1 Image

cd osmc/package/mediacenter-next-osmc/

make rbp1