# Unreal Sources Compile For Linux Error

**URL:** <https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496>\
**Category:** Platform & Builds\
**Tags:** source, Linux, unreal-engine, CPP, question\
**Created:** [January 25, 2018, 8:24am UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496 "2018-01-25T08:24:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Legolax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Legolax](https://forums.unrealengine.com/u/Legolax)\
**Post date:** [January 25, 2018, 8:24am UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/1 "2018-01-25T08:24:11Z")

</div>

I Have donloaded git sources of Unreal and trying to compile it for Linux using instructions:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

But after compiling Visual Studio gives me the error that windows.h file not found

 ![228353-error2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/0/e703b0a26f3e003b4a9e46493c8f1970d3ddaaa3.jpeg)

I have tried to compile it for win64, and with this config everything is ok, but Linux config wont compile at all. What could be wrong?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69d05961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69d05961](https://forums.unrealengine.com/u/anonymous_user_69d05961)\
**Post date:** [January 25, 2018, 10:39am UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/2 "2018-01-25T10:39:36Z")

</div>

I guess this might be caused by several reasons like erroneous defines or a mistakenly selected or configured project for the build. While it´s clear that a Linux project should not include Windows headers its hard to figure out the reasons for that just from the generated errors. So it would be great if you could also provide the log of your build.

---

<div class="post-metadata">

**Author:** ![Legolax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Legolax](https://forums.unrealengine.com/u/Legolax)\
**Post date:** [January 25, 2018, 12:45pm UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/3 "2018-01-25T12:45:56Z")

</div>

Here is my log from Visual Studio:  
link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69d05961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69d05961](https://forums.unrealengine.com/u/anonymous_user_69d05961)\
**Post date:** [January 25, 2018, 1:33pm UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/4 "2018-01-25T13:33:32Z")

</div>

Thanks for the log. The error occurs in the BootstrapPackagedGame program which has the purpose to check for the prerequisites of UE4 and run `UE4PrereqSetup_....exe` if required. This is a Windows-only project and you should be good to go just not to build it for Linux or ignoring the error.

I hope this helps, although I´m wondering why it is trying to build it in your setup anyways.

---

<div class="post-metadata">

**Author:** ![Legolax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Legolax](https://forums.unrealengine.com/u/Legolax)\
**Post date:** [January 25, 2018, 1:38pm UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/5 "2018-01-25T13:38:26Z")

</div>

You mean to exclude BootstrapPackagedGame from compiling for Linux?  
I`ve just excluded it and it worked, that realy helped me.  
Thank you a lot for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69d05961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69d05961](https://forums.unrealengine.com/u/anonymous_user_69d05961)\
**Post date:** [January 25, 2018, 1:50pm UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/6 "2018-01-25T13:50:22Z")

</div>

Exactly. Just disable the project in the Configuration Manager in VS. Please note that you will have to do this again if you might have to re-generate your project files in the future.

---

<div class="post-metadata">

**Author:** ![Legolax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Legolax](https://forums.unrealengine.com/u/Legolax)\
**Post date:** [January 25, 2018, 1:53pm UTC](https://forums.unrealengine.com/t/unreal-sources-compile-for-linux-error/415496/7 "2018-01-25T13:53:20Z")

</div>

Ok, I`ll keep it in mind, thanx again!
