website view en/doc/scratchbook/gtk-apps.html @ rev 1344

Resize balinor logo to 120px
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 22 23:02:15 2021 +0100 (2021-01-22)
parents c2f9d5d0f314
children
line source
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <title>SliTaz Scratchbook - GTK+ Applications</title>
6 <meta name="description" content="">
7 <meta name="expires" content="never">
8 <meta name="modified" content="2008-11-22 17:00:00">
9 <meta name="publisher" content="www.slitaz.org">
10 <meta name="author" content="Christophe Lincoln">
11 <link rel="shortcut icon" href="favicon.ico">
12 <link rel="stylesheet" href="book.css">
13 </head>
14 <body>
16 <!-- Header and quick navigation -->
17 <div id="header">
18 <div id="quicknav" align="right">
19 <span id="top"></span>
20 <a href="gtk-libs.html">Gtk-libs</a> |
21 <a href="index.html">Table of contents</a>
22 </div>
23 <h1><font color="#3e1220">SliTaz Scratchbook</font></h1>
24 </div>
26 <!-- Content. -->
27 <div id="content">
28 <div class="content-right"></div>
31 <h2><font color="#df8f06">GTK+ Applications</font></h2>
32 <p>
33 Compiliation and installation of applications using GTK+.
34 </p>
35 <ul>
36 <li><a href="#about">About this chapter.</a> - Description and environmental variable ($fs)</li>
37 <li><a href="#leafpad">leafpad-0.8.10</a> - Simple text editor.</li>
38 <li><a href="#gitmail">gitmail-0.4</a> - Ghost In The Mail, mail client.</li>
39 <li><a href="#gqview">gqview-2.0.4</a> - Images Manager.</li>
40 <li><a href="#mtpaint">mtpaint-3.11</a> - Image creation and processing.</li>
41 <li><a href="#transmission">Transmission-0.72</a> - Lightweight BitTorrent client.</li>
42 <li><a href="#emelfm2">emelfm2-0.3.5</a> - File Manager.</li>
43 <li><a href="#geany">geany-0.11</a> - Integrated Development Environment.</li>
44 <li><a href="#gftp">gftp-2.0.18</a> - Fast and simple FTP client.</li>
45 <li><a href="#xpad">xpad-2.12</a> - Mini note taking application.</li>
46 </ul>
48 <h3 id="about">About</h3>
49 <p>
50 This chapter describes the commands for the compilation and installation of
51 GTK+ applications distributed by default on the SliTaz LiveCD. The installation
52 of GTK+ libraries are described in the
53 <a href="http://www.slitaz.org/doc/scratchbook/gtk-libs.html">GTK+ libs</a> chapter.
54 </p>
55 <h4>Environmental variable ($fs)</h4>
56 <p>
57 If you do not specify any path to the rootfs directory, export the environmental variable:
58 </p>
59 <pre> # export fs=$PWD/rootfs
60 </pre>
61 <p>
62 To check:
63 </p>
64 <pre> # echo $fs
65 </pre>
67 <h3 id="leafpad">leafpad-0.8.10 - Simple text editor</h3>
68 <p>
69 Website: <a href="http://tarot.freeshell.org/leafpad/">http://tarot.freeshell.org/leafpad/</a>
70 </p>
71 <pre> # wget http://savannah.nongnu.org/download/leafpad/leafpad-0.8.10.tar.gz
72 # tar xzf leafpad-0.8.10.tar.gz
73 # cd leafpad-0.8.10
74 # ./configure --prefix=/usr
75 # make
76 # make DESTDIR=$PWD/_pkg install
77 # strip _pkg/usr/bin/*
78 </pre>
79 <h4>Install in rootfs</h4>
80 <pre> # cp _pkg/usr/bin/* $fs/usr/bin
81 # cp _pkg/usr/share/pixmaps/leafpad.png $fs/usr/share/pixmaps
82 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
83 </pre>
85 <h3 id="gitmail">gitmail-0.4 - Ghost In The Mail, mail client</h3>
86 <p>
87 Ghost in the mail allows users to quickly and easily send mail via SMTP.
88 </p>
89 <p>
90 Website: <a href="http://gitmail.sourceforge.net/">http://gitmail.sourceforge.net/</a>
91 </p>
92 <pre> # wget http://switch.dl.sourceforge.net/sourceforge/gitmail/gitmail-0.4.tar.gz
93 # tar xzf gitmail-0.4.tar.gz
94 # cd GhostInTheMail-0.4
95 # ./configure --prefix=/usr
96 # make
97 # make DESTDIR=$PWD/_pkg \
98 gitmaildocdir=/usr/share/doc/GhostInTheMail \
99 install
100 # strip _pkg/usr/bin/*
101 </pre>
102 <h4>Install in rootfs</h4>
103 <pre> # cp _pkg/usr/bin/* $fs/usr/bin
104 </pre>
106 <h3 id="gqview">gqview-2.0.4 - Images Manager</h3>
107 <p>
108 Website: <a href="http://gqview.sourceforge.net/">http://gqview.sourceforge.net/</a>
109 </p>
110 <pre> # wget http://belnet.dl.sourceforge.net/sourceforge/gqview/gqview-2.0.4.tar.gz
111 # tar xzf gqview-2.0.4.tar.gz
112 # cd gqview-2.0.4
113 # ./configure --prefix=/usr --mandir=/usr/share/man
114 # make
115 # make DESTDIR=$PWD/_pkg install
116 # strip _pkg/usr/bin/*
117 </pre>
118 <h4>Install in rootfs</h4>
119 <pre> # cp _pkg/usr/bin/* $fs/usr/bin
120 # cp _pkg/usr/share/pixmaps/* $fs/usr/share/pixmaps
121 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
122 </pre>
124 <h3 id="mtpaint">mtpaint-3.11 - Image creation and processing</h3>
125 <p>
126 Website: <a href="http://mtpaint.sourceforge.net/">http://mtpaint.sourceforge.net/</a>
127 </p>
128 <pre> # wget http://switch.dl.sourceforge.net/sourceforge/mtpaint/mtpaint-3.11.tar.bz2
129 # tar xjf mtpaint-3.11.tar.bz2
130 # cd mtpaint-3.11
131 # ./configure --cpu=i486 --prefix=/usr intl
132 # make
133 # strip src/mtpaint
134 </pre>
135 <h4>Install in rootfs</h4>
136 <pre> # cp src/mtpaint $fs/usr/bin
137 # cp po/fr.mo $fs/usr/share/locale/fr/LC_MESSAGES/mtpaint.mo
138 # cp src/icons1/icon.xpm $fs/usr/share/pixmaps/mtpaint.xpm
139 </pre>
141 <h3 id="transmission">Transmission-0.72 - Lightweight BitTorrent client</h3>
142 <p>
143 Tranmission BitTorrent client is fast, lightweight and easy to use. The compiled package provides
144 the command line client (transmissioncli) and a GTK+ client (transmission-gtk). We install the GTK+ client,
145 the command line client is distributed as a separate SliTaz package (*.tazpkg).
146 </p>
147 <p>
148 Website: <a href="http://transmission.m0k.org/">http://transmission.m0k.org/</a>
149 </p>
150 <pre> # wget http://download.m0k.org/transmission/files/Transmission-0.72.tar.gz
151 # tar xzf Transmission-0.72.tar.gz
153 La version 0.72 est mal archivée:
154 # mv "Transmission .72" Transmission-0.72
156 # cd Transmission-0.72
157 # ./configure --prefix=/usr --disable-openssl
158 # make
159 # strip gtk/transmission-gtk
160 # strip cli/transmissioncli
161 </pre>
162 <h4>Install in rootfs</h4>
163 <pre> # cp gtk/transmission-gtk $fs/usr/bin
164 # cp gtk/transmission.png $fs/usr/share/pixmaps
165 # cp gtk/po/fr.mo $fs/usr/share/locale/fr/LC_MESSAGES/transmission-gtk.mo
166 </pre>
168 <h3 id="emelfm2">emelfm2-0.3.5 - File Manager</h3>
169 <p>
170 The emelFM2 application is a file manager providing lots of useful functions,
171 such as the mounting of devices, a text viewer, opening a terminal in the current
172 directory and so on.
173 </p>
174 <p>
175 Website: <a href="http://emelfm2.net/">http://emelfm2.net/</a>
176 </p>
177 <pre> # cd ..
178 # wget http://emelfm2.net/rel/emelfm2-0.3.5.tar.gz
179 # tar xzf emelfm2-0.3.5.tar.gz
180 # cd emelfm2-0.3.5
181 # make PREFIX=/usr
182 # make i18n PREFIX=/usr
183 # make install PREFIX=$PWD/_pkg/usr
184 # make install_i18n PREFIX=$PWD/_pkg/usr
185 # strip -v _pkg/usr/bin/*
186 # strip -v _pkg/usr/lib/emelfm2/plugins/*
187 </pre>
188 <h4>Install in rootfs</h4>
189 <pre> # cp _pkg/usr/bin/* $fs/usr/bin
190 # cp -a _pkg/usr/lib/* $fs/usr/lib
191 # cp -a _pkg/usr/share/pixmaps $fs/usr/share
192 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
193 </pre>
195 <h3 id="geany">geany-0.11 - Integrated Development Environment</h3>
196 <p>
197 Geany is a simple, fast and light IDE offering colored syntax, tabs, autocompletion, aids to scripts and much more.
198 </p>
199 <p>
200 Website: <a href="http://geany.uvena.de/">http://geany.uvena.de/</a>
201 </p>
202 <p>
203 To compile and run geany on SliTaz, you must have the libstdc++ and libgcc1 libraries,
204 both provided by gcc (we recompiled with gcc-4.1.1), but you can copy the libraries from the host system.
205 </p>
206 <p>
207 Note: The force is with you, if you activate it via the option --enable-the-force.
208 </p>
209 <pre> # wget http://mesh.dl.sourceforge.net/sourceforge/geany/geany-0.11.tar.gz
210 # tar xzf geany-0.11.tar.gz
211 # cd geany-0.11
212 # ./configure --prefix=/usr --mandir=/usr/share/man \
213 --disable-vte --enable-the-force
214 # make
215 # make DESTDIR=$PWD/_pkg install
216 # strip -v _pkg/usr/bin/*
217 </pre>
218 <h4>Install in rootfs</h4>
219 <pre> # cp _pkg/usr/bin/* $fs/usr/bin
220 # cp -a _pkg/usr/share/geany $fs/usr/share
221 # cp _pkg/usr/share/pixmaps/geany.png $fs/usr/share/pixmaps
222 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
223 </pre>
225 <h3 id="gftp">gftp-2.0.18 - Fast and simple FTP client</h3>
226 <p>
227 The gFTP application is a fast and efficient FTP client with a GTK+ graphical interface.
228 Note that we compile without support for a text interface and SSL support. Get, untar,
229 configure, compile and install.
230 </p>
231 <p>
232 Website: <a href="http://www.gftp.org/">http://www.gftp.org/</a>
233 </p>
234 <pre> # wget http://www.gftp.org/gftp-2.0.18.tar.gz
235 # tar xzf gftp-2.0.18.tar.gz
236 # cd gftp-2.0.18
237 # ./configure --prefix=/usr --mandir=/usr/share/man \
238 --disable-ssl --disable-textport \
239 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
240 # make
241 # make DESTDIR=$PWD/_pkg install
242 # strip _pkg/usr/bin/*
243 </pre>
244 <h4>Install in rootfs</h4>
245 <p>
246 SliTaz provides only the GTK+ client on the CD. Note that <code>gftp</code> is just a small
247 script that detects the environment (console or X) and launches the right interface:
248 </p>
249 <pre> # cp _pkg/usr/bin/gftp $fs/usr/bin
250 # cp _pkg/usr/bin/gftp-gtk $fs/usr/bin
251 # cp -a _pkg/usr/share/gftp $fs/usr/share
252 # cp -a _pkg/usr/share/pixmaps $fs/usr/share
253 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
254 </pre>
255 <p>
256 To save a little space and avoid duplication, you can delete ‘COPYING’ (17 KB)
257 included in /usr/share/gftp. The GNU licence is already present in /usr/share/licence,
258 if you want to create a symbolic link.
259 </p>
261 <h3 id="xpad">xpad-2.12 - Mini note taking application</h3>
262 <p>
263 The Xpad application can quickly take notes via various customizable (GTK+) windows.
264 </p>
265 <p>
266 Website: <a href="http://xpad.sourceforge.net/">http://xpad.sourceforge.net/</a>
267 </p>
268 <pre> # wget http://surfnet.dl.sourceforge.net/sourceforge/xpad/xpad-2.12.tar.bz2
269 # tar xjf xpad-2.12.tar.bz2
270 # cd xpad-2.12
271 # ./configure --prefix=/usr --mandir=/usr/share/man \
272 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
273 # make
274 # make DESTDIR=$PWD/_pkg install
275 # strip _pkg/usr/bin/*
276 </pre>
277 <h4>Install in rootfs</h4>
278 <pre> # cp _pkg/usr/bin/xpad $fs/usr/bin
279 # cp -a _pkg/usr/share/pixmaps $fs/usr/share
280 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
281 </pre>
284 <!-- End of content -->
285 </div>
287 <!-- Footer. -->
288 <div id="footer">
289 <div class="footer-right"></div>
290 <a href="#top">Top of the page</a> |
291 <a href="index.html">Table of contents</a>
292 </div>
294 <div id="copy">
295 Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/en/">SliTaz</a> -
296 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
297 Documentation is under
298 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
299 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
300 </div>
302 </body>
303 </html>