I find something that maybe is useful for building lr-yabashanshiro to Pi5 : https://github.com/libretro/yabause/commit/4e65871ec0a2582fa2dbe055fccb6573dbd68d4f . i will try it the newxt days to see if it will work.
update: i have try few things but no luck so far.