BuildForLinux

Version 68 (vbmithr, 06/03/2010 03:08 pm)

1 2 vl
h1. Building Ryzom Core on GNU/Linux
2 1 sfb
3 36 vl
h2. Building the server with "make_all/build" system
4 36 vl
5 36 vl
* Install the following packages:
6 36 vl
7 36 vl
<pre>
8 64 RavonTUS
sudo apt-get install libxml2-dev g++ libtool automake autoconf libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev flex
9 36 vl
</pre>
10 36 vl
11 55 grego
* If you're using ubuntu 10.04 or 9.10 you may still need to install bison as nel has yacc references:
12 56 tnxgalaxy
13 55 grego
<pre>
14 55 grego
sudo apt-get install bison
15 55 grego
</pre>
16 55 grego
17 57 tnxgalaxy
*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":http://packages.ubuntu.com/karmic/libwww-dev or "download the source":http://www.w3.org/Library/Distribution.html.
18 57 tnxgalaxy
19 60 RavonTUS
* Install [[InstallingLuabind|luabind]].
20 58 tnxgalaxy
21 54 tnxgalaxy
* Get the [[Getting_Source|source code]]
22 54 tnxgalaxy
23 60 RavonTUS
* Tell where the Ryzom source code directory is:
24 36 vl
25 36 vl
<pre>
26 60 RavonTUS
export RYZOM_PATH="/home/user/ryzom/code/ryzom"
27 36 vl
</pre>
28 36 vl
29 36 vl
* Run the following command:
30 36 vl
31 1 sfb
<pre>
32 1 sfb
$RYZOM_PATH/tools/scripts/linux/buildmode static
33 1 sfb
</pre>
34 61 RavonTUS
You will see the following.  Be sure "Static linking" line is set "ON".
35 1 sfb
36 60 RavonTUS
<pre>
37 60 RavonTUS
Compilation modes :
38 1 sfb
39 60 RavonTUS
   Debug mode      : OFF
40 60 RavonTUS
41 60 RavonTUS
   Static linking  : ON
42 60 RavonTUS
   Dynamic linking : OFF
43 60 RavonTUS
44 60 RavonTUS
   Silent compilation  : OFF
45 60 RavonTUS
</pre>
46 60 RavonTUS
47 43 vl
* 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 @$RYZOM_PATH/log/@
48 1 sfb
49 1 sfb
<pre>
50 1 sfb
$RYZOM_PATH/tools/scripts/linux/make_all
51 1 sfb
</pre>
52 60 RavonTUS
53 60 RavonTUS
*Note*: If 'make_all' fails at the end, you may need to execute this as 'root'.  In ubuntu 10.4 try entering the following, make sure your $RYZOM_PATH is still correct and try running @make_all@ again.
54 60 RavonTUS
<pre>
55 60 RavonTUS
sudo su -
56 60 RavonTUS
cd $RYZOM_PATH
57 60 RavonTUS
</pre> 
58 36 vl
59 36 vl
* Check [[ConfigureForLinux|Configuring and running Ryzom Core on GNU/Linux]] to see what you can do next.
60 37 kervala
61 68 vbmithr
h2. Building the client with "make_all/build" system — DEPRECATED
62 44 vl
63 68 vbmithr
*Note: This method might not work, please follow for steps of the [[BuildForLinuxCmake|CMake method to build the client]]*
64 65 tnxgalaxy
65 44 vl
* If you already compile the server with the method above, you just have to continue the process to compile the client
66 44 vl
67 44 vl
* Install the following packages:
68 44 vl
69 44 vl
<pre>
70 63 tnxgalaxy
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 
71 50 rti
</pre>
72 50 rti
73 44 vl
<pre>
74 1 sfb
cd $RYZOM_PATH/client
75 1 sfb
76 51 vl
CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build init nel --disable-samples --disable-tools --enable-sound
77 51 vl
CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build nel
78 51 vl
CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build nel install
79 44 vl
80 49 vl
cd src/client_sheets/; make update; cd ../..
81 49 vl
cd src/seven_zip/; make update; cd ../..
82 49 vl
make update
83 49 vl
cd src/client_sheets/; make; cd ../..
84 49 vl
cd src/seven_zip/; make; cd ../..
85 49 vl
make
86 44 vl
</pre>