From Eulorum
Jump to: navigation, search

Installing Eulora in Ubuntu[edit]

Note: the following instructions are specifically for 10.04LTS; also working on 14.04.

1. Make sure you have a 3d gfx card and the appropriate driver installed. If you were able to run any 3d game before, it should be fine.

2. Install (via apt-get install or the "Synaptic Package Manager" gui in the System -> Administration menu) :

Ubuntu 10:

autoconf, bison, build-essential, curl, doxygen, flex, ftjam, g++, lib3ds-dev, libasound-dev, libcairo-dev, libcairomm-1.0-dev, libcal3d-dev, libcppunit-dev, libfreetype6-dev, libgl1-mesa-dev, libgtk2.0-dev, libjpeg-dev, liblcms-dev, libmng-dev, libode-dev, libogg-dev, libopenal-dev, libpng12-dev, libspeex-dev, libtool, libvorbis-dev, libwxbase2.8-dev, libwxgtk2.8-dev, libx11-dev, libxaw7-dev, libxext-dev, libxrender-dev, libxxf86vm-dev, mesa-common-dev, nvidia-cg-toolkit, pkg-config, python-dev, subversion, swig, zlib1g-dev. If you are compiling for 32 bit on a 64 bit platform, you will also need multilib, installed separately.

Ubuntu 14.04:

autoconf bison build-essential curl doxygen flex ftjam g++ lib3ds-dev libasound-dev libcairo-dev libcairomm-1.0-dev libcal3d-dev libcppunit-dev libfreetype6-dev libgl1-mesa-dev libgtk2.0-dev libjpeg-dev liblcms-dev libmng-dev libode-dev libogg-dev libopenal-dev libpng12-dev libspeex-dev libtool libvorbis-dev libx11-dev libxaw7-dev libxext-dev libxrender-dev libxxf86vm-dev mesa-common-dev nvidia-cg-toolkit pkg-config python-dev subversion swig zlib1g-dev

3. Open a terminal (Ctrl+Alt+T). Create a directory (mkdir dev). Navigate to it (cd dev). Run:

$ wget http://minigame.bz/eulora/binaries/cal3d.tar.gz
$ wget http://minigame.bz/eulora/binaries/cs_July24.tar.gz
$ curl http://minigame.bz/eulora/source/eulora-v0.1.2b.tar.gz > eulora-v0.1.2b.tar.gz

Note that simply getting "the latest version" does not work, especially for crystalspace.

4. Unzip all three .tar.gz files using Archive Manager, or run:

$ tar -zxvf cal3d.tar.gz
$ tar -zxvf cs_July24.tar.gz
$ tar -zxvf eulora-v0.1.2b.tar.gz

5. Navigate to dev/cal3d. Edit configure.in to comment out (add # at the beginning of line) "AM_USE_UNITTESTCPP". Run:

$ autoreconf --install --force
$ ./configure --prefix=$HOME/dev/cal3d
$ make
$ make install
$ export LD_LIBRARY_PATH=$HOME/dev/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH

Note that exports only work in your current terminal - if you use multiple windows and don't issue one export per window you will observe strange, hard to debug errors.

6. Navigate to dev/cs-forupload. Run:

$ ./configure --without-java --without-perl --without-python --without-3ds --with-cal3d=$HOME/dev/cal3d
$ ftjam -aq libs plugins cs-config walktest

Note that the crystalspace compile (ftjam step above) takes a good half hour to an hour depending on your machine.

7. Extract eulora-v0.1.2b.tar.gz. If you want to apply any mods, like drunken walking, do it now. Navigate to dev/EuloraV0.1.2 and run:

$ export CRYSTAL=$HOME/dev/cs-forupload
$ ./autogen.sh
$ ./configure --with-cal3d=$HOME/dev/cal3d
$ ftjam -aq client
$ export LD_LIBRARY_PATH="$HOME/dev/cal3d/src/cal3d/.libs/:$HOME/dev/cs-forupload/:"$LD_LIBRARY_PATH

8. Create a file called eu.sh in the dev/EuloraV0.1.2 directory, with the following contents:

export LD_LIBRARY_PATH="$HOME/dev/cal3d/src/cal3d/.libs:$HOME/dev/cs-forupload/:"$LD_LIBRARY_PATH
export CRYSTAL=$HOME/dev/cs-forupload


$ chmod +x eu.sh

Now to load the game, run:

$ ./eu.sh