# Building for Windows on Linux

**URL:** <https://forums.unrealengine.com/t/building-for-windows-on-linux/358294>\
**Category:** Platform & Builds\
**Tags:** Linux, build, unreal-engine, packaging-projects, question\
**Created:** [May 23, 2016, 12:57pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294 "2016-05-23T12:57:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [May 23, 2016, 12:57pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/1 "2016-05-23T12:57:00Z")

</div>

We have a Continuous Integration server (TeamCity) running on Linux. Now I want to use that server to auto-build our UE4 projects as well.

Is there an easy way to compile a UE4 project for Windows on Linux?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [May 23, 2016, 2:21pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/2 "2016-05-23T14:21:21Z")

</div>

Hey -

It is possible to use a cross compile toolchain to compile for Linux using Windows. Here is documentation on the setup and process:

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [May 23, 2016, 2:26pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/3 "2016-05-23T14:26:57Z")

</div>

Thanks, but I was asking for the other way round – we have a Linux server, and I want to build for Windows on that Linux server, if there is any chance to do so.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [May 23, 2016, 2:57pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/4 "2016-05-23T14:57:40Z")

</div>

My apologies for misunderstanding. Unfortunately it is possible to only build for Linux when working on Linux. To build/package for Windows you would likely need to copy the project to a Windows machine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [May 23, 2016, 3:01pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/5 "2016-05-23T15:01:22Z")

</div>

Too bad, I was hoping we could use our existing CI infrastructure … Anyways, thanks for your feedback.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [March 13, 2017, 6:18pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/6 "2017-03-13T18:18:14Z")

</div>

Hey codywohlers-

You would need to find a Linux-to-Windows cross-compile toolchain. Additionally, an HLSL compiler would be necessary to compile the shaders as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b0280162](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b0280162](https://forums.unrealengine.com/u/anonymous_user_b0280162)\
**Post date:** [January 20, 2018, 9:41am UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/7 "2018-01-20T09:41:38Z")

</div>

One year on, may I ask how epics official take on this matter is?  
A Windows compiler for Linux exists for 20 years now :

An UE HLSL cross compiler is defined here:

I have just a little cross compiling experience. But generally you could compile for a toaster on Linux system. Everything is there. Will there ever be a a feature “compile for Windows” in the unreal editor or not?

---

<div class="post-metadata">

**Author:** ![Darkentik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Darkentik](https://forums.unrealengine.com/u/Darkentik)\
**Post date:** [November 7, 2018, 9:03pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/8 "2018-11-07T21:03:18Z")

</div>

Any Updates on this?  
I´m searching for a cross compiler to use my linux server for compiling WindowsNoEditor and automatically deploy the project.  
I hope there will be a solution!  
Thanks.

---

<div class="post-metadata">

**Author:** ![Lucas\_Stern](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lucas\_Stern](https://forums.unrealengine.com/u/Lucas_Stern)\
**Post date:** [August 3, 2020, 9:28am UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/9 "2020-08-03T09:28:52Z")

</div>

Im too am curios if this is possible or not

---

<div class="post-metadata">

**Author:** ![Hunanbean](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hunanbean](https://forums.unrealengine.com/u/Hunanbean)\
**Post date:** [June 12, 2021, 12:19am UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/10 "2021-06-12T00:19:04Z")

</div>

I too am hoping for an official chain/integration path.

Thank you.

---

<div class="post-metadata">

**Author:** ![Zananok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zananok](https://forums.unrealengine.com/u/Zananok)\
**Post date:** [February 25, 2022, 4:28pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/11 "2022-02-25T16:28:23Z")

</div>

I too am strongly hoping for this possibility.

Best regards,  
Zananok

---

<div class="post-metadata">

**Author:** ![flooferlands](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flooferlands/32/570522_2.png) [@flooferlands](https://forums.unrealengine.com/u/flooferlands)\
**Post date:** [September 12, 2022, 7:32am UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/12 "2022-09-12T07:32:03Z")

</div>

Bump?  
I’m trying to permanently switch to Linux for desktop usage and i keep having to switch back to Windows after a few weeks because of Unreal Engine  
I’ve found the engine to actually be very stable and reliable on Linux so far _(minus the fact the UI is a little slow)_ but the fact we can’t export our games to Windows is absolutely catastrophic, seeing Windows is over 90% of the market.

---

<div class="post-metadata">

**Author:** ![dwhite\_anyar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dwhite\_anyar](https://forums.unrealengine.com/u/dwhite_anyar)\
**Post date:** [February 1, 2023, 7:15pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/13 "2023-02-01T19:15:15Z")

</div>

Bumping once again. Was hoping to run Unreal Engine 5 in a Linux container and be able to package for Windows considering it’s much easier to run the engine in a Linux container than a Windows container, but it’s looking like the only option would be to use a Windows container (which luckily does have support but does not have NVIDIA container toolkit).

---

<div class="post-metadata">

**Author:** ![maurorisonho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maurorisonho/32/594467_2.png) [@maurorisonho](https://forums.unrealengine.com/u/maurorisonho)\
**Post date:** [March 22, 2023, 7:59pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/14 "2023-03-22T19:59:01Z")

</div>

It would be interesting, we created a ticket on the Unreal Engine github, requesting the creation of this feature ([https://github.com/EpicGames/UnrealEngine](https://github.com/EpicGames/UnrealEngine)). I think the binaries could be created using Vulkan as an option to DirectX, making it cross-platform.

---

<div class="post-metadata">

**Author:** ![B4rr3l](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B4rr3l](https://forums.unrealengine.com/u/B4rr3l)\
**Post date:** [July 11, 2023, 8:07pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/15 "2023-07-11T20:07:01Z")

</div>

same problem here, using linux cause its much better to work but can´t build for windows.

---

<div class="post-metadata">

**Author:** ![jb54s8iw451](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jb54s8iw451](https://forums.unrealengine.com/u/jb54s8iw451)\
**Post date:** [September 24, 2023, 1:51pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/16 "2023-09-24T13:51:18Z")

</div>

i would switch to linux in a heartbeat if this were possible

---

<div class="post-metadata">

**Author:** ![TreeTimesFast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TreeTimesFast](https://forums.unrealengine.com/u/TreeTimesFast)\
**Post date:** [January 24, 2024, 7:50pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/17 "2024-01-24T19:50:42Z")

</div>

Bump - having this would really help

---

<div class="post-metadata">

**Author:** ![vikinghelmet99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vikinghelmet99](https://forums.unrealengine.com/u/vikinghelmet99)\
**Post date:** [September 10, 2024, 11:17pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/18 "2024-09-10T23:17:54Z")

</div>

I’ve been programming for roughly thirty years, and every Windows application I’ve produced in the last five I’ve built from Linux. So, I know it’s both possible and relatively simple in most cases. I’m led to wonder what it is specifically which is preventing Unreal from allowing for this?

I can only assume that it has something to do with some awkward Microsoft license from days of old. Something MingW can’t effectively step in for.

---

<div class="post-metadata">

**Author:** ![PucheDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puchedev/32/978017_2.png) [@PucheDev](https://forums.unrealengine.com/u/PucheDev)\
**Post date:** [September 17, 2024, 7:18am UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/19 "2024-09-17T07:18:01Z")

</div>

The problems is all Microsoft Licenses, DirectX… But you can achieve this with Bottles/Proton. We use this procedure with Jenkins in a Linux Server Machine. You need install Unreal Engine Win Version in Bottles/Proton. And Build it up with the windows version. It’s faster and simple than have 2 Installs and switiching every time you need to compile.

---

<div class="post-metadata">

**Author:** ![Nechalon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nechalon/32/967402_2.png) [@Nechalon](https://forums.unrealengine.com/u/Nechalon)\
**Post date:** [March 6, 2025, 12:28pm UTC](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294/20 "2025-03-06T12:28:54Z")

</div>

Do you need GPU passthrough for this?

I’m also about to switch to linux, and UE is the only thing thats holding me back, the engine works near flawlessly on linux, but cant package or release to anything but linux. This is the only dealbreaker.

[Next page](https://forums.unrealengine.com/t/building-for-windows-on-linux/358294.md?page=2)
