Skip to content

Instantly share code, notes, and snippets.

@Postrediori
Last active May 21, 2024 20:08
Show Gist options
  • Save Postrediori/9bd48cd929265e49daa56bd7f88f7dcb to your computer and use it in GitHub Desktop.
Save Postrediori/9bd48cd929265e49daa56bd7f88f7dcb to your computer and use it in GitHub Desktop.
Build ares emulator (https://ares-emu.net/) from a source code on a RedHat-based system (including Fedora and CentOS)

Introduction

This document describes hot to build ares emulator from a source code on a Fedora system. This build uses GTK3 as this is the default version available in modern Fedora systems.

ares is a multi-system emulator that is a descendent of higan and bsnes, and focuses on accuracy and preservation.

Installing pre-requisites for building

Install everything you need with a command

dnf install \
  gcc \
  gcc-c++ \
  gtk3-devel \
  libglvnd-devel \
  alsa-lib-devel

Acquiring the source code

Check out the source code by running this command:

git clone https://github.com/ares-emulator/ares.git ares-src

Compiling from source

From the root of the project directory run:

make build=release hiro=gtk3

To start compilation from the beginning, run the following prior to compiling:

make clean

Installing a compiled build

Assuming ares is compiled as described in the previous section:

make install

Compiling bundle for running on another system

mkdir ares-bundle
cp -a ./desktop-ui/out/ares ares-bundle/ares
cp -a ares/Shaders ares-bundle/Shaders
cp -a LICENSE ares-bundle
zip -r ares-bundle.zip ares-bundle

Copy ares-bundle.zip archive to another Fedora system and install dependencies:

dnf install \
    openal-soft

Sometimes it may also require updating the C++ runtime:

dnf update libgcc libstdc++

See also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment