Compiling on Haiku

From OpenTTD
Jump to: navigation, search

OpenTTD works on Haiku. These instructions worked for OpenTTD 1.5.3 running Haiku nightly hrev49917.


Using HaikuPorter

You may want to use HaikuPorter. It will download and compile the lastest stable version and all its dependencies. Once you have HaikuPorter configured, just write:

haikuporter openttd

Note: If you run Haiku hybrid with GCC2 as the default architecture (the default download) you need to write.

haikuporter openttd_x86

Getting the source

OpenTTD uses Subversion but also allows to download the source tree using Mercurial or Git. Here we're going to use Subversion. First we need to install Subversion. Just check for Subversion in HaikuDepot or type

pkgman install subversion

Now we can start downloading the source tree.

mkdir openttd && cd openttd
svn checkout svn://


OpenTTD requires some libraries to be installed first. All of them can be installed from HaikuDepot or pkgman.


pkgman install devel:libsdl

Or if you use Haiku hybrid with GCC2 as the main architecture

pkgman install devel:libsdl_x86


pkgman install devel:libz


pkgman install devel:libz_x86

lzo and lzma

pkgman install devel:liblzma devel:libzo2


pkgman install devel:liblzma_x86 devel:libzo2_x86

MIDI SoundFont (optional)

If you want to hear music you'll need a MIDI soundfont. You can use TimGm soundfont.

pkgman install timgmsoundfont


Now we're ready to compile OpenTTD. Go to the source tree and type


Now you may want to download and install OpenGFX, OpenMSX and OpenSFX.

Personal tools