# Building engine source. Fails on Plugin

**URL:** <https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, UE5-0\
**Created:** [September 22, 2021, 6:38am UTC](https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059 "2021-09-22T06:38:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NangiDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NangiDev](https://forums.unrealengine.com/u/NangiDev)\
**Post date:** [September 22, 2021, 6:38am UTC](https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059/1 "2021-09-22T06:38:58Z")

</div>

When building UE5 from source I get this error.

[https://pastebin.com/raw/y4U7qnhj](https://pastebin.com/raw/y4U7qnhj)

It seems as the plugin CADLibrary isn’t building properly.

There is this menthod HashCombine that fails because it is not given the correct number of arguments. So of course I would like to know how to fix this, but I would also like to know how I could go by disabling Plugins in the build process. I’m pretty confident that I don’t need the CADLibrary.

How I built the engine:

- Clone git repo, branch UE5-main
- Inside repo dir I run Setup.bat, then GenerateProjectFiles.bat
- Inside Visual Studio 2019 I change configuration to ‘Development Editor’ and ‘Win64’ architechture.
- Right click UE5 project and select build.
- About 1.5 hours in the build fails.

EDIT: I looked over my Visual Studio settings and found I didn’t have the Unreal Engine build installed. So I followed this guide to be sure I didn’t miss anything [Setting Up Visual Studio for Unreal Engine | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/ProductionPipelines/DevelopmentSetup/VisualStudioSetup/)

Appreciate any help I can get!  
Thanks

---

<div class="post-metadata">

**Author:** ![NangiDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NangiDev](https://forums.unrealengine.com/u/NangiDev)\
**Post date:** [September 23, 2021, 1:43pm UTC](https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059/2 "2021-09-23T13:43:25Z")

</div>

Setting up the visual studio settings didn’t fix the problem.

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [September 23, 2021, 7:30pm UTC](https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059/3 "2021-09-23T19:30:09Z")

</div>

Hi @NangiDev,  
The git repo [ue5-main] often fails as its updated many times a day and may not be reliable at its cutting edge.

I have made available a version that compiles and works on Vs 2019 and VS 2022 Preview  
[Visual Studio 2022 Preview is 64 bit and compiles and runs UE 5.0 EA approximately 20% FASTER - Development Discussion / Unreal Engine 5 Early Access - Unreal Engine Forums](https://forums.unrealengine.com/t/visual-studio-2022-preview-is-64-bit-and-compiles-and-runs-ue-5-0-ea-approximately-20-faster/237164)

Ii rebuild this every new version of VS 2022 Preview  
because it works with 2019 as well.

I cannot fix [ue5-main], because its Epic Staff version.

---

<div class="post-metadata">

**Author:** ![NangiDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NangiDev](https://forums.unrealengine.com/u/NangiDev)\
**Post date:** [September 24, 2021, 7:06am UTC](https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059/4 "2021-09-24T07:06:21Z")

</div>

Thanks! I will try your example and let you know if it works! 🙂

---

<div class="post-metadata">

**Author:** ![NangiDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NangiDev](https://forums.unrealengine.com/u/NangiDev)\
**Post date:** [September 28, 2021, 6:27am UTC](https://forums.unrealengine.com/t/building-engine-source-fails-on-plugin/252059/5 "2021-09-28T06:27:56Z")

</div>

Solution for me at the moment was to checkout the latest released commit for Early-access. Then I manage to get further.  
[https://github.com/NangiDev/UnrealEngine/commit/87dc6edb4524a22fc66f68b867b3a69406dc3de7](https://github.com/NangiDev/UnrealEngine/commit/87dc6edb4524a22fc66f68b867b3a69406dc3de7)

We’ll see if I get stuck somewhere else 🙂
