Could not successfully build retroarch - RetroArch - installation error on Raspberry Pi 4 8GB with DietPi x64

I’ve tried installing RetroPie on a newly installed Dietpi x64 build using the guide provided here:

However, I’ve encountered the following error:

gfx/drivers_context/vc_egl_ctx.c:49:10: fatal error: EGL/eglext_brcm.h: No such file or directory

#include <EGL/eglext_brcm.h>


compilation terminated.

make: *** [Makefile:206: obj-unix/release/gfx/drivers_context/vc_egl_ctx.o] Error 1

make: *** Waiting for unfinished jobs…


Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators (/root/RetroPie-Setup/tmp/build/retroarch/retroarch not found).

Any way of making it work?


maybe it’s not working on Raspberry OS 64bit Beta. Did you tried using the normal 32bit image as well?