BuildForLinux
Version 55 (grego, 05/20/2010 03:16 am)
| 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 | 53 | tnxgalaxy | sudo apt-get install libxml2-dev g++ libtool automake autoconf libpng12-dev libjpeg62-dev rrdtool libmysqlclient15-dev |
| 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 | 55 | grego | <pre> |
| 13 | 55 | grego | sudo apt-get install bison |
| 14 | 55 | grego | </pre> |
| 15 | 55 | grego | |
| 16 | 54 | tnxgalaxy | * Get the [[Getting_Source|source code]] |
| 17 | 54 | tnxgalaxy | |
| 18 | 36 | vl | * Tell where the Ryzom directory is: |
| 19 | 36 | vl | |
| 20 | 36 | vl | <pre> |
| 21 | 36 | vl | export RYZOM_PATH="/home/user/code/ryzom" |
| 22 | 36 | vl | </pre> |
| 23 | 36 | vl | |
| 24 | 36 | vl | * Run the following command: |
| 25 | 36 | vl | |
| 26 | 36 | vl | <pre> |
| 27 | 36 | vl | $RYZOM_PATH/tools/scripts/linux/buildmode static |
| 28 | 36 | vl | </pre> |
| 29 | 36 | vl | |
| 30 | 36 | vl | Be sure it's "ON" on the "Static linking" line. |
| 31 | 36 | vl | |
| 32 | 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/@ |
| 33 | 36 | vl | |
| 34 | 36 | vl | <pre> |
| 35 | 36 | vl | $RYZOM_PATH/tools/scripts/linux/make_all |
| 36 | 36 | vl | </pre> |
| 37 | 36 | vl | |
| 38 | 36 | vl | * Check [[ConfigureForLinux|Configuring and running Ryzom Core on GNU/Linux]] to see what you can do next. |
| 39 | 37 | kervala | |
| 40 | 44 | vl | h2. Building the client with "make_all/build" system |
| 41 | 44 | vl | |
| 42 | 44 | vl | * If you already compile the server with the method above, you just have to continue the process to compile the client |
| 43 | 44 | vl | |
| 44 | 44 | vl | * Install the following packages: |
| 45 | 44 | vl | |
| 46 | 44 | vl | <pre> |
| 47 | 53 | tnxgalaxy | sudo apt-get install libcurl4-openssl-dev libwww-dev libluabind-dev libfreetype6-dev libx11-dev libgl1-mesa-dev libxxf86vm-dev libopenal-dev libalut-dev libogg-dev libvorbis-dev |
| 48 | 44 | vl | </pre> |
| 49 | 44 | vl | |
| 50 | 50 | rti | * If luabind is missing or too old in your distribution, you might want to checkout [[InstallingLuabind]]. |
| 51 | 50 | rti | |
| 52 | 44 | vl | <pre> |
| 53 | 1 | sfb | cd $RYZOM_PATH/client |
| 54 | 1 | sfb | |
| 55 | 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 |
| 56 | 51 | vl | CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build nel |
| 57 | 51 | vl | CFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" CXXFLAGS="-DFINAL_VERSION=1 -DNL_STATIC=1" $RYZOM_PATH/tools/scripts/linux/build nel install |
| 58 | 44 | vl | |
| 59 | 49 | vl | cd src/client_sheets/; make update; cd ../.. |
| 60 | 49 | vl | cd src/seven_zip/; make update; cd ../.. |
| 61 | 49 | vl | make update |
| 62 | 49 | vl | cd src/client_sheets/; make; cd ../.. |
| 63 | 49 | vl | cd src/seven_zip/; make; cd ../.. |
| 64 | 49 | vl | make |
| 65 | 44 | vl | </pre> |