Building on Haiku

June 23, 2024 ยท View on GitHub

Haiku builds can be created with Clang or GCC using the Meson buildsystem.

Note

CMake support is currently an experimental internal-only, work-in-progress feature; it's not ready for public consumption yet. Please ignore the CMakeLists.txt files in the source tree.

Build instructions

Install dependencies:

pkgman install -y meson ccache libpng libsdl2_devel sdl2_net_devel \
                  libogg_devel opus_devel opusfile_devel gcc_syslibs_devel \
                  opus_tools fluidsynth2_devel llvm_clang speexdsp_devel

Clone and enter the repository's directory:

git clone https://github.com/dosbox-staging/dosbox-staging.git
cd dosbox-staging

Build with OpenGL disabled (Haiku supports OpenGL only via software fallback):

meson setup -Duse_opengl=false build
ninja -C build

Detailed instructions and build options are documented in BUILD.md.

Run

Edit your configuration file by running: dosbox -editconf and make the following suggested changes (leave all other settings as-is):

[sdl]
output = texture
texture_renderer = software

[cpu]
core = normal

The state of Haiku's GPU Hardware-acceleration is being discussed here.