Compile Mesa from source (note: doing this makes it difficult to get back to a clean package install):
- Allow sources to be installed via apt:
- Bookworm and earlier: Uncomment the
deb-srcline inside/etc/apt/sources.list.d/raspi.listand save it - Trixie and later: Edit
/etc/apt/sources.list.d/raspi.sourcesand add set Types toTypes: deb deb-srcand save it
- Bookworm and earlier: Uncomment the
- Install build dependencies:
sudo apt update && sudo apt build-dep mesa -ysudo apt install python3-pycparser
- Install later version of meson:
sudo apt remove meson -y