# I am trying to compile UE4 on linux

**URL:** <https://forums.unrealengine.com/t/i-am-trying-to-compile-ue4-on-linux/320914>\
**Category:** Platform & Builds\
**Tags:** make, clang, ubuntu, Linux, unreal-engine, UE4, question, linking-error\
**Created:** [June 6, 2015, 6:42pm UTC](https://forums.unrealengine.com/t/i-am-trying-to-compile-ue4-on-linux/320914 "2015-06-06T18:42:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FireFrog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FireFrog](https://forums.unrealengine.com/u/FireFrog)\
**Post date:** [June 6, 2015, 6:42pm UTC](https://forums.unrealengine.com/t/i-am-trying-to-compile-ue4-on-linux/320914/1 "2015-06-06T18:42:13Z")

</div>

**I am trying to compile UE4 on linux. the ./Setup.sh and GenerateProjectFile.sh phase went well. The real trouble starts when trying to compile/ make SlateViewer. the error i get is as follows:**

> [35/35] Link SlateViewer /usr/bin/ld:  
> cannot find -lLND clang: error: linker  
> command failed with exit code 1 (use  
> -v to see invocation)  
> -------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce  
> item:  
> /home/firefrog/softwares/UE4/UE4/Engine/Binaries/Linux/SlateViewer  
> Cumulative action seconds (4  
> processors): 0.00 building projects,  
> 584.70 compiling, 0.00 creating app bundles, 0.00 generating debug info,  
> 2.50 linking, 0.00 other UBT execution time: 415.48 seconds make: \*\*\*  
> [SlateViewer] Error 2

**the ld can’t find the library -lLND i think. anyone know what package i can install to solve this issue. all other dependencies are installed as instructed here: [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Building_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:** [June 8, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/i-am-trying-to-compile-ue4-on-linux/320914/2 "2015-06-08T15:31:23Z")

</div>

Hey FireFrog-

Which Linux OS are you working on? It seems you’re missing a Linux Native Dialog library which is included when building the engine on Ubuntu when running Setup.sh. If you are indeed working on Ubuntu I would try running ./Setup.sh again in case it was missed the first time.

Cheers

---

<div class="post-metadata">

**Author:** ![FireFrog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FireFrog](https://forums.unrealengine.com/u/FireFrog)\
**Post date:** [June 8, 2015, 5:25pm UTC](https://forums.unrealengine.com/t/i-am-trying-to-compile-ue4-on-linux/320914/3 "2015-06-08T17:25:10Z")

</div>

i am a bit of newbie, sorry if i am asking anything of obvious here. i ran ./Setup.sh , and indeed i am missing some kind of a dialogue library. i have attached a logfile which indicates that i am missing some **Q\_WS\_WIN, Q\_WS\_QWS, Q\_WS\_MAC,freetype2, GTK2\_GTK\_LIBRARY GTK2\_GTK\_INCLUDE\_DIR GTK2\_GDK\_INCLUDE\_DIR GTK2\_GDKCONFIG\_INCLUDE\_DIR GTK2\_GDK\_LIBRARY, gtk±3.0**. furthermore, there seems to be some kind of a problem with anaconda , which i am using for python, at the very end of the logfile. i am hoping that you guide me on exactly what to do. PS my OS is ubuntu 14.04 LTS. link text

---

<div class="post-metadata">

**Author:** ![FireFrog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FireFrog](https://forums.unrealengine.com/u/FireFrog)\
**Post date:** [June 8, 2015, 6:25pm UTC](https://forums.unrealengine.com/t/i-am-trying-to-compile-ue4-on-linux/320914/4 "2015-06-08T18:25:35Z")

</div>

Thanx for the reply @. i got it to work. the real problem were the gtk3 development packages were not installed.  
so i installed them using the following command:

## sudo apt-get install libgtk-3-dev

and this solved all my problems!! Wonder why didn’t the Septup.sh included this by default.
