UE-release VS2019 build failed

I’m following offical guidance about setup from source code. When i tried to build source code on VS2019 this output shows at the end after 6 hours:

D:\Microsoft Visual Studio\vs 2019\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3075: “chcp 65001 >NUL && …..\Build\BatchFiles\Build.bat -Target=“UE4Editor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” exited with code 5… Please verify that you have sufficient rights to run this command.
Done building project “UE4.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Thanks in advance.

same here. super frustrating!

Have you tried closing any process related to Unreal Engine and Epic Launcher? The error usually has something to do with related process conflicting with the file locking.

Yeah, no luck.

Are there any previous erros? Like in the comp.h file or something else with implicit typ conversion?

I had the same error, my fix:
Open the UE4 sln. in VS

  1. Open this File: [Solution-Explorer in Visual Studio] → Programs → UnrealBuildTool → Platform → Windows → VCToolChain.cs
  2. Add in Line 492: Arguments.Add(“/wd4800”); // 4800: Implicit conversion from ‘type’ to bool. Possible information loss
  3. Save
  4. Rebuild

This is a temporary bug fix. I think the problem is in the source of the engine.

[Info]
i build UE 4.24 in VSC 2019 16.6.4

Yes this is working for me. I have updated the egine for Cpp17, then it all happend BTW.

I have tried the followings, but those where not working: