The most straightforward method to compile the engine reliably I'd say is with the docker container: https://github.com/beyond-all-reason/spring/wiki/SpringRTS-B...
Edit: spelling,links