Installing Eulora in Gentoo
Note: Installation has only been tested on the x86-64 architecture.
1. Via Portage, run:
#emerge ftjam #emerge subversion
Check if cal3d and crystalspace aren't installed and unmerge in case of problems.
2. Nvidia Toolkit
Since Crystal Space needs it (independently from your graphics card, so even if you have an ATI card), you should download the nvidia-toolkit from Nvidia. Download the appropriate version (x86-64). Make sure to use the appropriate file based on your chipset. To install the file, place it in the root directory and use the following commands, then delete the tar.gz file.
Via portage, run:
3. Check if Crystal's configure says cg is found. If not, run:
#cd /opt/nvidia-cg-toolkit #ln -s lib64 lib
and add configure switches:
./configure --with-Cg=/opt/nvidia-cg-toolkit --with-CgGL=/opt/nvidia-cg-toolkit
4. Downloading and Compiling Cal3d and Crystal Space
We need to build Cal3d from source before we can start on Crystal Space. Cal3d is a library that is used for handling skeleton systems. This is a very nice system and can allow for fluid transformations between animations. This needs to be built/installed first because when we configure Crystal Space it has to find the Cal3d libraries so it can know to build the sprcal3d plugin.
$HOME/development$ wget http://minigame.biz/eulora/binaries/cal3d.tar.gz
Crystal Space (CS) download
Crystal Space 3D SDK is the engine that we use for rendering and sound.
$HOME/development$ wget http://minigame.biz/eulora/binaries/cs_July24.tar.gz
Since cal3d is a library in development we probably don't want to 'install' this one as root since there is a good possibility it will change in the future. Instead we will 'install' it into our working directory. This is done by using the --prefix option when we configure it. Using a text editor open configure.in and remove the following line:
Or you can use the following sed command:
sed -i 's/AM_USE_UNITTESTCPP/#\ AM_USE_UNITTESTCPP/' configure.in
Then you can build cal3d by running the following commands:
$HOME/development/cal3d$ autoreconf --install --force $HOME/development/cal3d$ ./configure --prefix=$HOME/development/cal3d $HOME/development/cal3d$ make $HOME/development/cal3d$ make install
Because we did not install Cal3d we need to make sure other things can find it. This is done using the LD_LIBRARY_PATH:
Crystal Space (CS) compile
Now we can build CS and use the configure line to tell it where we installed the Cal3d libraries. To do this, use the prefix line that was used for Cal3d above.
$HOME/development/cs$ ./configure --without-java --without-perl \ --without-python --without-3ds --with-cal3d=$HOME/development/cal3d
$HOME/development/cs$ jam -aq libs plugins cs-config walktest
Now export the CRYSTAL environment variable so applications outside the Crystal Space tree know where to find the .so's.
5. Download and Compile Eulora
Latest source updates are available here. Once downloaded and extracted, run:
$HOME/development/EuloraV0.1.2$ ./autogen.sh $HOME/development/EuloraV0.1.2$ ./configure --with-cal3d=$HOME/development/cal3d --with-cs-prefix=$CRYSTAL --without-mysqlclient --without-sqlite3 --without-pq --without-hunspell $HOME/development/EuloraV0.1.2$ jam -aq client
Before launching any Eulora app you must tell Eulora where to find CS since it wasn't installed globally. Run:
In the data folder, edit the ip address in servers.xml so the line looks like so:
<server name="Eulora" description="Hello, New User? See Mircea for login account" ip="22.214.171.124" port="13331" />
Save it, of course.