summaryrefslogtreecommitdiffstats
path: root/build-howto.html
blob: 2bce33b0c73d0e75f9dc19809bc9df7fae8dcf08 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
	<title>Building KDirStat for KDE 3.x</title>
</head>

<body bgcolor=#F0F0F0>


<table width=100%>
    <tr>
        <td width=50% align=left>
	    Last modified: 23 Nov 2004
	</td>
	<td width=50% align=right>
	    Contact: <a href="mailto:sh@suse.de?subject=KDirStat build-howto">Stefan Hundhammer</a>
        </td>
    </tr>
</table>


<h1 align=center>Building KDirStat for KDE 3.x</h1>


<table width=100% bgcolor=#B0B0F0>
<tr><td><h2>Note:</h2></td></tr>

<tr><td>
If you are using the 
latest 
<a href="http://www.suse.com/">SuSE Linux</a>
,  you may not have to build it at all.
There usually is an RPM package you can use at the
<a href="http://kdirstat.sourceforge.net/download/">download area</a>.
See also the <a href="http://kdirstat.sourceforge.net/">KDirStat home page</a>.
</td></tr>
</table>

<ul>
<li>
Get the latest sources - either the
<a href="http://kdirstat.sourceforge.net/download/">tarball from the download area</a>
or via
<a href="http://sourceforge.net/cvs/?group_id=30290">anonymous CVS from SourceForge.</a>
<p><br></p>
</li>

<li>
Make sure you have a development system up and running.

<p>
You'll need at least:

<ul>
<li>A C++ compiler
<li>Header files for the system libs
<li>X11 development environment (libs and header files)
<li>Qt 3.0 (or later) development environment
<li>KDE 3.x development environment
</ul>

<p>
- maybe more. If you are unsure and you are running SuSE Linux, it might be
a good idea to install the <em>development system</em> selection.
</p>

<p>
Please understand that I cannot and will not fix everybody's broken development
systems any more - this had taken me quite some time with KDirStat 0.8x. Please
make sure you can compile simple KDE programs like <em>kless</em> or
<em>kexample</em> before contacting me about build problems.
</p>
</li>
<br>

<li>Unpack the sources:
<br>
<pre>

    tar xjvf kdirstat-2.4.2.tar.bz2

</pre>
<p>
(or whatever version you downloaded)
</p>
<p><br></p>
</li>

<li>
Go to this directory:
<br>
<pre>

    cd kdirstat-2.4.2

</pre>
</li>

<li>
Make sure I didn't accidentially include a <em>config.cache</em> file in the
tarball - remove it to make sure. This is a neverending cause of trouble.
<br>
<pre>

    rm -f config.cache

</pre>
</li>


<li>
Let the <em>configure</em> script figure out where everything required is on
your system.
<p>
Watch out for error messages and <b>fix them</b> before reporting
errors!
</p>

<p>On SuSE Linux systems, KDE 3.x is installed to <em>/opt/trinity</em> which is a
good idea if you want to keep some KDE 1.x/2.x programs around. So use that
<em>/opt/trinity</em> prefix for KDirStat, too - otherwise it will be installed to
<em>/opt/kde</em> and clutter up a working KDE 1.x/2.x environment.
<br>
<pre>

    ./configure --prefix=/opt/trinity

</pre>
<p>
If you don't care about that or if you set up KDE 3.x in <em>/opt/kde</em>
anyway, simply type
</p>
<pre>

    ./configure

</pre>
</li>

<li>
Compile everything:
<br>
<pre>

    make

</pre>
<p>
Again, watch out for error messages.
</p>
<p>
<br>
</p>
</li>

<li>
If everything worked out allright, become <em>root</em> and install the program
and everything it needs:
<br>
<pre>

    su
    make install

</pre>
<p>
<b>Don't do this if the previous step reported errors!</b>
</p>
</li>

</ul>

<p>
That's it.
</p>



  </body>
</html>


<!--	 --- Emacs Customization ---			-->
<!--							-->
<!--	 Local Variables:				-->
<!--	 time-stamp-format:	"%02d %3b %04y"		-->
<!--	 time-stamp-start:	"Last modified:[ \t]+"	-->
<!--	 time-stamp-end:	"$"			-->
<!--	 End:						-->