BuildForLinux

Version 16 (AllenJB, 05/07/2010 10:05 pm) → Version 17/84 (thorbjorn, 05/07/2010 10:28 pm)

h1. 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:

<pre>mkdir $HOME/log</pre>

* Add the Ryzom scripts path in your PATH variable by adding the following line in your .bashrc (change the path with your own path):

<pre>
PATH=$PATH:/home/nevrax/code/ryzom/tools/scripts/linux
</pre>

* Install the following packages:

<pre>
apt-get install libxml2-dev g++ libtool automake autoconf libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev
</pre>

* You may also need to fix autogen.sh to recognize ACLOCAL and LIBTOOLIZE environment variables:

<pre>
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
</pre>

* Run the following command:

<pre>
buildmode static
</pre>

* 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).

* Make sure it won't run too many jobs in parallel (unless you have 10 CPUs and 8 GB of RAM), by editing code/ryzom/Makefile and specifying the number of jobs you want to run in parallel at MAKE_NIGHT_ARGS (the default for make_all is to run in nightly build-server mode). For dual core, change it to:

<pre>MAKE_NIGHT_ARGS=-j2</pre>


* 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 error in @~/log/@

<pre>
make_all
</pre>