Building apps from source on CM4 64 bit

Hey folks, as you can tell I’m new to the world of arm and Linux.

I’m trying to build mgba on the DevTerm and a few other things.

Has anyone been able to build mgba? Any tips on how generally to build apps from source?