# IMPOSSIBLE TO BUILD FOR RASPBERRY PI 2 (arm linux)

**URL:** <https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub, Engine-Source-GitHub\
**Created:** [September 21, 2015, 7:31pm UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478 "2015-09-21T19:31:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd2354a4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd2354a4](https://forums.unrealengine.com/u/anonymous_user_fd2354a4)\
**Post date:** [September 21, 2015, 7:31pm UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/1 "2015-09-21T19:31:25Z")

</div>

As title,

I downloaded the source from gith hub,  
I followed instructions to cross compile from windows but results builds binaries always ask for opengl 3.2 (most of arm linux support opengl ES).

I think that i have to build a cross compile clang target scecifically for raspberry pi2 as additional step  
But since it takes forever to compile I want to ask here first…

**Has somebody here compiled and build for raspberry pi 2 successfully?**

as alternative as someone tested android on raspberry pi 2 building?

as second alternative:  
How do you build from github unreal engine for ubuntu to cross compile to linux arm??  
(cross compile guide only explain how to from windows)

---

<div class="post-metadata">

**Author:** ![sswires](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sswires](https://forums.unrealengine.com/u/sswires)\
**Post date:** [September 21, 2015, 8:52pm UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/2 "2015-09-21T20:52:21Z")

</div>

Linux on ARM isn’t a supported target, only x86 is.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd2354a4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd2354a4](https://forums.unrealengine.com/u/anonymous_user_fd2354a4)\
**Post date:** [September 22, 2015, 6:54am UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/3 "2015-09-22T06:54:05Z")

</div>

no you can compile for linux on arm:

> **[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 Linux-ARM cross compile toolchain binaries can be downloaded from clang-3.5.0-arm.

what I asked is if I can cross compile to Linux Arm not using a windwos machine but using a Ubuntu machine.

---

<div class="post-metadata">

**Author:** ![qdelpeche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/qdelpeche/32/776509_2.png) [@qdelpeche](https://forums.unrealengine.com/u/qdelpeche)\
**Post date:** [September 22, 2015, 7:16am UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/4 "2015-09-22T07:16:59Z")

</div>

> [@malex;384304](#):
>
> what I asked is if I can cross compile to Linux Arm not using a windows machine but using a Ubuntu machine.

Yes … but you would have to build the editor on Linux as this is what drives the cross-compilation.

[Linux Support](https://wiki.unrealengine.com/Linux_Support)  
[Building On Linux](https://wiki.unrealengine.com/Building_On_Linux)  
[Running On Linux](https://wiki.unrealengine.com/Running_On_Linux)

So basically you need to get the Unreal Engine Source Code on your Linux machine and then build the entire Unreal Editor on Linux and run that. This would theoretically allow you to then compile on Linux using the Linux CLANG libraries.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd2354a4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd2354a4](https://forums.unrealengine.com/u/anonymous_user_fd2354a4)\
**Post date:** [September 22, 2015, 1:17pm UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/5 "2015-09-22T13:17:27Z")

</div>

yes this answer my third question in a way.

Anybody about the first bolded question?  
I’m going install android 5.1 on raspberry pi 2 now and tried create a android sample project for that target…i’m gonna answer my second question on my own… 🙂

so back to my third question:

must I rebuild from github this way:

1  
$ git clone -b 4.9 [https://github.com/EpicGames/UnrealEngine.git](https://github.com/EpicGames/UnrealEngine.git)  
2  
$ # or if you are using ssh authentication:  
3  
$ # git clone -b 4.9 [git@github.com](mailto:git@github.com):EpicGames/UnrealEngine.git  
4  
$ cd UnrealEngine  
5  
$ ./Setup.sh  
6  
$ ./GenerateProjectFiles.sh

but before point 6 download arm clang package ,put in path and change lines:

```auto

If you are using the Linux-ARM cross compile toolchain before running GenerateProjectFiles.bat below edit the following file in the UE4 source code:
.../UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Linux/UEBuildLinux.cs
by commenting out the following line:
static private string DefaultArchitecture = "x86_64-unknown-linux-gnu";
and un-commenting the linux-arm architecture line just below it:
//static private string DefaultArchitecture = "arm-unknown-linux-gnueabihf";

```

(note this is windows procedure actually failing to produce opengl es arm linux executables for Raspberry pi 2)  
?  
OR

need I to add crosscompile targets globally on my linux distro? (I have Ubuntu and Arch) and then modify somehow the setup script?

ps:  
Anyway I cant believe they have android target (linux kernel on arm basically) and not for fixed hardware SoCs like Odroid or Raspberry pi 2 still using linux kernel on arm …if you look into …/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Linux/UEBuildLinux.cs these lines are commented as "fix this " so at least they planned to give option in the future…

EDIT:  
I want to be clear i have nothing against android,only i would like to build a game for raspberry pi2 using a “clean” os

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd2354a4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd2354a4](https://forums.unrealengine.com/u/anonymous_user_fd2354a4)\
**Post date:** [September 23, 2015, 11:31am UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/6 "2015-09-23T11:31:40Z")

</div>

finally I tested android building to get an answer to my second question.

Unreal Engine is not working with Arm linux at all.  
there is no way to scale down the engine to most used arm linux cards like Raspberry or Odroid ect ect., you may (there is no evidence of that , no video ect) be successfull using Tegra … but this is based on speculation at this point .

ironically enough building an android sample with Unity worked , same hardware, same android version … 😕  
Waiting for their fix I suggest switch to Unity for your projects.

---

<div class="post-metadata">

**Author:** ![DanielWhite2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanielWhite2015](https://forums.unrealengine.com/u/DanielWhite2015)\
**Post date:** [May 2, 2016, 4:38pm UTC](https://forums.unrealengine.com/t/impossible-to-build-for-raspberry-pi-2-arm-linux/42478/7 "2016-05-02T16:38:04Z")

</div>

i havent attempted the build on linux ARM but the latest Rasbian for Raspberry Pi 2 has desktop OpenGL driver support which can be enabled in raspi-config from the command line. hope that helps.
