Building the engine from source

I have to run project with the engine compiled from source.

I did all steps according with instruction:
https://github.com/EpicGames/UnrealEngine

I successfully run editor that built from source. After this I switch UE version on source build.
I generate project and tried to build “Development Editor”, but I caught huge amount of following errors:

Error	CS0246	The type or namespace name 'UE4Build' could not be found (are you missing a using directive or an assembly reference?)	Android.Automation	...\UnrealEngine\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs	1240	Active
Error	CS0246	The type or namespace name 'StageTarget' could not be found (are you missing a using directive or an assembly reference?)	Android.Automation	...\UnrealEngine\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs	117	Active
Error	CS0246	The type or namespace name 'ProjectParams' could not be found (are you missing a using directive or an assembly reference?)	AllDesktop.Automation	...\UnrealEngine\Engine\Source\Programs\AutomationTool\AllDesktop\AllDesktopPlatform.Automation.cs	37	Active
Error	CS0246	The type or namespace name 'ProjectParams' could not be found (are you missing a using directive or an assembly reference?)	Android.Automation	...\UnrealEngine\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs	30	Active
Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0246	The type or namespace name 'PakType' could not be found (are you missing a using directive or an assembly reference?)	Android.Automation	...\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs	1225	Active
Error	CS0246	The type or namespace name 'ExitCode' could not be found (are you missing a using directive or an assembly reference?)	AutomationTool	...\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs	129	Active
Error	CS0246	The type or namespace name 'AutomationException' could not be found (are you missing a using directive or an assembly reference?)	Android.Automation	...\UnrealEngine\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs	196	Active

Output:

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>  Creating makefile for ShaderCompileWorker (no existing makefile)
1>  Target is up to date
2>------ Build started: Project: SAD, Configuration: Development_Editor x64 ------
2>  Creating makefile for SADEditor (no existing makefile)
2>  Performing 2 actions (4 in parallel)
2>  Module.SAD.cpp
2>e:\unreal\projects\sad\unreal\sad\source\sad\player\sadspectator.cpp(115): error C4868: compiler may not enforce left-to-right evaluation order in braced initializer list
2>e:\unreal\projects\sad\unreal\sad\source\sad\player\sadspectator.cpp(116): error C4868: compiler may not enforce left-to-right evaluation order in braced initializer list
2>e:\unreal\projects\sad\unreal\sad\source\sad\player\sadspectator.cpp(117): error C4868: compiler may not enforce left-to-right evaluation order in braced initializer list
2>  -------- End Detailed Actions Stats -----------------------------------------------------------
2>ERROR : UBT error : Failed to produce item: E:\unreal\projects\sad\unreal\SAD\Binaries\Win64\UE4Editor-SAD.dll
2>  Total build time: 33.39 seconds
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command "D:\EW_projects\unreal\source\UnrealEngine\Engine\Build\BatchFiles\Build.bat SADEditor Win64 Development "E:\unreal\projects\sad\unreal\SAD\SAD.uproject" -waitmutex" exited with code -1.
========== Build: 1 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========

What am I doing wrong?

Look at this line:
e:\unreal\projects\sad\unreal\sad\source\sad\player\sadspectator.cpp(117): error C4868: compiler may not enforce left-to-right evaluation order in braced initializer list

You used constructor as braced initializer list. Just use simple constructor everywhere to avoid similar troubles :slight_smile: