The steps over here should still be mostly valid: RenderTarget texture got deleted between RenderPresent
I’d also recommend to disable the rpi driver with --disable-video-rpi if you don’t use it.
There’s also the possibility to build a Debian package, but I don’t have any experience with that.