# Problems with UT4 building on Linux

**URL:** <https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180>\
**Category:** Platform & Builds\
**Tags:** unreal-tournament-4, compilation-error, Linux, unreal-engine, question\
**Created:** [March 20, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180 "2016-03-20T20:33:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteFoxMadness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WhiteFoxMadness](https://forums.unrealengine.com/u/WhiteFoxMadness)\
**Post date:** [March 20, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/1 "2016-03-20T20:33:08Z")

</div>

i downloaded the latest UT4 sources, then from terminal i called:  
Setup.sh  
GenerateProjectFiles.sh  
make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass  
make -j1 ShaderCompileWorker - it said files are up to date

then, when i copy-pasted cd Engine/Binaries/Linux && ./UE4Editor, and it initialized up to 35%, it said  
[2016.03.20-20.16.07:958][0]LogLinux:Error: appError called: Assertion failed: Assertion failed: [File:/home/anton/Games/UnrealTournament-clean-master/Engine/Source/Runtime/Engine/Private/GlobalShader.cpp] [Line: 951]  
Failed to compile global shader FSimpleElementMaskedGammaPS\_Linear . Enable ‘r.ShaderDevelopmentMode’ in ConsoleVariables.ini for retries.

when i enabled in the ini file what it asked, nothing changed, and this message still appeared

 ![83117-screenshot+from+2016-03-20+23:28:03.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/7/8771c1106e06360ea801fba25b2830cc92b68cae.png)

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [March 20, 2016, 11:57pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/2 "2016-03-20T23:57:02Z")

</div>

There is some problem with hlslcc which we haven’t narrowed down that causes it to report incorrect number of samplers in the generated GLSL. Could you share the details about your distro - that would help us find a more reliable repro. We have seen it on Ubuntu 14.04 only and even there the repro was inconsistent.

Also, try putting this into DefaultEngine.ini:

```
[DevOptions.Shaders]
bAllowCompilingThroughWorkers=False
bAllowAsynchronousShaderCompiling=False

```

This will make startup times much longer, but _may_ avoid the bug.

---

<div class="post-metadata">

**Author:** ![WhiteFoxMadness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WhiteFoxMadness](https://forums.unrealengine.com/u/WhiteFoxMadness)\
**Post date:** [March 21, 2016, 4:11pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/3 "2016-03-21T16:11:14Z")

</div>

i use Linux Mint Cinnamon version

found this output in the terminal:

 ![83195-screenshot+from+2016-03-21+19:09:47.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/2/e4203df3be7c8d7873c0974f5f63e3e1bdf26065.png)

and which DefaultEngine.ini should i edit?

 ![83194-screenshot+from+2016-03-21+19:04:43.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/2/0e2a261bb7f745cb65f0b183c33faf75e865be90.png)

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [March 21, 2016, 4:22pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/4 "2016-03-21T16:22:09Z")

</div>

One in UnrealTournament/Config. Note that you should be building UnrealTournamentEditor and not UE4Editor.

---

<div class="post-metadata">

**Author:** ![WhiteFoxMadness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WhiteFoxMadness](https://forums.unrealengine.com/u/WhiteFoxMadness)\
**Post date:** [March 21, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/5 "2016-03-21T18:10:59Z")

</div>

nothing changed, still the same output

 ![83117-screenshot+from+2016-03-20+23:28:03.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/7/8771c1106e06360ea801fba25b2830cc92b68cae.png)

---

<div class="post-metadata">

**Author:** ![WhiteFoxMadness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WhiteFoxMadness](https://forums.unrealengine.com/u/WhiteFoxMadness)\
**Post date:** [March 22, 2016, 3:50pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/6 "2016-03-22T15:50:25Z")

</div>

how to build UT Editor instead of UE4Editor ? i built with

make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [March 23, 2016, 8:25pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/7 "2016-03-23T20:25:49Z")

</div>

Take a look into Makefile, it should have a target UnrealTournamentEditor - so just make UnrealTournamentEditor.

---

<div class="post-metadata">

**Author:** ![WhiteFoxMadness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WhiteFoxMadness](https://forums.unrealengine.com/u/WhiteFoxMadness)\
**Post date:** [March 24, 2016, 6:03pm UTC](https://forums.unrealengine.com/t/problems-with-ut4-building-on-linux/351180/8 "2016-03-24T18:03:16Z")

</div>

i tried “make UnrealTournamentEditor”, but i got 5 compilation errors

a few of them:

 ![83686-screenshot+from+2016-03-24+21:02:19.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/3/3b3a2ae75434139364ad3f95aa7d1940f3b28fc8.png)

 ![83687-screenshot+from+2016-03-24+21:01:40.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/4/d447249324cc33858125e14c475221297b603b1e.png)
