From Ryzom Forge Wiki
Contents
General
This page applies for Debian-based GNU/Linux distributions. To compile Ryzom client under Mac OS X, please check this page : Building Ryzom Client under Mac OS X
The host system should be a debian or any derivate.
We assume you plan to build for your own system, and not with the intent to make it compatible with other linux distributions. If you are looking for such a guide, we recommend to use a chrooted environement and read this guide.
Instructions with # are to be executed as root. Ones with $ should be run from your normal user account.
Downloading ryzom dependencies
# apt-get install mercurial libluabind-dev libfreetype6-dev libcurl4-openssl-dev libx11-dev libgl1-mesa-dev libxxf86vm-dev \ libxrandr-dev libxrender-dev libopenal-dev libogg-dev libvorbis-dev libxml2-dev cmake build-essential \ libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev bison libxmu-dev autoconf automake libtool
Compiling ryzom dependencies
First, download all the code you need :
$ cd ~ $ mkdir dep_ryzomcore && cd dep_ryzomcore $ hg clone http://hg.kervala.net/packaging $ hg clone http://hg.kervala.net/cmake $ export CMAKE_MODULE_PATH=$(pwd)/cmake/modules
libwww-dev :
$ cd ~/dep_ryzomcore/packaging/libwww $ ./autogen.sh $ ./configure --with-ssl=no --with-zlib --with-expat --with-gnu-ld --enable-shared $ make # make install
Getting ryzom code
$ cd ~ $ hg clone https://bitbucket.org/ryzom/ryzomcore
We just need to switch branch (default to compatibility)
$ cd ryzomcore $ hg update -c compatibility
If you need to update the code later, just type :
$ hg pull && hg update
Building Ryzom (dynamically linked)
$ cd ~ $ mkdir build && cd build
For differents cmake options, see #CMake options. Here's the one i'm using :
$ cmake -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_SERVER=OFF \ -DWITH_RYZOM_TOOLS=OFF -DWITH_QT=OFF -DWITH_RYZOM_CLIENT=ON ../ryzomcore/code
Then run cmake again Here, n is the number of core in your CPU :
$ make -jn
The binary is now in bin/ryzom_client
You still have to install it system wise.
# make install
Files will be copied into /usr/local/.
Sources