Building on Haiku - robante15/re3 GitHub Wiki
This wiki page shows how to build re3 on Haiku OS. Tested on Haiku R1/beta3, R1/beta4_tc0, x86_64, not tested on gcc2h.
You need libraries and headers of
- premake5 / premake
- openal / openal_devel
- GLEW / glew_devel
- glfw / glfw-devel
- libsndfile_devel
- mpg123_devel
pkgman install git premake openal_devel glew_devel glfw_devel libsndfile_devel mpg123_devel
Steps
- Run
git clone --recursive https://github.com/robante15/re3.gitto clone the project to your PC - Enter the newly created re3 directory
- Run
premake5 --os=haiku --with-librw gmake2. - Enter the build directory and run
make helpto see a help message with supported build configurations and architectures. As of now, refer to one of the available
debug_haiku-amd64-librw_gl3_glfw-oalrelease_haiku-amd64-librw_gl3_glfw-oal
- Compile librw and re3 by running
make config=(your configuration goes here).
- Example:
make config=debug_haiku-amd64-librw_gl3_glfw-oal
- Copy all content from re3/gamefiles/ to the game root directory
- Go to bin and find the appropriate re3 binary you just compiled, and copy it to your game folder with GTA3 inside
- Play the game by running
./re3
You can expect poor performance because Haiku doesn't have 3D acceleration. (At least in my case I have not tested it on real hardware with the correct drivers)
Remember that re3 is an actively developed project which doesn't have a final version, so in case you'd like to get the game updated you have to reproduce the steps above.
Struct sizes are different then on Windows, so don't enable validating struct sizes. Needlesly to say, your previous savegames will be incompatible.