# How to compile to linux?

**URL:** <https://forums.unrealengine.com/t/how-to-compile-to-linux/357178>\
**Category:** Platform & Builds\
**Tags:** cross-compiling, Linux, unreal-engine, question\
**Created:** [May 12, 2016, 2:47am UTC](https://forums.unrealengine.com/t/how-to-compile-to-linux/357178 "2016-05-12T02:47:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 12, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/how-to-compile-to-linux/357178/2 "2016-05-12T17:05:53Z")

</div>

Hey veccher-

First, you will want to make sure you are using a source build of the engine from GitHub to make use of cross-compiling. I would suggest following this documentation which is similar to the second link that you provided but also includes links to download the toolchain binaries:

> **[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...

The info necessary for setting up the environment variables should be in one of the text files after this is installed. It should have `LINUX_ROOT=` followed by a file path on your computer. The part before the equal sign goes in the Variable name field and everything after the equal goes into the Variable value. After this you will need to run GenerateProjectFiles.bat for the specific source engine you are using and then build the engine in Visual Studio again. There are a few other programs (UnrealPak, ShaderCompileWorker, etc) that need to be built as well, this can be found below the image on the linked page.

Cheers

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-compile-to-linux/357178)._
