So basicaly UHT fails while executing theese lines:
if (GEngineLoop.PreInit(*ShortCmdLine) != 0)
{
UE_LOG(LogCompile, Error, TEXT("Failed to initialize the engine (PreInit failed)."));
return ECompilationResult::CrashOrAssert;
}
So my guess is that it’s not related to UHT itself. Does anyone have a clue on how to diagnose this further (except for rebuilding the entire engine friom sources)?