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

  1. Run git clone --recursive https://github.com/robante15/re3.git to clone the project to your PC
  2. Enter the newly created re3 directory
  3. Run premake5 --os=haiku --with-librw gmake2.
  4. Enter the build directory and run make help to 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-oal
  • release_haiku-amd64-librw_gl3_glfw-oal
  1. Compile librw and re3 by running make config=(your configuration goes here).
  • Example: make config=debug_haiku-amd64-librw_gl3_glfw-oal
  1. Copy all content from re3/gamefiles/ to the game root directory
  2. Go to bin and find the appropriate re3 binary you just compiled, and copy it to your game folder with GTA3 inside
  3. 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.