# Packaging Linux ARM64, exec format error

**URL:** <https://forums.unrealengine.com/t/packaging-linux-arm64-exec-format-error/385806>\
**Category:** Platform & Builds\
**Tags:** deployment, cross-compiling, arm, linux-build, unreal-engine, packaging-projects, question\
**Created:** [February 22, 2017, 12:59pm UTC](https://forums.unrealengine.com/t/packaging-linux-arm64-exec-format-error/385806 "2017-02-22T12:59:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6028da86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6028da86](https://forums.unrealengine.com/u/anonymous_user_6028da86)\
**Post date:** [February 22, 2017, 12:59pm UTC](https://forums.unrealengine.com/t/packaging-linux-arm64-exec-format-error/385806/1 "2017-02-22T12:59:12Z")

</div>

I’m trying to package on Windows for Linux ARM64 (Jetson running Ubuntu).  
I have 4.15 (installed from Epic Game Launcher) and did all the steps:

- Used latest clang cross compiler (3.9.0)
- set both LINUX\_ROOT and LINUX\_MULTIARCH\_ROOT to correct paths
- changed DefaultEngine.ini in my project to have the section:  
[/Script/LinuxTargetPlatform.LinuxTargetSettings]  
TargetArchitecture=AArch64UnknownLinuxGnueabi

I managed to package the project, but couldn’t run it on Linux.  
I tried to run the file UE4Game in LinuxNoEditor\Engine\Binaries\Linux, but I got an error:

“Cannot execute binary file: Exec format error”.

When I looked at the file properties, it wrote:

ELF 64-bit LS executable, x86-64, version a (SYSV)

I’m new to Linux and UE4 so I might be doing something wrong, but it looks like although I tried to package for Linux ARM, it packaged for x86-64.

Also, wasn’t there supposed to be a “\*.out” file?

---

<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:** [March 8, 2017, 6:57pm UTC](https://forums.unrealengine.com/t/packaging-linux-arm64-exec-format-error/385806/2 "2017-03-08T18:57:03Z")

</div>

Hey ronir-

In your LinuxNoEditor folder, right click on the ProjectName.sh file and select Properties. In the new window, go to the Permissions tab and set the check box for “Allow executing file as program”. Running ./ProjectName.sh from the terminal window should launch the game as expected.

Cheers

---

<div class="post-metadata">

**Author:** ![daniel2008\_12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daniel2008\_12](https://forums.unrealengine.com/u/daniel2008_12)\
**Post date:** [July 2, 2024, 3:20am UTC](https://forums.unrealengine.com/t/packaging-linux-arm64-exec-format-error/385806/3 "2024-07-02T03:20:52Z")

</div>

I have also met this on 4.27 branch, and I’m using Jetson Orin.  
Is there any command from consol can solve the issue?

~/UnrealEngine$ ./Setup.sh  
Registering git hooks… (this will override existing ones!)  
Fixing inconsistent case in filenames.  
Setting up Mono  
Engine/Build/BatchFiles/Linux/GitDependencies.sh: line 25: /home/daniel/UnrealEngine/Engine/Build/BatchFiles/Linux/…/…/…/Binaries/ThirdParty/Mono/Linux/bin/mono: cannot execute binary file: Exec format error  
Result: 126

I have changed build script, but it seems doesn’t work.

— a/Engine/Build/BatchFiles/Linux/SetupMono.sh  
+++ b/Engine/Build/BatchFiles/Linux/SetupMono.sh  
@@ -5,7 +5,8 @@  
START\_DIR=`pwd`  
cd “$1”

-export HOST\_ARCH=x86\_64-unknown-linux-gnu  
+#export HOST\_ARCH=x86\_64-unknown-linux-gnu  
+export HOST\_ARCH=x86\_64\_aarch64-linux-gnu
