« Previous - Version 34/89 (diff) - Next » - Current version
ashly, 07/06/2010 11:05 am


Building NeL and Ryzom Client with CMake on GNU/Linux

Installing Dependencies

Packages

Most of the dependencies are available in the distribution system.

Ubuntu

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 libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev bison

Gentoo

Note: for Gentoo you will probably need to activate the openssl flag for curl before emerging :

echo "net-misc/curl openssl" >> /etc/portage/package.use

emerge -av net-misc/curl dev-cpp/luabind media-libs/freetype x11-libs/libX11 \
media-libs/mesa x11-libs/libXxf86vm media-libs/openal media-libs/freealut \
media-libs/libogg media-libs/libvorbis dev-libs/libxml2 dev-util/cmake \
media-libs/libpng media-libs/jpeg net-analyzer/rrdtool sys-devel/bison net-libs/libwww

Luabind

On Ubuntu Lucid, luabind is in the distribution, skip this section.
If luabind is missing or too old in your distribution, you might want to checkout InstallingLuabind.

libwww-dev

In Ubuntu lucid this package doesn't seem to exist. You can however use the package from Karmic or download the source.

Get the sources

Warning: Make sure you do not have the packages libnel or libnel-dev already 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 and installing the NeL library

Building

mkdir $RYHOME/nel/build && cd $RYHOME/nel/build
cmake -DWITH_TESTS=OFF -DWITH_TOOLS=OFF -DWITH_SAMPLES=OFF ..
make -j3

Installing

According to your system you have several options.

Debian/Ubuntu (and others using deb packages)

Create a deb package using

cpack -G DEB -D CPACK_PACKAGE_CONTACT="your@mail.address"

(replace the email by your own) and install it on your system.

Fedora (and rpm based distributions)

Create a RPM package using

cpack -G RPM -D CPACK_PACKAGE_CONTACT="your@mail.address"

(replace the email by your own) and install it on your system.

Others (incl. Gentoo)

Install the NeL library with

make install

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=OFF
  • -DWITH_SERVER=OFF
  • -DWITH_TOOLS=OFF

Before continuing make sure you have installed the packages you just generated earlier (or that you installed them with make install)

mkdir $RYHOME/ryzom/build && cd $RYHOME/ryzom/build
cmake -DWITH_SERVER=OFF -DWITH_TOOLS=OFF ..
make -j3
*Note: its make -j <# of cores +1>

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 and that you have to do make install instead. The next section explain how to run the client and connect the open shard.

Run the Ryzom Client

  • Extract it and start the binary from the root of the windows client directory, you might want to create a link:
ln -s /path/to/code/ryzom/build/bin/ryzom_client /path/to/windows/client/dir/ryzom_core_linux

The client will connect to the Open shard by default. Use the instructions of the OpenShard page to create an account on that shard.