summaryrefslogtreecommitdiff
path: root/INSTALL
blob: e7fbfe244a87371eac4bee7ba5af0b29743bda89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
How to compile and run ManaPlus on your GNU/Linux Box
=================================================

Homepage:  http://manaplus.org/
IRC:       irc.freenode.net / #manaplus

1) Requirements
2) Compiling And Installing ManaPlus
3) Notes


1. Requirements
===============

You are expected to have either checked out ManaPlus from Git or you have downloaded
a source release. To get ManaPlus to compile, you need a compiler (GCC)
and some libraries. The required libraries are:

* SDL               http://www.libsdl.org/
* SDL_mixer         http://www.libsdl.org/projects/SDL_mixer/
* SDL_image         http://www.libsdl.org/projects/SDL_image/
* SDL_net           http://www.libsdl.org/projects/SDL_net/
* SDL_ttf           http://www.libsdl.org/projects/SDL_ttf/
* SDL_gfx           http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx
* libxml2           http://www.xmlsoft.org/
* zlib 1.2.x        http://www.gzip.org/zlib/
* libcurl           http://curl.haxx.se/libcurl/

If you've cloned the Git repository, you will also need these tools to compile:

* GNU automake 1.9  http://www.gnu.org/software/automake/
* GNU autoconf      http://www.gnu.org/software/autoconf/
* GNU gettext       http://www.gnu.org/software/gettext/
* CVS               http://www.nongnu.org/cvs/ (needed to run autopoint)

On some machines, it's been reported that this package is also needed. However,
you might not need it:

* GNU libtool       http://www.gnu.org/software/libtool/

Installing these dependencies is distributions-specific, and we'll leave it to
you to figure this out.


2. Compiling And Installing ManaPlus
====================================

Building with GNU Autotools

1) Go to the directory you have extracted the source to.
2) If you've cloned the Git repository, run "autoreconf -i" to generate
   configure and install any missing auxiliary files.
3) Run "./configure"
4) Run "make"
5) Run "make install" as root

It should have installed ManaPlus on your system now, and you can run it
with "manaplus". By default all files are installed to /usr/local, you can pass
a different prefix to configure as usual.


  NOTE: It is possible to compile ManaPlus without support for OpenGL rendering.
  To do this perform step 3 as follows:

    ./configure --without-opengl

  Rebuild the executable from scratch using "make clean" and then "make".


Building with CMake

1) Create a directory for building and change to that directory.
2) Configure the build with: cmake <path_to_source>
3) Compile with: cmake --build ./
4) Copy files to install directory with: cmake --install ./

  NOTES:
  - To set output directory for install add `-DCMAKE_INSTALL_PREFIX=<path>` to configure command.
  - To build with SDL 2.0 instead of 1.6 add `-DUSE_SDL2=ON` to configure command.
  - To disalbe OpenGL add `-DUSE_OPENGL=OFF` to configure command.