2b60c78 by Bjørn Lindeijer at 2005-02-16 1
How to compile and run TMW on your GNU/Linux Box
2
================================================
3638ed8 by Bjørn Lindeijer at 2005-02-12 3
708384a by Bjørn Lindeijer at 2005-04-18 4
Homepage:  http://themanaworld.org/
43ef371 by Eugenio Favalli at 2006-01-19 5
IRC:       irc.freenode.net / #themanaworld
3638ed8 by Bjørn Lindeijer at 2005-02-12 6
2b60c78 by Bjørn Lindeijer at 2005-02-16 7
1) Requirements
31f4070 by Bjørn Lindeijer at 2008-11-22 8
2) Compiling And Installing The Mana World
2b60c78 by Bjørn Lindeijer at 2005-02-16 9
3) Notes
3638ed8 by Bjørn Lindeijer at 2005-02-12 10
11
2b60c78 by Bjørn Lindeijer at 2005-02-16 12
1. Requirements
13
===============
3638ed8 by Bjørn Lindeijer at 2005-02-12 14
bfd1d1b by Bjørn Lindeijer at 2009-01-06 15
You are expected to have either checked out TMW from Git or you have downloaded
2b60c78 by Bjørn Lindeijer at 2005-02-16 16
a source release. To get The Mana World to compile, you need a compiler (GCC)
17
and some libraries. The required libraries are:
18
0d1c435 by Bjørn Lindeijer at 2006-02-05 19
* SDL               http://www.libsdl.org/
20
* SDL_mixer         http://www.libsdl.org/projects/SDL_mixer/
21
* SDL_image         http://www.libsdl.org/projects/SDL_image/
22
* SDL_net           http://www.libsdl.org/projects/SDL_net/
bfd1d1b by Bjørn Lindeijer at 2009-01-06 23
* SDL_ttf           http://www.libsdl.org/projects/SDL_ttf/
9200c68 by Bjørn Lindeijer at 2008-02-18 24
* ENet 1.2          http://enet.bespin.org/
92950d2 by Bjørn Lindeijer at 2008-04-07 25
* Guichan 0.8.x     http://guichan.sourceforge.net/
0d1c435 by Bjørn Lindeijer at 2006-02-05 26
* libxml2           http://www.xmlsoft.org/
01d87fa by Bjørn Lindeijer at 2009-05-13 27
* physfs 1.x        http://icculus.org/physfs/
0d1c435 by Bjørn Lindeijer at 2006-02-05 28
* zlib 1.2.x        http://www.gzip.org/zlib/
29
* libcurl           http://curl.haxx.se/libcurl/
2b60c78 by Bjørn Lindeijer at 2005-02-16 30
31f4070 by Bjørn Lindeijer at 2008-11-22 31
If you've cloned the Git repository, you will also need these tools to compile:
2b60c78 by Bjørn Lindeijer at 2005-02-16 32
0d1c435 by Bjørn Lindeijer at 2006-02-05 33
* GNU automake 1.9  http://www.gnu.org/software/automake/
34
* GNU autoconf      http://www.gnu.org/software/autoconf/
bfd1d1b by Bjørn Lindeijer at 2009-01-06 35
* GNU gettext       http://www.gnu.org/software/gettext/
36
* CVS               http://www.nongnu.org/cvs/ (needed to run autopoint)
2b60c78 by Bjørn Lindeijer at 2005-02-16 37
4adee3c by Ira Rice at 2009-03-02 38
On some machines, it's been reported that this package is also needed. However,
39
you might not need it:
40
41
* GNU libtool       http://www.gnu.org/software/libtool/
42
2b60c78 by Bjørn Lindeijer at 2005-02-16 43
Installing these dependencies is distributions-specific, and we'll leave it to
44
you to figure this out.
45
46
328bd58 by Bjørn Lindeijer at 2005-05-01 47
2. Compiling And Installing The Mana World
48
==========================================
2b60c78 by Bjørn Lindeijer at 2005-02-16 49
50
1) Go to the directory you have extracted the source to.
31f4070 by Bjørn Lindeijer at 2008-11-22 51
2) If you've cloned the Git repository, run "autoreconf -i" to generate
52
   configure and install any missing auxiliary files.
2b60c78 by Bjørn Lindeijer at 2005-02-16 53
3) Run "./configure"
54
4) Run "make"
328bd58 by Bjørn Lindeijer at 2005-05-01 55
5) Run "make install" as root
2b60c78 by Bjørn Lindeijer at 2005-02-16 56
328bd58 by Bjørn Lindeijer at 2005-05-01 57
It should have installed The Mana World on your system now, and you can run it
58
with "tmw". By default all files are installed to /usr/local, you can pass a
59
different prefix to configure as usual.
2b60c78 by Bjørn Lindeijer at 2005-02-16 60
61
700b390 by Bjørn Lindeijer at 2007-12-22 62
  NOTE: It is possible to compile TMW without support for OpenGL rendering.
63
  To do this perform step 3 as follows:
2b60c78 by Bjørn Lindeijer at 2005-02-16 64
700b390 by Bjørn Lindeijer at 2007-12-22 65
    ./configure --without-opengl
2b60c78 by Bjørn Lindeijer at 2005-02-16 66
5026eca by Bjørn Lindeijer at 2005-05-17 67
  Rebuild the executable from scratch using "make clean" and then "make".
2b60c78 by Bjørn Lindeijer at 2005-02-16 68
69
01d87fa by Bjørn Lindeijer at 2009-05-13 70
  NOTE: This version of TMW can be compiled with support for connecting to
71
  tmwserv, a server developed from scratch by the TMW project. However, the
72
  client won't support eAthena anymore when you do. In future clients we
73
  intend to support either server from a single compile.
74
75
  To configure the client with support for tmwserv, do step 3 as follows:
76
77
    ./configure --with-server=tmwserv
78
79
2b60c78 by Bjørn Lindeijer at 2005-02-16 80
3. Notes
81
========
82
83
If you have any problems, you are welcome to post your questions on our forums,
84
or talk about them in our IRC channel.
85
86
- The Mana World Dev Team