Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Building for Windows on Linux

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?

Product Version: UE 4.11
more ▼

asked May 23 '16 at 12:57 PM in Packaging & Deployment

avatar image

236 21 36 45

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey haimat-

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



Doug Wilson

more ▼

answered May 23 '16 at 02:21 PM

avatar image haimat May 23 '16 at 02:26 PM

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.

avatar image Doug E ♦♦ STAFF May 23 '16 at 02:57 PM

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.

avatar image haimat May 23 '16 at 03:01 PM

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

avatar image codywohlers Mar 12 '17 at 08:42 PM

Can anyone explain why? What would be needed (theoretically) to cross-compile for windows on linux?

avatar image Doug E ♦♦ STAFF Mar 13 '17 at 06:18 PM

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.

avatar image PewPew!! Jan 20 '18 at 09:41 AM

One year on, may I ask how epics official take on this matter is? A Windows compiler for Linux exists for 20 years now : https://stackoverflow.com/questions/2033997/how-to-compile-for-windows-on-linux-with-gcc-g

An UE HLSL cross compiler is defined here: https://docs.unrealengine.com/latest/INT/Programming/Rendering/ShaderDevelopment/HLSLCrossCompiler/index.html

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?

avatar image Darkentik Nov 07 '18 at 09:03 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question