# Building ue4 from source

**URL:** <https://forums.unrealengine.com/t/building-ue4-from-source/455028>\
**Category:** Pipeline & Plugins\
**Tags:** ue4-build, unreal-engine, question\
**Created:** [September 8, 2019, 3:34pm UTC](https://forums.unrealengine.com/t/building-ue4-from-source/455028 "2019-09-08T15:34:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mebton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mebton/32/914050_2.png) [@Mebton](https://forums.unrealengine.com/u/Mebton)\
**Post date:** [September 8, 2019, 3:34pm UTC](https://forums.unrealengine.com/t/building-ue4-from-source/455028/1 "2019-09-08T15:34:25Z")

</div>

Now i was building unreal engine from source with visual studio community 2019 following Ue4 doc i do all the steps and while building inside Visual studio it got failed and gave me These error and i have no clue how to solve them :

error 1 :- Error C1083 Cannot open include file: ‘metahost.h’: No such file or directory UE4 D:\Dunpix\GitHub\UnrealEngine\Engine\Source\Editor\SwarmInterface\Private\SwarmInterface.cpp 21

error 2 :- Error MSB3075 The command “…..\Build\BatchFiles\Build.bat -Target=“UE4Editor Win64 Development” -Target=“ShaderCompileWorker Win64 Development” -WaitMutex -FromMsBuild -2019” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 44

---

<div class="post-metadata">

**Author:** ![Mebton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mebton/32/914050_2.png) [@Mebton](https://forums.unrealengine.com/u/Mebton)\
**Post date:** [September 8, 2019, 10:01pm UTC](https://forums.unrealengine.com/t/building-ue4-from-source/455028/2 "2019-09-08T22:01:18Z")

</div>

Finally, i Got it done … thanks to that link that has the same problem and solved it …

> **[Can't compile from Github source metahost.h missing again](https://forums.unrealengine.com/questions/810057/cant-compile-from-github-source-metahosth-missing.html)**
>
> Just cleared out my old 4.18 build to put in a 4.2 build and it's throwing the old Cannot open include file: 'metahost.h': No such file or directory pretty much the same problem as shown here ...
