# Source Build problem on UE5

**URL:** <https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, UE5-0\
**Created:** [January 3, 2022, 8:44am UTC](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813 "2022-01-03T08:44:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanthuns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanthuns](https://forums.unrealengine.com/u/Kanthuns)\
**Post date:** [January 3, 2022, 8:44am UTC](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813/1 "2022-01-03T08:44:04Z")

</div>

HI, i’ m trying to build the engine from the source several time but always end up[ on compilation error. I did follow the readme, launched the setup.bat and the generatescript aswell. I did try to clean the repo and try again but always endup with those errors:

> |Error|C1083|Cannot open source file: ‘…\Plugins\Experimental\NeuralNetworkInference\Source\ThirdParty\ONNXRuntime\_2021\_11\_30\Private\_DML\Windows\core\providers\dml\DmlExecutionProvider\src\Operators\DmlOperatorMeanVarianceNormalization.cpp’: No such file or directory|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Intermediate\ProjectFiles\c1xx|1||  
> |Error|C2036|‘const FWorldPartitionStreamingQuerySource \*’: unknown size|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers\Array.h|2712||  
> |Error|C1083|Cannot open source file: ‘…\Plugins\Experimental\NeuralNetworkInference\Source\ThirdParty\ONNXRuntime\_2021\_11\_30\Private\_DML\Windows\core\providers\dml\DmlExecutionProvider\src\Operators\DmlOperatorDynamicQuantizeLinear.cpp’: No such file or directory|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Intermediate\ProjectFiles\c1xx|1||  
> |Error|C1083|Cannot open source file: ‘…\Plugins\Experimental\NeuralNetworkInference\Source\ThirdParty\ONNXRuntime\_2021\_11\_30\Private\_DML\Windows\core\providers\dml\DmlExecutionProvider\src\Operators\DmlOperatorRecurrentNeuralNetwork.cpp’: No such file or directory|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Intermediate\ProjectFiles\c1xx|1||  
> |Error|C1083|Cannot open source file: ‘…\Plugins\Experimental\NeuralNetworkInference\Source\ThirdParty\ONNXRuntime\_2021\_11\_30\Private\_DML\Windows\core\providers\dml\DmlExecutionProvider\src\Operators\DmlOperatorInstanceNormalization.cpp’: No such file or directory|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Intermediate\ProjectFiles\c1xx|1||  
> |Error|C1083|Cannot open source file: ‘…\Plugins\Experimental\NeuralNetworkInference\Source\ThirdParty\ONNXRuntime\_2021\_11\_30\Private\_DML\Windows\core\providers\dml\DmlExecutionProvider\src\Operators\DmlOperatorLocalResponseNormalization.cpp’: No such file or directory|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Intermediate\ProjectFiles\c1xx|1||  
> |Error|C2027|use of undefined type ‘Metasound::Editor::FGraphBuilder’|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Plugins\Runtime\Metasound\Source\MetasoundEditor\Private\MetasoundNodeDetailCustomization.h|318||  
> |Error|C3861|‘GetEditorForGraph’: identifier not found|UE5|C:\Users\Quentin\Documents\Project\UnrealEngine\Engine\Plugins\Runtime\Metasound\Source\MetasoundEditor\Private\MetasoundNodeDetailCustomization.h|318||  
> |Warning|C4191|‘type cast’: unsafe conversion from ‘FARPROC’ to ‘PFN\_HidP\_GetVersionInternal’|UE5|C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared\hidpi.h|2062||  
> |Warning|C4191|‘type cast’: unsafe conversion from ‘FARPROC’ to ‘PFN\_HidP\_GetVersionInternal’|UE5|C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared\hidpi.h|2062||  
> |Warning|C4191|‘type cast’: unsafe conversion from ‘FARPROC’ to ‘PFN\_HidP\_GetVersionInternal’|UE5|C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared\hidpi.h|2062||  
> |Warning|C4191|‘type cast’: unsafe conversion from ‘FARPROC’ to ‘PFN\_HidP\_GetVersionInternal’|UE5|C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared\hidpi.h|2062||  
> |Error|MSB3073|The command …..\Build\BatchFiles\Build.bat -Target=UnrealEditor Win64 Development -Target=ShaderCompileWorker Win64 Development -Quiet -WaitMutex -FromMsBuild exited with code 6.|UE5|C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets|44||

Do I miss something?

---

<div class="post-metadata">

**Author:** ![Andrea\_92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andrea\_92](https://forums.unrealengine.com/u/Andrea_92)\
**Post date:** [January 3, 2022, 10:12am UTC](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813/2 "2022-01-03T10:12:28Z")

</div>

Some error for me. Wait developers fixing this bug

---

<div class="post-metadata">

**Author:** ![69\_Tensors](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/69_tensors/32/88718_2.png) [@69\_Tensors](https://forums.unrealengine.com/u/69_Tensors)\
**Post date:** [January 3, 2022, 3:00pm UTC](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813/3 "2022-01-03T15:00:26Z")

</div>

@Kanthuns, @Andrea_92

I fixed this error by moving the Git repo from the default location under the user home folder to a new root folder with a much shorter name and the error disappeared.

In my case, it was because the file path was too long for these files, specifically “…\Plugins\Experimental\NeuralNetworkInference\Source\ThirdParty\ONNXRuntime\_2021\_11\_30\Private\_DML\Windows\core\providers\dml\DmlExecutionProvider\src\Operators\DmlOperatorMeanVarianceNormalization.cpp”

---

<div class="post-metadata">

**Author:** ![Kanthuns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanthuns](https://forums.unrealengine.com/u/Kanthuns)\
**Post date:** [January 4, 2022, 8:26am UTC](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813/4 "2022-01-04T08:26:20Z")

</div>

Much more better, moving the directory to the root reduced the nummber of errors to 3.

> Severity Code Description Project File Line Suppression State  
> Error C3861 ‘GetEditorForGraph’: identifier not found UE5 C:\UnrealEngine\Engine\Plugins\Runtime\Metasound\Source\MetasoundEditor\Private\MetasoundNodeDetailCustomization.h 318   
> Error C2036 ‘const FWorldPartitionStreamingQuerySource \*’: unknown size UE5 C:\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers\Array.h 2712   
> Error C2027 use of undefined type ‘Metasound::Editor::FGraphBuilder’ UE5 C:\UnrealEngine\Engine\Plugins\Runtime\Metasound\Source\MetasoundEditor\Private\MetasoundNodeDetailCustomization.h 318

---

<div class="post-metadata">

**Author:** ![Kanthuns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanthuns](https://forums.unrealengine.com/u/Kanthuns)\
**Post date:** [February 16, 2022, 7:52am UTC](https://forums.unrealengine.com/t/source-build-problem-on-ue5/269813/5 "2022-02-16T07:52:09Z")

</div>

I succeed by using the test branch (ue5-release-engine-test) and the staging one.  
I’m not trying anymore the other ue5 branches.
