Can't build from sources [exit code 999]

  1. I pulled sources from git
  2. Setup.bat
  3. GenerateProjectFiles.bat
  4. Run VS and start build (Win64, DevelopmentEditor).

And got this

1>The system can not find the specified path
1>UnrealBuildTool.exe not found in …\Engine\Binaries\DotNET\UnrealBuildTool.exe
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: exit from command “…\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex” with code 999.
1>Build stop “ShaderCompileWorker.vcxproj” with error.

What’s wrong?

Full build log (Russian)

1>------ Сборка начата: проект: ShaderCompileWorker, Конфигурация: Development_Program x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: невозможно повторно импортировать "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props". Он уже был импортирован в "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". Скорее всего это связано с ошибкой при написании кода сборки. Повторный импорт будет пропущен. [C:\!UE4\UnrealEngine\Engine\Intermediate\ProjectFiles\ShaderCompileWorker.vcxproj]
1>Системе не удается найти указанный путь.
1>UnrealBuildTool.exe not found in ..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: выход из команды "..\..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex" с кодом 999.
1>Сборка проекта "ShaderCompileWorker.vcxproj" завершена с ошибкой.
2>------ Сборка начата: проект: UE4, Конфигурация: Development_Editor x64 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: невозможно повторно импортировать "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props". Он уже был импортирован в "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". Скорее всего это связано с ошибкой при написании кода сборки. Повторный импорт будет пропущен. [C:\!UE4\UnrealEngine\Engine\Intermediate\ProjectFiles\UE4.vcxproj]
2>Системе не удается найти указанный путь.
2>UnrealBuildTool.exe not found in ..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: выход из команды "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" с кодом 999.
2>Сборка проекта "UE4.vcxproj" завершена с ошибкой.
========== Сборка: успешно: 0, с ошибками: 2, без изменений: 2, пропущено: 0 ==========

Did you check inside …\Engine\Binaries\DotNET\UnrealBuildTool.exe if the exe is indeed there?

This path and app are exists

Did you ever find a solution to this? I have the same problem. Trying to install the gitHub unreal release version, I get to VS and when attempting a build the UE4 solution, it gives this message

Error MSB3073 The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild” exited with code 999. UE4 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

Same here with several Github sources and VS 2017 v15.9.8 anyone find a solution?

Can you specify your project and engine paths?

Just had the same problem (ue4.25, msvs2019 16.7.2).

Solved by changing path in Engine\Build\BatchFiles\Build.bat
from
..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe
to actual path to exe: ..\..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe (which have one “…” more)