« Previous - Version 24/89 (diff) - Next » - Current version
Letto, 05/21/2010 09:34 am


Building Nel, NelNS and Ryzom Client with CMake on GNU/Linux

First install the needed dependencies. If luabind is missing or too old in your distribution, you might want to checkout InstallingLuabind.

Below is the command for installing all the dependencies on Ubuntu Lucid.

sudo apt-get install libcurl4-openssl-dev libluabind-dev libfreetype6-dev \
libx11-dev libgl1-mesa-dev libxxf86vm-dev libopenal-dev libalut-dev libogg-dev libvorbis-dev libxml2-dev \
cmake build-essential libxml2-dev libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev 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.

Warning: Make sure you do not have the packages libnel or libnel-dev installed from the main repositories as of writing this they are at version 0.5 which is too old to build the game with.

After getting the dependencies make sure you have downloaded the code and then define the directory where you have downloaded it.

export RYHOME="/path/to/ryzom/code" 

Building the Nel library

Substitute the email address below for your own.

mkdir $RYHOME/nel/build && cd $RYHOME/nel/build
cmake -DCPACK_PACKAGE_CONTACT:STRING="your@mail.address" -DWITH_TESTS:BOOL=OFF ..
make -j3
cpack -G DEB

Note: The above will build a DEB package for you. If you need an RPM package type the following instead.
cpack -G RPM

Building NelNS

Substitute the email address below for your own.

mkdir $RYHOME/nelns/build && cd $RYHOME/nelns/build
cmake -DCPACK_PACKAGE_CONTACT:STRING="your@mail.address" ..
make -j3
cpack -G DEB

See above if you require an RPM package rather then a DEB.

Building Ryzom Client

If you want to use lua 5.0 instead of lua 5.1, add -DWITH_LUA51:BOOL=OFF to the cmake command line.
You can avoid building client/server/tools by specifying:
  • -DWITH_CLIENT:BOOL=OFF
  • -DWITH_SERVER:BOOL=OFF
  • -DWITH_TOOLS:BOOL=OFF

Before continuing make sure you have installed the packages you just generated earlier.

mkdir $RYHOME/ryzom/build && cd $RYHOME/ryzom/build
cmake -DCPACK_PACKAGE_CONTACT:STRING="your@mail.address" ..
make

Currently there is no CPack support for the client. This means you will not be able to run "cpack -G DEB" and get a debian or rpm package to install.

Instead you will need to take the binaries generated and use them to run the game.