Haiku Compilation / Development Guide

This compilation guide will teach you how to build RetroArch for Haiku.

It is more than recommended to keep your Haiku system up to date and use Nightlybuilds with upgraded packages.

Environment configuration

The following software needs to be installed:

  • Haiku standard development packages (haiku_devel)
  • SDL libraries and development packages (libsdl_devel / libsdl2_devel)
  • X11 libraries and development packages (libx11_devel, libxau_devel, libxext_devel)
  • Mesa libraries and development packages (mesa_devel, glu_devel)
  • Jpeg, PNG, Zlib libraries and development packages (jpeg_devel, libpng16_devel, zlib_devel)

Optional dependencies:

  • libxml2_devel - For XML shaders and cheat support.
  • freetype_devel - TTF font rendering
  • ffmpeg - FFmpeg recording

RetroArch Compilation

Fetching RetroArch

Clone RetroArch's repository from GitHub

1
2
git clone https://github.com/libretro/RetroArch.git retroarch
cd retroarch

For subsequent builds you only need to pull the changes from the repo

1
2
cd retroarch
git pull

To update your local copy from the repository run git pull

Building RetroArch

Make sure gcc is installed, then run:

1
2
3
4
5
6
# Build
./configure --prefix=~/config/non-packaged/ --datarootdir=~/config/non-packaged/data/ --with-man_dir=~/config/non-packaged/documentation/man/ && make
# Install
make install
# Run
retroarch

Core Compilation

Fetching Cores

The easiest way to fetch all the cores is to use libretro-super. Run

1
./libretro-fetch.sh

Building Cores

The easiest way to build all the cores is to use libretro-super.

To build all cores for Haiku, run

1
./libretro-build.sh

In case you only want to build one and/or more cores instead of all, you can specify the cores you want to build after the first command in no particular order. E.g.:

1
./libretro-build.sh snes9x2010 fceumm

Once finished, you can find the libretro cores inside directory dist/haiku.