File: Compiling_SLUDGE_on_Ubuntu.html

package info (click to toggle)
sludge 2.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,912 kB
  • sloc: cpp: 32,441; sh: 1,237; xml: 874; makefile: 682
file content (87 lines) | stat: -rwxr-xr-x 4,359 bytes parent folder | download | duplicates (4)
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
81
82
83
84
85
86
87
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<TITLE>Compiling SLUDGE on Debian/Ubuntu</TITLE>
  <link rel="stylesheet" type="text/css" href="../SLUDGEDevKitHelp/style.css" />
</head>
<BODY>
<HR>
<div align="center"><img id="headerGraphic" src="../SLUDGEDevKitHelp/images/sludge300.png" alt="SLUDGE"/></div>
<h2>Compiling SLUDGE on Debian/Ubuntu</h2>
<HR>

There are generic instructions how to compile SLUDGE in the <strong>INSTALL</strong> file which is included in the source archieve. The following instructions describe the installation of SLUDGE on Debian or Ubuntu a little bit more detailed. If you keep in mind that other distributions may have other ways to gain root privileges (than sudo, use su on Debian), other packaging management tools (than apt-get) and other package names, these instructions should help you installing SLUDGE on any Linux distribution.

<h3>Dependencies</h3>

<p>First you have to make shure that a graphics driver with 3D acceleration is installed.</p>

<p>Then install the following dependencies from the repositories:
</p>

<p><ul>
<li><strong>build-essential</strong> (compilers and build tools)</li>
<li><strong>libalure-dev</strong> (>= 1.1)</li>
<li><strong>libsdl1.2-dev</strong></li>
<li><strong>libglew-dev</strong></li>
<li><strong>libglu1-mesa-dev</strong></li>
<li><strong>libpng12-dev</strong></li>
<li><strong>libopenal-dev</strong></li>
<li><strong>libvorbis-dev</strong></li>
<li><strong>libflac-dev</strong></li>
<li><strong>libdumb1-dev</strong></li>
<li><strong>libvpx-dev</strong></li>
<li><strong>xdg-utils</strong></li>
<li><strong>libgtk2.0-dev</strong> (only needed for the Dev Kit)</li>
<li><strong>libgtkglext1-dev</strong> (only needed for the Dev Kit)</li>
</ul>
</p>

<p>Package list for copying:</p>

<p><div class="bash">sudo apt-get install build-essential libalure-dev libsdl1.2-dev libglew-dev libglu1-mesa-dev libpng12-dev libopenal-dev libvorbis-dev libflac-dev libdumb1-dev libvpx-dev xdg-utils</div></p>

<p>The additional dependencies for the Dev Kit:</p>

<p><div class="bash">sudo apt-get install libgtk2.0-dev libgtkglext1-dev </div></p>

<h3>Installing SLUDGE</h3>

<p>Now it's time to download the SLUDGE source archieve (<strong>sludge-*-source.tar.gz</strong>) from <a href="https://github.com/opensludge/opensludge/releases">the GitHub releases page</a> and extract, compile und install the program.</p>

<p><div class="bash">cd path/to/sludge-(version) </div></p>
<p><pre><div class="bash">./configure                     # install only the Engine
                                # or
./configure --enable-devkit     # install Engine and Dev Kit</div></pre></p>
<p><div class="bash">make</div></p>
<p><div class="bash">sudo make install</div></p>

<h3>Getting the latest development version</h3>

<p>In order to get the latest bugfixes, it can sometimes be necessary to install the latest development version. This requires that the packages <strong>git</strong> and <strong>automake</strong> are installed.</p>

<p>The code can be cloned using:</p>

<p><div class="bash">git clone https://github.com/opensludge/opensludge.git</div></p>

<p>Before SLUDGE can be compiled as described above, the <strong>configure</strong> script has to be generated using the <strong>autogen.sh</strong> script:</p>

<p><div class="bash">cd opensludge</div></p>
<p><div class="bash">./autogen.sh</div></p>

<h3>OpenGL ES 2</h3>

SLUDGE 2.2 has experimental support for OpenGL ES 2. This means it should work on mobile devices such as smartphones without much effort. To use OpenGL ES 2 on Debian or Ubuntu, the dependencies <strong>libglew-dev</strong> and <strong>libglu1-mesa-dev</strong> are replaced by <strong>libgles2-mesa-dev</strong> and configuring is done by

<p><pre><div class="bash">./configure --enable-gles2</div></pre></p>

<h3>See also:</h3>

<p><a href="Using_the_SLUDGE_Engine_on_Linux.html">Using the SLUDGE Engine on Linux</a></p>
<p><a href="Using_the_SLUDGE_Dev_Kit_on_Linux.html">Using the SLUDGE Dev Kit on Linux</a></p>

<P class="copyright-notice">SLUDGE and this SLUDGE documentation are <A HREF="../SLUDGEDevKitHelp/Copyright.html">copyright</A> Hungry Software and contributors 2000-2012
</P>
<HR>
</BODY>
</html>