Error building UE5 from source: can't find DmlOperator

Has anyone else had this error building UE5 from source?

Severity	Code	Description	Project	File	Line	Suppression State
Error	C1083	Cannot open include 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	H:\UE5_TEST\UnrealEngine_Source\UnrealEngine\Engine\Plugins\Experimental\NeuralNetworkInference\Intermediate\Build\Win64\UnrealEditor\Development\ORT\Module.ORT.cpp	38	

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3073	The command "..\..\Build\BatchFiles\Rebuild.bat -Target="UnrealEditor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild" exited with code -1.	UE5	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets	50	

I’ve tried a couple of commits on ue5-main branch, including d383e6c (confirmed working by Unreal Binary Builder discord), but I keep getting the same error.

I’ve tried running Setup.bat and GenerateProjectFiles.bat again, and I’ve tried modifying the visual studio project properties to include the folder that visual studio can’t seem to open, but I keep getting the same error.

Can anyone help? Thanks

1 Like

Maybe try deleting that plugin, if you don’t need it? I am unaware if it’s a dependency on anything else.

I was able to resolve the issue by following the steps in this post - https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/9?u=zonc_sg

Basically creating the missing folder “…\Engine\Restricted\NotForLicensees\Build”, modifying BuildConfiguration.xml, and running GenerateProjectFiles.bat again.