2022-12-28 21:56:20 +10:00
|
|
|
# Building on Haiku
|
|
|
|
|
2021-02-18 14:23:52 +01:00
|
|
|
Haiku builds can be created with Clang or GCC using the Meson buildsystem.
|
|
|
|
|
2022-12-28 21:56:20 +10:00
|
|
|
## Build instructions
|
2021-02-18 14:23:52 +01:00
|
|
|
|
|
|
|
Install dependencies:
|
|
|
|
|
|
|
|
``` shell
|
|
|
|
pkgman install -y meson ccache libpng libsdl2_devel sdl2_net_devel \
|
|
|
|
libogg_devel opus_devel opusfile_devel gcc_syslibs_devel \
|
2022-05-19 06:31:45 -07:00
|
|
|
opus_tools fluidsynth2_devel llvm_clang speexdsp_devel
|
2021-02-18 14:23:52 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Clone and enter the repository's directory:
|
|
|
|
|
|
|
|
``` shell
|
2021-10-03 08:58:26 -07:00
|
|
|
git clone https://github.com/dosbox-staging/dosbox-staging.git
|
2021-02-18 14:23:52 +01:00
|
|
|
cd dosbox-staging
|
|
|
|
```
|
|
|
|
|
|
|
|
Build with OpenGL disabled (Haiku supports OpenGL only via software fallback):
|
|
|
|
|
|
|
|
``` shell
|
|
|
|
meson setup -Duse_opengl=false build
|
|
|
|
ninja -C build
|
|
|
|
```
|
|
|
|
|
|
|
|
Detailed instructions and build options are documented in [BUILD.md](/BUILD.md).
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
Edit your configuration file by running: `dosbox -editconf` and make the
|
|
|
|
following suggested changes (leave all other settings as-is):
|
|
|
|
|
|
|
|
``` ini
|
|
|
|
[sdl]
|
|
|
|
output = texture
|
|
|
|
texture_renderer = software
|
|
|
|
|
|
|
|
[cpu]
|
|
|
|
core = normal
|
|
|
|
```
|
|
|
|
|
2022-12-28 21:56:20 +10:00
|
|
|
The state of Haiku's GPU Hardware-acceleration is being discussed
|
|
|
|
[here](https://discuss.haiku-os.org/t/state-of-accelerated-opengl/4163).
|