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.
but before point 6 download arm clang package ,put in path and change lines:
If you are using the Linux-ARM cross compile toolchain before running GenerateProjectFiles.bat below edit the following file in the UE4 source code:
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)
need I to add crosscompile targets globally on my linux distro? (I have Ubuntu and Arch) and then modify somehow the setup script?
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…
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
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.