Can't generate UE4.sln project files

I’m trying to generate Visual Studio project files, most notably UE4.sln because I want to build UE4 from source, yet I get errors in log that some folder does not exist (see image attached). Indeed the folder doesn’t exist. How do I workaround this?