« Previous - Version 30/84 (diff) - Next » - Current version
kerozcak, 05/09/2010 09:15 pm


Building Ryzom Core on GNU/Linux

(tested on Ubuntu 9.10 x86, g++ 4.4.1)

  • The ryzom build scripts log to $HOME/log, so make sure that directory exists:
mkdir $HOME/log
  • Add the Ryzom scripts path in your PATH variable by adding the following line in your .bashrc (change the path with your own path):
PATH=$PATH:/home/nevrax/code/ryzom/tools/scripts/linux
  • Install the following packages:
apt-get install libxml2-dev g++ libtool automake autoconf libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev
  • You may also need to fix autogen.sh to recognize ACLOCAL and LIBTOOLIZE environment variables:
cp /home/nevrax/code/nel/autogen.sh /home/nevrax/code/nelns/autogen.sh
cp /home/nevrax/code/nel/autogen.sh /home/nevrax/code/snowballs2/autogen.sh
  • Run the following command:
buildmode static
  • Update the SRC_DIR variable in the code/ryzom/tools/scripts/linux/build script (line 52)
  • Update the RYZOM_PATH variable in the code/ryzom/tools/scripts/linux/make_all script (third line).
  • Update the RYZOM_PATH, NEL_INCLUDE, and PACK_SHEET_FLAGS variables in the code/ryzom/Variables.mk file. Add -m32 to the FLAGS_CMN variable if you are compiling on a 64-bit machine.
  • Fix the two -I$(HOME) lines (around line 14) to look like the following, in the files: code/ryzom/common/src/game_share/Makefile ; code/ryzom/server/src/server_share/Makefile
  -I$(NEL_INCLUDE) \
  -I$(RYZOM_PATH)/common/src \
  • Ryzom login server address is hardcoded in core/ryzom/client/src/http_client.cpp. If you are compiling client, replace it with your server address.
  • Ubuntu Users, you may need to change your default shell by running the below and selecting "No" at the menu.
sudo dpkg-reconfigure dash
  • 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 ~/log/
make_all