# Errors on UE 5.1 compilation

**URL:** <https://forums.unrealengine.com/t/errors-on-ue-5-1-compilation/1163340>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, CPP, question\
**Created:** [May 12, 2023, 8:02am UTC](https://forums.unrealengine.com/t/errors-on-ue-5-1-compilation/1163340 "2023-05-12T08:02:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martinzwiebler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Martinzwiebler](https://forums.unrealengine.com/u/Martinzwiebler)\
**Post date:** [May 12, 2023, 8:02am UTC](https://forums.unrealengine.com/t/errors-on-ue-5-1-compilation/1163340/1 "2023-05-12T08:02:07Z")

</div>

Hello everyone

I’m trying to compile UE 5.1 on Windows 11 with Visual Studios Community 2022 according to the guide here: [Building Unreal Engine from Source | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/DevelopmentSetup/BuildingUnrealEngine/)

I got an account and successfully forked and cloned Unreal 5.1.  
Setup.bat wasn’t working at first but I fixed that with another Commit.gitdeps.xml file.  
(see [https://forums.unrealengine.com/t/upcoming-disruption-of-service-impacting-unreal-engine-users-on-github/1155880https://forums.unrealengine.com/t/upcoming-disruption-of-service-impacting-unreal-engine-users-on-github/1155880](https://forums.unrealengine.com/t/upcoming-disruption-of-service-impacting-unreal-engine-users-on-github/1155880https://forums.unrealengine.com/t/upcoming-disruption-of-service-impacting-unreal-engine-users-on-github/1155880))

Once Setup.bat and GenerateProjectFiles.bat scripts ran through successfully I loaded the UE5.sln into Visual Studio

The output says:  
8\>Unhandled exception: Source file ‘C:\repos\UnrealEngine\Engine\Source\ThirdParty\Boost\boost-1\_70\_0\lib\Win64\boost\_atomic-vc142-mt-x64-1\_70.dll’ does not exist  
8\>while creating runtime dependencies for module ‘Boost’  
8\>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” exited with code 6.  
8\>Done building project “UE5.vcxproj” – FAILED.

The build.bat exiting with code 6 seems to the same as this thing here:

> <https://stackoverflow.com/questions/63527007/cannot-compile-unreal-engine-4-25-with-visual-studio-2019-7-2>

which proposed to delete  
Engine\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioDTE  
and rebuild.

This produces the same boost issue:  
8\>Unhandled exception: Source file ‘C:\repos\UnrealEngine\Engine\Source\ThirdParty\Boost\boost-1\_70\_0\lib\Win64\boost\_atomic-vc142-mt-x64-1\_70.dll’ does not exist  
8\>while creating runtime dependencies for module ‘Boost’  
and the UnrealEditor.exe is not coming out.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Martinzwiebler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Martinzwiebler](https://forums.unrealengine.com/u/Martinzwiebler)\
**Post date:** [May 15, 2023, 7:02am UTC](https://forums.unrealengine.com/t/errors-on-ue-5-1-compilation/1163340/2 "2023-05-15T07:02:21Z")

</div>

I switched to UE5.2 and the issue is not reproducable anymore.
