Building OpenArena on ARM Linux host (aarch64)

Introduction

Here I will build OpenArena (specifically dedicated server) under Oracle Linux 7.9 on Ampere ARM CPU (VM.Standard.A1.Flex on Oracle Cloud).

Dependencies

EPEL, libxmp-devel, SDL-devel, libvorbis-devel

Patch code

Original code comes without aarch64 support. Adding support is as easy as defining ARCH_STRING in /code/qcommon/q_platform.h in Linux section (line ~220). Or simply clone my fork with patch included d3suu/engine

Build

# Make sure You have EPEL set up
sudo yum install SDL-devel libvorbis-devel libxmp-devel

# Then it's as simple as
git clone https://github.com/d3suu/engine.git
cd engine
make

# Output should be in /build/release-linux-aarch64/