Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/docs/INSTALL.txt
blob: b14d96344a23c3ee326873b0d7d57deacc2235a4 (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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
INSTALL.txt for Tux Paint

Tux Paint - A simple drawing program for children.

Copyright 2002-2007 by Bill Kendrick and others
bill@newbreedsoftware.com
http://www.tuxpaint.org/

June 27, 2002 - July 12, 2007
$Id: INSTALL.txt,v 1.14 2009/07/01 21:58:37 wkendrick Exp $


Requirements:
-------------
  Windows Users:
  --------------
    The Windows version of Tux Paint comes pre-packaged with the
    necessary pre-compiled libraries (in ".DLL" form), so no extra
    downloading is needed.
    
  libSDL
  ------
    Tux Paint requires the Simple DirectMedia Layer Library (libSDL),
    an Open Source multimedia programming library available under the
    GNU Lesser General Public License (LGPL).

    Along with libSDL, Tux Paint depends on a number of other SDL 'helper'
    libraries:  SDL_Image (for graphics files), SDL_TTF and (optionally)
    SDL_Pango (for True Type Font support) and, optionally,
    SDL_Mixer (for sound effects).

    Linux/Unix Users:
    -----------------
      The SDL libraries are available as source-code, or as RPM or Debian
      packages for various distributions of Linux.  They can be downloaded
      from:

        libSDL:      http://www.libsdl.org/
        SDL_Image:   http://www.libsdl.org/projects/SDL_image/
        SDL_TTF:     http://www.libsdl.org/projects/SDL_ttf/
        SDL_Pango:   http://sourceforge.net/projects/sdlpango/   [OPTIONAL]
        SDL_Mixer:   http://www.libsdl.org/projects/SDL_mixer/   [OPTIONAL]

      They are also typically available along with your Linux distribution
      (e.g. on an installation CD, or available via package maintainance
      software like Debian's "apt-get").

      NOTE: When installing from packages, be sure to ALSO install the
      "-devel" versions of the packages.  (For example, install both
      "SDL-1.2.4.rpm" AND "SDL-1.2.4-devel.rpm")

  Other Libraries:
  ----------------
    Tux Paint also takes advantage of a number of other
    free, LGPL'd libraries.  Under Linux, just like SDL, they should
    either already be installed, or are readily available for installation
    as part of your Linux distribution.
    
    libPNG
    ------
      Tux Paint uses PNG (Portable Network Graphics) format for its
      data files.  SDL_image will require libPNG be installed.

        http://www.libpng.org/pub/png/libpng.html

    gettext
    -------
      Tux Paint uses your system's locale settings along with the
      "gettext" library to support various languages (e.g., Spanish).
      You'll need the gettext library installed.

        http://www.gnu.org/software/gettext/

    libpaper (Linux/Unix only)
    --------------------------
      As of Tux Paint 0.9.17, Tux Paint can determine your system's
      default paper size (e.g., A4 or Letter), or can be told to use a
      particular paper size, thanks to libpaper.

        http://www.debian.org/

    FriBiDi
    -------
      As of Tux Paint 0.9.21, Tux Paint's "Text" tool supports bidirectional
      languages, thanks to the FriBiDi library:

        http://fribidi.org/

    SVG graphics support
    --------------------
      As of Tux Paint 0.9.17, Tux Paint can load SVG
      (Scalable Vector Graphics) images as stamps.
      Two sets of libraries are supported, and SVG support can be
      completely disabled (via "make SVG_LIB:=")

      librsvg-2, libCairo2  [newer libraries]
      --------------------------------------------------------------
        libRSVG 2
          http://librsvg.sourceforge.net/

        Cairo 2
          http://www.cairographics.org/

        Also depends on:
          GdkPixbuf
          GLib
            http://www.gtk.org/

          Pango
            http://www.pango.org/

      Older libraries
      -------------------------------
        libcairo1
        libsvg1
        libsvg-cairo1
          http://www.cairographics.org/

        Also depends on:
          libxml2

    NetPBM Tools  [OPTIONAL]  [No longer used, by default]
    ------------------------
      Under Linux and Unix, the NetPBM tools are what are currently
      used for printing.  (A PNG is generated by TuxPaint, and converted
      into a PostScript using the 'pngtopnm' and 'pnmtops' NetPBM command-line
      tools.)

        http://netpbm.sourceforge.net/
	

Compiling and Installation:
---------------------------
  Tux Paint is released under the GNU General Public License (GPL)
  (see "COPYING.txt" for details), and therefore the 'source code' to
  the program is included.

  Windows Users:
  --------------
    Compiling:
    ----------
      Tux Paint comes pre-compiled for Windows, so no compilation is
      necessary.
      
      As of February 2005 (starting with Tux Paint 0.9.15), the Makefile
      includes support for building on a Windows system using MinGW/MSYS.
      ( http://www.mingw.org/ )
      
      After configuring the environment and building and installing all the 
      dependencies, use these commands, in MSYS, to build, install and run:

      Prior to version 0.9.20:

	$ make win32
	$ make install-win32
	$ tuxpaint

      Version 0.9.20 and beyond:

	$ make
	$ make install
	$ tuxpaint

      Use the following command to build a version suitable for
      redistribution with the installer or in a zip-file:

        $ make bdist-win32

      Or if building for Win9x/ME:

        $ BDIST_WIN9X=1 make bdist-win32

      Before any of the above will work, you need to configure the 
      environment and build or install the libraries that Tux Paint depends
      upon.  John Popplewell put together some instructions for doing that 
      here:

        http://johnnypops.demon.co.uk/mingw/index.html
      
      Read the relevant notes if building for Win9X/ME.

    Installer:
    ----------
      Double-click the Tux Paint installer executable (.EXE file) and
      follow the instructions.

      First, you will be asked to agree to the license.
      (It is the GNU General Public License (GPL), which is also
      available as "COPYING.txt".)

      You will then be asked whether you want to install shortcuts
      to Tux Paint in your Windows Start Menu and on your Windows Desktop.
      (Both options are set by default.)

      Then you will be asked where you wish to install Tux Paint.
      The default should be suitable, as long as there is space available.
      Otherwise, pick a different location.

      At this point, you can click 'Install' to install Tux Paint!

    Changing the Settings Using the Shortcut:
    -----------------------------------------
      To change program settings, right-click on the TuxPaint shortcut
      and select 'Properties' (at the bottom).
       
      Make sure the 'Shortcut' tab is selected in the window that
      appears, and examine the 'Target:' field.  You should see
      something like this :

        "C:\Program Files\TuxPaint\TuxPaint.exe"

      You can now add command-line options which will be enabled when
      you double-click the icon.
       
      For example, to make the game run in fullscreen mode,
      with simple shapes (no rotation option) and in French,
      add the options (after 'TuxPaint.exe'), like so:

        "C:\Program Files\TuxPaint\TuxPaint.exe" -f -s --lang french

      (See "README.txt" for a full list of available command-line options.)
       
      If you make a mistake or it all disappears use Ctrl-Z to undo or
      just hit the [ESC] key and the box will close with no changes made
      (unless you pushed the "Apply" button!).
       
      When you have finished, click "OK."

    If Something Goes Wrong
    -----------------------
      If, when you double-click on the shortcut to run the game,
      nothing happens, it is probably because some of these command-line
      options are wrong. Open an Explorer like before, and look for a file
      called 'stderr.txt' in the TuxPaint folder.
	
      It will contain a description of what was wrong. Usually it will
      just be due to incorrect character-case (capital 'Z' instead
      of lowercase 'z') or a missing (or extra) '-' (dash).
  
  
  Linux/Unix Users:
  -----------------
    Compiling:
    ----------
      Note: Currently, Tux Paint does not use autoconf/automake, so there
      is no "./configure" script to run.  (Sorry!)  Compiling should be
      straight-forward though, assuming everything Tux Paint needs is installed.

      To compile the program from source, simply run the following command
      from a shell prompt (e.g., "$"):

        $ make

    Disabling SVG support (and hence Cairo, libSVG and svg-cairo dependencies):
    ---------------------------------------------------------------------------
      To disable SVG support (e.g., if your system is not currently supported
      by the Cairo library or other SVG-related dependencies), you can
      run "make" with "SVG_LIB= SVG_CFLAGS= NOSVGFLAG=NOSVG" added:

        $ make SVG_LIB= SVG_CFLAGS=

    Disabling Pango support (and hence Pango, Cairo, etc. dependencies):
    --------------------------------------------------------------------
      Prior to version 0.9.18, Tux Paint used the libSDL_ttf library for
      rendering text using TrueType Fonts.  Since 0.9.18, libSDL_Pango is
      used, as it has much greater support for internationalization.
      However, if you wish to disable the use of SDL_Pango, you may do so
      running "make" with "SDL_PANGO_LIB=" added:

        $ make SDL_PANGO_LIB=

    Disabling Sound at Compile-time:
    --------------------------------
      If you don't have a sound card, or would prefer to build the program
      with no sound support (and therefore without a the SDL_mixer dependency),
      you can run "make" with "SDL_MIXER_LIB=" added:

        $ make SDL_MIXER_LIB=

    If you get errors:
    ------------------
      If you receive any errors during compile-time, make sure you have
      the appropriate libraries installed (see above).  If using packaged
      versions of the libraries (e.g., RPMs under RedHat or DEBs under Debian),
      be sure to get the corresponding "-dev" or "-devel" packages as well,
      otherwise you won't be able to compile Tux Paint (and other programs)
      from source!


    Installing:
    -----------
      Assuming no fatal errors occured, you can now install the program
      so that it can be run by users on the system.  By default, this must
      be done by the "root" user ('superuser').  Switch to "root" by
      typing the command:

        $ su

      Enter "root"'s password at the prompt.  You should now be "root"
      (with a prompt like "#").  To install the program and its
      data files, type:

        # make install

      Finally, you can switch back to your regular user by exiting
      superuser mode:

        # exit


      Alternatively, you may be able to simply use the "sudo" command
      (e.g., on Ubuntu Linux):

        $ sudo make install


      NOTE: By default, "tuxpaint", the executable program, is
      placed in "/usr/local/bin/".  The data files (images, sounds, etc.)
      are placed in "/usr/local/share/tuxpaint/".


      Changing Where Things Go
      ------------------------
        You can change where things will go by setting Makefile variables
        on the command line.  DESTDIR is used to place output in a staging
        area for package creation. "PREFIX" is the basis of where all other
        files go, and is, by default, set to "/usr/local".

        Other variables are:
          BIN_PREFIX
	    Where the "tuxpaint" binary will be installed.
	    (Set to "$(PREFIX)/bin" by default - e.g., "/usr/local/bin")
	  
	  DATA_PREFIX
	    Where the data files (sound, graphics, brushes, stamps, fonts)
 	    will go, and where Tux Paint will look for them when it's run.
	    (Set to "$(PREFIX)/share/tuxpaint")
	
	  DOC_PREFIX
	    Where the documentation text files (the "docs" directory) will go.
	    (Set to "$(PREFIX)/share/doc/tuxpaint")
	
	  MAN_PREFIX
	    Where the manual page for Tux Paint will go.
	    (Set to "$(PREFIX)/share/man")
	
	  ICON_PREFIX                      $(PREFIX)/share/pixmaps
	  X11_ICON_PREFIX                  $(PREFIX)/X11R6/include/X11/pixmaps
	  GNOME_PREFIX                     $(PREFIX)/share/gnome/apps/Graphics
	  KDE_PREFIX                       $(PREFIX)/share/applnk/Graphics
	    Where the icons and launchers (for GNOME and KDE) will go.
	
	  LOCALE_PREFIX
	    Where the translation files for Tux Paint will go, and where
	    Tux Paint will look for them.
	    (Set to "$(PREFIX)/share/locale/")
	    (Final location of a translation file will be
	    under the locale's directory (e.g., "es" for Spanish),
	    within the "LC_MESSAGES" subdirectory.)

        FIXME: This list is out of date.  See Makefile and Makefile-i18n for
        a complete list.
	
	
Uninstalling Tux Paint:
-----------------------
  Windows
  -------
    Using the Uninstaller
    ---------------------
      If you installed the Start Menu shortcuts (the default), then go to the 
      TuxPaint folder and select "Uninstall". A box will be displayed that will 
      confirm that you are about to uninstall Tux Paint and, if you are certain
      that you want to permanently remove Tux Paint, click on the 'Uninstall'
      button. 

      When it has finished, click on the close button.

      It is also possible to use the entry "TuxPaint (remove only)" in the
      Control Panel Add/Remove programs section.

      NOTE: because the pictures that are created are saved inside the Tux Paint 
      folder, this folder and the 'userdata' folder inside it are NOT removed.


  Linux
  -----
    Within the Tux Paint source directory (where you compiled Tux Paint),
    you can use a 'Makefile' target to uninstall Tux Paint.
    By default, this must be done by the "root" user ('superuser').
    (See the installation instructions above for further information.)

    Switch to "root" by typing the command:

      $ su

    Enter "root"'s password at the prompt.  You should now be "root"
    (with a prompt like "#").  To uninstall the program and its data files
    (the default rubber-stamp images, if any, will also be removed), type:

      # make uninstall

    Finally, you can switch back to your regular user by exiting
    superuser mode:

      # exit