# Unable to build UE4 from source

**URL:** <https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281>\
**Category:** Platform & Builds\
**Tags:** source, build, unreal-engine, question\
**Created:** [February 25, 2018, 9:06am UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281 "2018-02-25T09:06:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_adb01925](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_adb01925](https://forums.unrealengine.com/u/anonymous_user_adb01925)\
**Post date:** [February 25, 2018, 9:06am UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281/1 "2018-02-25T09:06:00Z")

</div>

I have downloaded the Release version of the engine from Github and am attempting to follow the instructions in this documentation:

> **[Building Unreal Engine from Source](https://docs.unrealengine.com/5.2/en-US/building-unreal-engine-from-source/)**
>
> Compiling Unreal Engine from source code.

When I get to step 5 (Build UE4), I get the following errors:

1\>------ Build started: Project: ShaderCompileWorker, Configuration: Development\_Program x64 ------

1\>The system cannot find the path specified.

1\>E:\Microsoft Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex” exited with code 3.

1\>Done building project “ShaderCompileWorker.vcxproj” – FAILED.

2\>------ Build started: Project: UE4, Configuration: Development\_Editor x64 ------

2\>The system cannot find the path specified.

2\>E:\Microsoft Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex” exited with code 3.

2\>Done building project “UE4.vcxproj” – FAILED.

========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

Does anyone know what might be causing this? Any suggestions would be much appreciated.

---

<div class="post-metadata">

**Author:** ![AngeryDragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angerydragon/32/551941_2.png) [@AngeryDragon](https://forums.unrealengine.com/u/AngeryDragon)\
**Post date:** [February 25, 2018, 1:55pm UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281/2 "2018-02-25T13:55:06Z")

</div>

That’s weird, Try first build “ShaderCompileWorker”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_adb01925](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_adb01925](https://forums.unrealengine.com/u/anonymous_user_adb01925)\
**Post date:** [February 25, 2018, 11:06pm UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281/3 "2018-02-25T23:06:56Z")

</div>

Thanks, I just tried that but no luck:

1\>------ Build started: Project: ShaderCompileWorker, Configuration: Development\_Program x64 ------  
1\>The system cannot find the path specified.  
1\>E:\Microsoft Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex” exited with code 3.  
1\>Done building project “ShaderCompileWorker.vcxproj” – FAILED.  
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_adb01925](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_adb01925](https://forums.unrealengine.com/u/anonymous_user_adb01925)\
**Post date:** [February 26, 2018, 4:42am UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281/4 "2018-02-26T04:42:21Z")

</div>

I figured this out. Still not sure why the pathing issue occurred, but you can use Build.bat to build the engine outside of Visual Studio. If ShaderCompileWorker is not built, you can use Build.bat to build ShaderCompileWorker too. This worked for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_adb01925](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_adb01925](https://forums.unrealengine.com/u/anonymous_user_adb01925)\
**Post date:** [February 26, 2018, 2:28pm UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281/5 "2018-02-26T14:28:34Z")

</div>

Ok, update. So I managed to build the engine by running Build.bat UE4Editor Win64 Development, as suggested in this post:

> **[Error MSB3073: Exited with Code 3](https://forums.unrealengine.com/questions/15967/error-msb3073-exited-with-code-3.html)**
>
> Unfortunately the error list sometimes gives useless information when build commands fail; this is one of those cases. Does the Output window show any more information relating to the error? It often lists the complete output from the command which...

But I still can’t open the editor. If I attempt to run Local Windows Debugger, it says that ShaderCompileWorker is out of date, and prompts me to rebuild it. But the build fails:

1\>Done building project “ShaderCompileWorker.vcxproj” – FAILED.

2\>------ Build started: Project: UE4, Configuration: Development\_Editor x64 ------

2\>The system cannot find the path specified.

2\>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex-2017” exited with code 3.

2\>Done building project “UE4.vcxproj” – FAILED.

3\>------ Skipped Deploy: Project: ShaderCompileWorker, Configuration: Development\_Program x64 ------

3\>Project not selected to build for this solution configuration

========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

========== Deploy: 0 succeeded, 0 failed, 1 skipped ==========

If I attempt to launch the editor without building ShaderCompileWorker, it obviously just throws up an error saying it was unable to launch ShaderCompileWorker.exe.

Any other ideas?

---

<div class="post-metadata">

**Author:** ![risbansal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@risbansal](https://forums.unrealengine.com/u/risbansal)\
**Post date:** [April 16, 2024, 3:17am UTC](https://forums.unrealengine.com/t/unable-to-build-ue4-from-source/418281/6 "2024-04-16T03:17:41Z")

</div>

Adding for beginners like me. Command to run the Build.bat

.\Build.bat UE4Editor Win64 Development

Location for Build.bat:

C:\UnrealEngine\Engine\Build\BatchFiles
