Fedora Core

From Eulorum
Revision as of 16:00, 9 October 2015 by Hanbot (Talk | contribs)

Jump to: navigation, search

Installing Eulora in Fedora Core

Note: Installation has only been tested on the x86-64 architecture.

1. Run the following command with 'sudo', or as root:

#yum install boost-jam subversion curl

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.

#yum install nvidia-cg-toolkit

(Note: the above command is highly tentative; if you use Fedora Core please feel free to correct it if necessary.)

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

3. Downloading and Compiling Cal3d and Crystal Space

Cal3D download

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.bz/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.bz/eulora/binaries/cs_July24.tar.gz

Cal3D compile

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:

export LD_LIBRARY_PATH=$HOME/development/cal3d/src/cal3d/.libs/:$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.

export CRYSTAL=$HOME/development/cs

4. Download and Compile Eulora

Latest source updates are available here. Once downloaded, run:

$HOME/development/EuloraV0.1.1$ ./autogen.sh
$HOME/development/EuloraV0.1.1$ ./configure --with-cal3d=$HOME/development/cal3d
$HOME/development/EuloraV0.1.1$ jam -aq client

Before launching any Eulora app you must tell Eulora where to find CS since it wasn't installed globally. Run:

export LD_LIBRARY_PATH="$HOME/development/cal3d/src/cal3d/.libs/:$HOME/development/cs/:"$LD_LIBRARY_PATH