GemRB wiki

Overview

Installing gemrb

Using distribution packages

If you don't need or want the latest developments (available via SVN), just use the packages provided by your distributor. If they don't exist, check the next section and/or ask the distributor to make a package.

Compile it yourself

Dependencies

Make sure you have sdl, openal, python, zlib and g++ installed (with all their header/devel packages if they exist). If you'll be building from SVN, you also need all the autotools (autoconf, automake, libtool).

Getting the sources

First you'll need to get the source. Either in the form of a release tarball or the latest source from SVN.

Source tarball

Download the source tarball from the project page.

Subversion - SVN

Create a checkout of gemrb with:

svn co https://gemrb.svn.sourceforge.net/svnroot/gemrb/gemrb/trunk gemrb

Compilation

SVN
  1. cd gemrb
  2. Run ./autogen.sh1), it will also run ./configure
  3. make
Tarball
  1. Extract the tarball: tar xf gemrb*.tar.*
  2. cd gemrb*
  3. ./configure –prefix=$HOME/gemrb/2)
  4. make

Installation

For a self-compiled gemrb, installation is not necessary. Merely run gemrb/plugins-prepare.sh and edit PluginsPath in the gemrb configuration files (p.e. gemrb.cfg).

Note that if you want to debug a not-installed gemrb with gdb, you need to start it like: gdb gemrb/.libs/lt-gemrb 3).

Otherwise run the customary: make install

Installing the games

Existing installations

If you already have a game installed somewhere, even if it is on another OS, just make sure that that filesystem is mounted and point gemrb to the relevant directory (set GamePath in gemrb.cfg).

Wine

Just run the Setup.exe and follow through to the end.

Unshield

See unshield. You can get it here.

Configuring gemrb

  1. Copy one of the GemRB.cfg samples and rename it to <game_name>.cfg . You can name configuration files arbitrarily, but this way makes the most sense if you'll be running multiple games.
  2. Edit GemRB.cfg, mainly to set up the path to the game's data files. It is crucial you get this right. 4)

Test run

You will know gemrb is working perfectly once you can see the main game screen. If that doesn't happen, check the console for errors and fix the configuration file as needed. Usually some path is set wrong.

  • Run the “gemrb” binary (you can specify the desired configuration like this: gemrb -c torment.cfg)
    • You can also link the gemrb binary to <game_name> and the start it with that link, so gemrb will automatically pick the right configuration file. That means there is no need to pass -c anymore (pst vs gemrb -c pst.cfg)
1) it can take an install directory as an argument
2) or some other arbitrary prefix
3) if lt-gemrb doesn't exist, run gemrb/gemrb and retry
4) note that on Unix-like systems, you must not escape the spaces in the various paths
installation.txt · Last modified: 2009/06/25 15:59 by lynxlynxlynx