« Previous - Version 61/84 (diff) - Next » - Current version
RavonTUS, 05/28/2010 02:02 pm


Building Ryzom Core on GNU/Linux

Building the server with "make_all/build" system

  • Install the following packages:
sudo apt-get install libxml2-dev g++ libtool automake autoconf libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev
  • If you're using ubuntu 10.04 or 9.10 you may still need to install bison as nel has yacc references:
sudo apt-get install bison

Note: You will also need to install libwww-dev. In Ubuntu lucid this package doesn't seem to exist. You can however use the package from Karmic or download the source.

  • Tell where the Ryzom source code directory is:
export RYZOM_PATH="/home/user/ryzom/code/ryzom" 
  • Run the following command:
$RYZOM_PATH/tools/scripts/linux/buildmode static

You will see the following. Be sure "Static linking" line is set "ON".
Compilation modes :

   Debug mode      : OFF

   Static linking  : ON
   Dynamic linking : OFF

   Silent compilation  : OFF
  • Run the following script that will compile NeL and Ryzom Core Services. It's a very slow process because it compiles lot of things. You can follow the process and see errors in $RYZOM_PATH/log/
$RYZOM_PATH/tools/scripts/linux/make_all

Note: If 'make_all' fails at the end, you may need to execute this as 'root'. In ubuntu 10.4 try entering the following, make sure your $RYZOM_PATH is still correct and try running make_all again.

sudo su -
cd $RYZOM_PATH

Building the client with "make_all/build" system

  • If you already compile the server with the method above, you just have to continue the process to compile the client
  • Install the following packages:
sudo apt-get install libcurl4-openssl-dev libwww-dev libluabind-dev libfreetype6-dev libx11-dev libgl1-mesa-dev libxxf86vm-dev libopenal-dev libalut-dev libogg-dev       libvorbis-dev 
  • If luabind is missing or too old in your distribution, you might want to checkout InstallingLuabind.
cd $RYZOM_PATH/client

CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build init nel --disable-samples --disable-tools --enable-sound
CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build nel
CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build nel install

cd src/client_sheets/; make update; cd ../..
cd src/seven_zip/; make update; cd ../..
make update
cd src/client_sheets/; make; cd ../..
cd src/seven_zip/; make; cd ../..
make