summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 148be1a90cc9a779c2b82d35eda8b22828787079 (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
How to compile and run Mana on your GNU/Linux Box
=================================================

Homepage:  https://manasource.org/
IRC:       irc.libera.chat / #mana

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


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

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

* SDL2              https://www.libsdl.org/
* SDL2_mixer        https://github.com/libsdl-org/SDL_mixer
* SDL2_image        https://github.com/libsdl-org/SDL_image
* SDL2_net          https://github.com/libsdl-org/SDL_net
* SDL2_ttf          https://github.com/libsdl-org/SDL_ttf
* ENet 1.3          http://sauerbraten.org/enet/ (included in repository)
* Guichan 0.8.x     https://github.com/darkbitsorg/guichan
* libxml2           https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
* physfs 2.x        https://icculus.org/physfs/
* zlib 1.2.x        https://zlib.net/
* libcurl           https://curl.se/libcurl/

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

* CMake >= 3.8      https://cmake.org/
* GNU gettext       https://www.gnu.org/software/gettext/

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

* GNU libtool       https://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 Mana
================================

1) Go to the directory you have extracted the source to.
2) Run "cmake ."
3) Run "make"
4) Run "make install" as root

It should have installed Mana on your system now, and you can run it
with "mana". By default all files are installed to /usr/local, you can pass a
different prefix to cmake with -D CMAKE_INSTALL_PREFIX=/path/to/prefix


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

    cmake -DWITH_OPENGL=OFF .

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

For additional CMake related hints please read README.cmake

3. Notes
========

If you have any problems, you are welcome to post your questions on our forums,
or talk about them in our IRC channel.

- Mana Dev Team