Updating to version 0.20.2
[wmaker-crm.git] / INSTALL
blobb5d7891595ff78c1956359e1deee07af3db2963b
2                 Installation Instructions for Window Maker
6 SUPPORTED PLATFORMS
7 ===================
8 (ie: I've heard someone has compiled it on...)
10 - Intel/Linux RedHat 4.2 (primary platform)
11 - Intel/Linux other distributions
12 - Sparc/Linux RedHat 5.1
13 - PowerPC/MkLinux
14 - Alpha/Linux RedHat 5.1
15 - FreeBSD
16 - Solaris 2.5.1, 2.5.2
17 - Solaris 2.6.0
18 - Solaris 2.7beta
19 - SCO Unix
20 - SGI Irix
21 - OSF/1
22 - HP-UX
23 - AIX 4.1.4 / IBM PowerPC
24 - AIX 5.3
25 - DEC Alpha/Digital UNIX 4.x
26 - XFree86 / OS/2
27 - Corel Netwinder
29 Patches to make it work on other platforms are welcome.
32 REQUIREMENTS:
33 =============
35 The following software is required to use Window Maker
37 - X11R6.x       
38         Window Maker can be compiled in older versions of X, like X11R5
39         (Solaris) or X11R4 (OpenWindows) but it will not work 100% correctly.
40         In such servers there will not be application icons and you'll have
41         trouble using the dock. Upgrading the client libraries (Xlib, Xt etc)
42         will help if you can't upgrade the server.
45 If you will build Window Maker, make sure you have gcc and the X header files
46 installed. Specially for newbie Linux users: you must install all X development
47 packages and the gcc suite. Otherwise you won't be able to build any X program,
48 including Window Maker.
51 OPTIONAL:
52 =========
54 These libraries are not required to make Window Maker work, but they
55 are supported in case you want to use them. Version numbers are those
56 that I have (and therefore, guraranteed to work), but other versions
57 might work too. Tell me if you made wmaker work with some library
58 with a version older than the stated here.
61 - libXPM 4.7 or newer
62         Older versions may not work!!! 
63         Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
65         There is builtin support for XPM files, but it will not
66         load images in some uncommon encodings.
68 - libpng 0.96 or newer and zlib     
69         For PNG image support.
71 - libtiff 3.4 or newer
72         For TIFF image support.
73         You can get it at ftp://ftp.sgi.com/graphics/tiff
75 - libjpeg 6.0.1 or newer
76         For JPEG image support
78 - libgif 2.2 or libungif
79         For GIF image support   
81 - GNU xgettext
82         If you want to use translated messages, you will need GNU gettext.
83         Other versions of gettext are not compatible and will not work.
84         Get the GNU version from ftp://prep.ai.mit.edu
86 Most of these can be get from ftp.uu.net/pub/graphics
89 CONFIGURE OPTIONS:
90 ==================
92 These options can be passed to the configure script to enable/disable
93 some Window Maker features. Example:
95 ./configure --enable-kanji
97 will configure Window Maker with kanji (and other multi-byte) characters
98 support compiled in.
101 To get a list of other options, run ./configure --help
103 --enable-sound  enable support of sound effects module
105 --disable-xpm   disables use of the XPM library even if it is available on
106         your system. 
108 --disable-png   disables use of PNG library
110 --disable-tiff  disable use of TIFF library
112 --disable-gif   disable use of GIF library
114 --disable-jpeg  disable use of JPEG library
116 --disable-shape  disables shaped windows (for oclock, xeyes etc.)
118 --enable-debug  adds extra debugging information. Do not use it
119         unless you're debugging Window Maker.
120         
121 --enable-kanji  support to display Kanji characters, Korean, Chinese 
122                 and other languagues that require special characters.
124 --enable-single-icon  enables the collapsing of all appicons of the
125          WM_CLASS+WM_INSTANCE into a single one. This feature is not 
126         supported at all by the developers. If you have some trouble with it,
127         contact it's author: Christopher Seawood <cls@seawood.org>
129 --disable-shm   disable use of the MIT shared memory extension. This will
130         slow down texture generation.
133 PLATFORM SPECIFIC NOTES:
134 ========================
135 - SCO Unix - run configure like
136         CFLAGS="-belf -DANSICPP" ./configure 
138 - SunOS, Solaris 
139         If you have gcc installed, after running configure, edit
140         src/config.h and change the #define CPP_PATH line to
141         #define CPP_PATH "gcc -E -x c"
142         Sun's cpp lacks some features needed by Window Maker and it can
143         cause problems when parsing the config files.
144         You also might need to use the --with-gfx-libs and --with-gfx-incs
145         to supply the directory where libtiff is located.
147 - RedHat Linux
148         Make sure you don't have the LANG and LINGUAS environment variables
149         set to en_RN. Also, make sure you have /usr/local/bin in your
150         PATH environment variable, as for some mysterious reason the folks
151         at RedHat did not include it in the default configuration files
152         in RH 5.{0,1}.
154 - PowerPC MkLinux
155         You will need to have the latest version of Xpmac. Older versions
156         seem to have bugs that cause the system to hang.
158 - Debian Linux
159         If you want JPEG and TIFF support, make sure you have libtiff-dev 
160         and libjpeg-dev installed.
161         
162 - MetroX (unknown version)
163         MetroX has a bug that corrupts pixmaps that are set as window
164         backgrounds. If you use MetroX and has weird problems with
165         textures, do not use textures in titlebars. Or use a different
166         X server.
169 INSTALLATION:
170 =============
172 Unpack WindowMaker-data.tar.gz and move the pixmaps directory in it
173 to /usr/local/share/pixmaps
175 You can get the file at ftp://ftp.windowmaker.org. This file is optional
176 and only have a few icons.
179 autoconf and automake
180 ---------------------
182 autoconf and automake are not required, but if you have them installed,
183 make sure you have autoconf 2.12 and automake 1.3 or newer. If you have
184 an older version, disable them by temporarily renaming them to something 
185 else or uninstalling them from your system. 
188 Build Window Maker
189 ------------------
190         For a quick start, type the following in your shell prompt:
192         ./configure
193         make
195 then, login as root and type:
197         make install
199 or if you want to strip the debugging symbols from the binaries and make them
200 smaller, you can instead type:
202         make install-strip
204 This will build and install Window Maker with default parameters.
206 If you want to customize some compile-time options, you can do the
207 following. 
209         1. (optional) Look at the CONFIGURE OPTIONS section above for the 
210         options available. Also run:
212         ./configure --help
214         to get a complete listing of other options that are available.
216         2. Run configure with the options you want. For example, if you
217         want to use the --enable-kanji option, type:
219         ./configure --enable-kanji
221         3. (optional) Edit src/wconfig.h with your favorite text editor 
222         and browse through it for some options you might want to change.
224         4. Compile. Just type:
226         make
228         5. Login as root (if you can't do that, read the "I don't have the 
229         root password :-(" section) and install Window Maker in your system:
230                 su root
231                 make install
234 User specific configuration
235 ---------------------------
237 These instructions do not need to be followed when upgrading Window Maker
238 from an older version, unless stated differently in the NEWS file.
240 Every user on your system that wishes to run Window Maker must do the
241 following:
243         1. Install Window Maker configuration files in your home directory.
244 Type:
245         wmaker.inst
247         wmaker.inst will install Window Maker configuration files and will
248 setup X to automatically launch Window Maker at startup.
250         That's it! 
251         
252         You can type "man wmaker" to get some general help for configuration
253 and other stuff.
255 Read the User Guide for a more in-depth explanation of Window Maker.
257 You might want to take a look at the FAQ too.
260 I don't have the root password :(
261 ---------------------------------
263 If you can't get superuser privileges (can't be root) you can install
264 wmaker in your own home directory. For that, supply the --prefix option
265 when running configure in step 2 of building Window Maker. You will
266 also need to supply the --with-appspath option, to specify the path for
267 WPrefs.app Example:
269 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps
271 If you use national language support, you must also supply the --with-nlsdir
272 option, as:
274 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps \
275         --with-nlsdir=/home/jshmoe/lib/locale
277 Then make /home/jshmoe/bin be included in your search path and run 
278 bin/wmaker.inst
281 UPGRADING
282 =========
284 If you are upgrading from an older version of Window Maker:
286         1. Configure and build Window Maker as always
287         2. Install Window Maker (but do not run wmaker.inst)
288         3. Read the NEWS file and update your configuration files, 
289            if necessary.
291 TROUBLESHOOTING
292 ===============
294 When you have some trouble during configuration (while running configure),
295 like not being able to use a graphic format library you think you have
296 installed, look at the config.log file for clues of the problem.
299 == Error during build of libPropList
301 make: *** No rule to make target `libPropList.a.c', needed by 
302 `libPropList.a.o'.  Stop.
304 Make sure the autoconf and automake versions you have installed are at
305 least:
306 autoconf 2.12
307 automake 1.3
309 If you are using the RPM's that come with RedHat 4.x, don't use them.
310 It is broken. Uninstall the RPM and reinstall a fresh package from
311 ftp://prep.ai.mit.edu or any mirror.
313 == configure doesn't detect libtiff, or other graphic libraries.
315 Delete config.cache, then rerun configure adding the following options to
316 configure (among the other options you use):
317 --with-gfx-libs="-L/usr/local/lib"
318 --with-gfx-incs="-I/usr/local/include -I/usr/local/include/tiff"
319 Put the paths where your graphic libs and their corresponding header files are
320 located. You can put multiple paths in any of these options, as the example
321 of --with-gfx-incs shows. Just put a space between them.
324 == configure doesn't detect libXpm. 
326 * Check if you have a symbolic link from libXpm.so.4.9 to libXpm.so
329 == Segmentation fault on startup
331 * Check if the version of libXPM you have is at least 4.7
333 * Check if you have an updated version of ~/GNUstep/Defaults/WindowMaker
335 If you're not sure, try renaming ~/GNUstep to ~/GNUtmp and then run wmaker.inst
337 == "...: your machine is misconfigured. gethostname() returned (none)"
339 * the hostname of your machine is set to something invalid, that starts
340         with a parenthesis. Do a man hostname for info about how to set it.
343 == The root menu contains only 2 entries. ("XTerm" and "Exit...")
345 * Window Maker is not finding cpp (the C preprocessor). If your cpp is
346 not located in /lib/cpp, edit src/config.h and correct the path in
347 CPP_PATH.
351 LOCALES/INTERNATIONALIZATION
352 ============================
354 Window Maker has national language support. 
355 To enable national language support, you must compile
356 Window Maker with some additional parameters. 
358 0 - You must have the GNU gettext package installed. It can be
359 obtained at ftp://prep.ai.mit.edu/pub/gnu/gettext-nnn.tar.gz
361 Steps 1 to 3 can be skipped if you use the Install script.
363 1 - You have to select the languages you want to support. Set the
364 LINGUAS to the list of locales you want. English is always
365 suported. Example:
367 setenv LINGUAS "pt ja de"
368 in csh
372 export LINGUAS;LINGUAS="pt ja de"
373 in sh
375 The list of supported locales can be found in po/README.
376 English is the default language.
378 Read po/README if you wish to translate and maintain locale files 
379 for other languages.
381 2 - Additionally, if your language uses multi-byte characters, such
382 as Japanese or Korean, you must supply the --enable-kanji flag to configure.
384 3 - Configure, build and install Window Maker normally.
386 4 - To select a particular locale at runtime you must set the LANG
387 environment variable to the locale you want. For example, if you want to set
388 the portuguese locale, you must run
390 setenv LANG pt
392 in csh or
394 export LANG; LANG=pt
396 in Bourne sh and similars
398 Note: If you have the LC_CTYPE environment variable set, you must
399 unset it before running wmaker.
401 For menu definition files, Window Maker searches for them in the
402 following order (for brazilian portuguese, in this case):
404 menu.pt_BR
405 menu.pt
406 menu
409 5 - If you chose a language that uses multi-byte characters, you must
410 configure the fonts appropriately. Read the manual page for XCreateFontSet
411 to have more details about it. You must change the ~/G/D/WindowMaker file
412 for fonts used in titlebars, menus and other things. For fonts used in
413 dialog windows, change ~/G/D/WMGLOBAL. Note that at the moment you can only
414 supply a single font in WMGLOBAL. The %d in the font names must not be
415 removed.
417 For example, you can specify the following in ~/G/D/WindowMaker:
419 WindowTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
420 MenuTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
421 MenuTextFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
422 IconTitleFont = "-*-helvetica-medium-r-normal-*-8-*,-*-*-medium-r-normal-*-12-*";
423 ClipTitleFont = "-*-helvetica-bold-r-normal-*-10-*,-*-*-medium-r-normal-*-12-*";
424 DisplayFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-12-*";
426 and in ~/G/D/WMGLOBAL:
428 SystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
429 BoldSystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
431 The above 2 fonts are only used by applications that use WINGs (WindowMaker
432 and WPrefs.app)