Fixed some focus related problems when switching workspaces, including the
[wmaker-crm.git] / INSTALL
blobc427b0c63158a6bebbb78df0debda66a5dea1a2e
2                 Installation Instructions for Window Maker
6 SUPPORTED PLATFORMS
7 ===================
8 (ie: I've heard someone has compiled it on...)
10 - Intel GNU/Linux Conectiva 5.9 (beta)
11 - Intel GNU/Linux Slackware
12 - Intel GNU/Linux Debian
13 - Intel GNU/Linux other distributions
14 - Sparc GNU/Linux RedHat 5.1
15 - PowerPC GNU/MkLinux
16 - Alpha GNU/Linux RedHat 5.1
17 - FreeBSD
18 - NetBSD
19 - OpenBSD
20 - BSDI 4.0
21 - Solaris 2.5.1, 2.5.2
22 - Solaris 2.6.0
23 - Solaris 2.7beta
24 - Solaris 2.8 on Ultra Sparc 10 and E450
25 - SCO Unix
26 - SGI Irix 5.x, 6.5
27 - OSF/1
28 - HP-UX
29 - AIX 3.2.5
30 - AIX 4.1.4 / IBM PowerPC
31 - AIX 4.3.1 / IBM CC compiler
32 - AIX 4.3.2 / IBM PowerPC
33 - AIX 5.3
34 - DEC Alpha/Digital UNIX 4.x
35 - XFree86 / OS/2
36 - Corel NetWinder
37 - SunOS 4.x
38 - PowerMac / Power MachTen 4.1.1 over MacOS
39 - Amiga 3000 running RedHat Linux 5.1 (Rawhide)
40 - IBM S/390 running Linux
41 - IBM S/390 running Conectiva Linux (experimental)
42 - iBook running Darwin
43 - Windows NT with Cygwin/XFree86
44 - Sony PlayStation2 running Linux
46 All registered trademarks are registered by their owners. (duh)
48 Patches to make it work on other platforms are welcome. 
51 REQUIREMENTS:
52 =============
54 The following software is required to use Window Maker:
56 - X11R6.x       
57         Window Maker can be compiled in older versions of X, like X11R5
58         (Solaris) or X11R4 (OpenWindows) but it will not work 100% correctly.
59         In such servers there will not be application icons and you'll have
60         trouble using the dock. Upgrading the client libraries (Xlib, Xt etc)
61         will help if you can't upgrade the server.
63 The following is required to build Window Maker:
65 - Basic obvious stuff
66         If you will build Window Maker, make sure you have gcc (or some
67         other ANSI C compiler) and the X header files installed. Specially
68         for newbie Linux users: you must install all X development packages
69         and the gcc suite. Otherwise you won't be able to build any X
70         program, including Window Maker.
72 - autoconf, automake and libtool
73         These tools are NOT needed, but IF you have one or
74         more of them installed, make sure you have ALL of the following 
75         with exactly these versions:
76                 autoconf 2.13
77                 automake 1.4
78                 libtool 1.3
79         If you have a different version, disable them by temporarily
80         renaming them to something else or uninstalling them from your
81         system. If you don't develop software you don't need them,
82         so you can safely uninstall. 
85 OPTIONAL:
86 =========
88 These libraries are not required to make Window Maker work, but they
89 are supported in case you want to use them. Version numbers are those
90 that I have (and therefore, guraranteed to work), but other versions
91 might work too. 
94 - libXPM 4.7 or newer
95         Older versions may not work!!! 
96         Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
98         There is builtin support for XPM files, but it will not
99         load images in some uncommon encodings.
101 - libpng 0.96 or newer and zlib     
102         For PNG image support.
103         http://www.cdrom.com/pub/png/
105 - libtiff 3.4 or newer
106         For TIFF image support.
107         You can get it at ftp://ftp.sgi.com/graphics/tiff
109 - libjpeg 6.0.1 or newer
110         For JPEG image support
111         http://www.ijg.org/
113 - libgif 2.2 or libungif
114         For GIF image support
115         ftp://prtr-13.ucsc.edu/pub/libungif/
117 - libHermes 1.3.2 or newer
118         For faster pixel conversion in the wraster library
119         (its used only in some conversions - for TrueColor visuals)
120         http://www.clanlib.org/hermes/
122 - GNU xgettext
123         If you want to use translated messages, you will need GNU gettext.
124         Other versions of gettext are not compatible and will not work.
125         Get the GNU version from ftp://ftp.gnu.org
129 CONFIGURE OPTIONS:
130 ==================
132 These options can be passed to the configure script to enable/disable
133 some Window Maker features. Example:
135 ./configure --enable-kde --enable-gnome
137 will configure Window Maker with KDE and GNOME supported compiled in.
140 To get a list of other options, run ./configure --help
142 --with-libs-from
143         specify additional paths for libraries to be searched.
144         The -L flag must precede each path, like:
145         --with-libs-from="-L/opt/libs -L/usr/local/lib"
147 --with-incs-from
148         specify additional paths for header files to be searched.
149         The -I flag must precede each paths, like:
150         --with-incs-from="-I/opt/headers -I/usr/local/include"
152 --enable-single-icon
153         enables the collapsing of all appicons of the WM_CLASS+WM_INSTANCE
154         into a single one. This feature is not supported at all by the
155         developers. If you have some trouble with it, contact it's author:
156         Christopher Seawood <cls@seawood.org>
158 --disable-shm
159         disable use of the MIT shared memory extension. This will slow down
160         texture generation a little bit, but in some cases it seems to be
161         necessary due to a bug that manifests as messed icons and textures.
163 --disable-motif 
164         disable support for mwm window manager hints
166 --enable-openlook
167         enable support for OPEN LOOK(tm) window manager hints
169 --enable-gnome
170         enable support for GNOME window manager hints
172 --enable-kde
173         enable support for kde/kwm window manager hints
175 --enable-lite
176         remove things that are already supported in desktop environments,
177         like KDE and GNOME. Disabled things are: window list, root
178         applications menu, multiple window selection. Note that you will not
179         be able to exit Window Maker from itself anymore; you will have to
180         use kill with the SIGTERM signal or exit it from KDE. It is not
181         advisable to enable it.
183 --enable-modelock
184         XKB language status lock support. If you don't know what it is you
185         probably don't need it.
187 --enable-sound  
188         enable support of sound effects module
190 --disable-xpm   
191         disables use of the XPM library even if it is available on your
192         system.
194 --disable-png   
195         disables use of PNG library
197 --disable-tiff
198         disable use of TIFF library
200 --disable-gif
201         disable use of GIF library
203 --disable-jpeg
204         disable use of JPEG library
206 --disable-shape
207         disables shaped windows (for oclock, xeyes etc.)
210 PLATFORM SPECIFIC NOTES:
211 ========================
213 - DEC/Alpha machines
215 #>>>>>>>>>>>
216 From: Anton Ivanov <aivanov@eu.level3.net>
217 To: Marcelo E. Magallon <mmagallo@debian.org>
218 Subject: Re: Is the WindowMaker package working ok on Alpha?
220 > Hi,
222 >  I was reading some docs on the WindowMaker tarball, and found this:
224 >  | - DEC/Alpha machines
225 >  |         You might need to pass the --disable-shm flag to configure,
226 >  |         like ./configure --disable-shm
228 >  is anyone having problems with WindowMaker on Alpha?  Can someone
229 >  please test this?  Should the flag be passed when building on Alpha?
231 Disclaimer: alphas under my command have never run X and are least likely to 
232 suddenly start running it anytime soon.
234         Alpha used to have some ridiculously low amount of shared memory
235 configured. 
236 So quite a lot of apps used to barf. Namely - cdrecord, mysql server, etc.
238         Check where is yours at the moment and raise it to a more appropriate
239 value by either catting to the appropriate /proc entry or changing the
240 /usr/src/linux/include/asm/shmparam.h.
242         Otherwise the shared memory on alpha should be fully functional and I
243 see no reason to disable it. Mine are bumped up to 32 or more on most
244 machines.
246         And If I recall correctly the comments in that file are actually
247 wrong. Value is not bytes, but in machine size word. For alpha *8.
249         As I said - I do not run X on them so all #include "stdisclaimer.h"
250 apply.
251 #<<<<<<<<<<<<
254 - SCO Unix - run configure like
255         CFLAGS="-belf -DANSICPP" ./configure 
257 - SunOS, Solaris 
258         If you have gcc installed, run configure as:
259         CPP_PATH="gcc -E -x c" ./configure
260         Sun's cpp lacks some features needed by Window Maker and it can
261         cause problems when parsing the config files.
262         You also might need to use the --with-libs-from and --with-incs-from
263         to supply the directory where libtiff is located.
264         Someone mailed me that you also must make /usr/local/lib be the
265         first path in LD_LIBRARY_PATH to make it work.
267         If you have a Ultra Creator 3D or some other machine with high-end
268         graphics, be sure to start the X server with the default visual
269         set to 24bpp or you might experience problems with mangled colors.
270         This is a wmaker bug and will be fixed.
272 - GNU/Linux in general
273         Make sure you have /usr/local/lib in /etc/ld.so.conf and that you
274         run ldconfig after installing.
275         Uninstall any packaged version of Window Maker before installing a new
276         version. 
278 - RedHat GNU/Linux
279         RedHat systems have several annoying problems. If you use it, 
280         be sure to follow the steps below or Window Maker will not work:
282         * if you installed the Window Maker that comes with RedHat, uninstall
283         it before upgrading;
285         * make sure you don't have the LANG and LINGUAS environment variables
286         set to en_RN;
288         * make sure you have /usr/local/bin in your PATH environment
289         variable;
291         * make sure you have /usr/local/lib in /etc/ld.so.conf before running
292         ldconfig;
294         * if you have problems that mention an error message with --no-reexec
295         uninstall libtool-1.2b and install libtool-1.3 instead. libtool-1.3
296         can be found in ftp.gnu.org  Also read the TROUBLESHOOTING section;
298         * if you installed the Window Maker package from RedHat and are
299         installing a new version of it by hand (compiling yourself), uninstall
300         the package from RedHat before.
302         * make sure you have a symbolic link from /usr/include/X11 to
303         /usr/X11R6/include/X11 (if not, type ln -s /usr/X11R6/include/X11
304         /usr/include/X11 )
306         * make sure you have /lib/cpp pointing to the cpp program
308         If you have any doubts in doing any of the stuff above, please
309         don't hesitate to contact the RedHat user support. They will
310         kindly answer to all your questions regarding their system.
311         They also know much more about their own system than us 
312         (we don't use RedHat).
315 - PowerPC MkLinux
316         You will need to have the latest version of Xpmac. Older versions
317         seem to have bugs that cause the system to hang.
319 - Debian GNU/Linux
320         If you want JPEG and TIFF support, make sure you have libtiff-dev 
321         and libjpeg-dev installed.
323 - SuSE GNU/Linux
324         If you installed the Window Maker package from SuSE,
325         uninstall it before trying to compile wmaker or you
326         might have problems.
328 - MetroX (unknown version)
329         MetroX has a bug that corrupts pixmaps that are set as window
330         backgrounds. If you use MetroX and has weird problems with
331         textures, do not use textures in titlebars. Or use a different
332         X server.
334 INSTALLATION:
335 =============
337 Build Window Maker
338 ------------------
339         For a quick start, type the following in your shell prompt:
341         ./configure
342         make
344 then, login as root and type:
346         make install
347         ldconfig
349 or if you want to strip the debugging symbols from the binaries and make them
350 smaller, you can instead type:
352         make install-strip
353         ldconfig
355 This will build and install Window Maker with default parameters.
357 If you want to customize some compile-time options, you can do the
358 following. 
360         1. (optional) Look at the CONFIGURE OPTIONS section above for the 
361         options available. Also run:
363         ./configure --help
365         to get a complete listing of other options that are available.
367         2. Run configure with the options you want. For example, if you
368         want to use the --enable-kde option, type:
370         ./configure --enable-kde
372         3. (optional) Edit src/wconfig.h with your favorite text editor 
373         and browse through it for some options you might want to change.
375         4. Compile. Just type:
377         make
379         5. Login as root (if you can't do that, read the "I don't have the 
380         root password :-(" section) and install Window Maker in your system:
381                 su root
382                 make install
385 User specific configuration
386 ---------------------------
388 These instructions do not need to be followed when upgrading Window Maker
389 from an older version, unless stated differently in the NEWS file.
391 Every user on your system that wishes to run Window Maker must do the
392 following:
394         1. Install Window Maker configuration files in your home directory.
395 Type:
396         wmaker.inst
398         wmaker.inst will install Window Maker configuration files and will
399 setup X to automatically launch Window Maker at startup.
401         That's it! 
402         
403         You can type "man wmaker" to get some general help for configuration
404 and other stuff.
406 Read the User Guide for a more in-depth explanation of Window Maker.
408 You might want to take a look at the FAQ too.
412 Installing the extras package
413 -----------------------------
415 Unpack WindowMaker-extra-<version-number>.tar.gz in /usr/local/share
416         
417 You can get the file at ftp://ftp.windowmaker.org. This file is optional
418 and only have a few icons, and themes. Look for the latest <version-number>
419 available.
420 Also there is a WindowMaker-extra.readme to instruct you where that package
421 should go.
425 I don't have the root password :(
426 ---------------------------------
428 If you can't get superuser privileges (can't be root) you can install
429 wmaker in your own home directory. For that, supply the --prefix option
430 when running configure in step 2 of building Window Maker. You will
431 also need to supply the --with-appspath option, to specify the path for
432 WPrefs.app Example:
434 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps
437 Then make /home/jshmoe/bin be included in your search PATH, add
438 /home/jshmoe/lib to your LD_LIBRARY_PATH environment variable and run 
439 bin/wmaker.inst
441 Of course, /home/jshmoe is supposed to be replaced with your actual home
442 directory path.
446 UPGRADING
447 =========
449 If you are upgrading from an older version of Window Maker:
451    1. Configure and build Window Maker as always
452    2. Install Window Maker (but do not run wmaker.inst)
453    3. Read the NEWS file and update your configuration files if necessary.
456 TROUBLESHOOTING
457 ===============
459 When you have some trouble during configuration (while running configure),
460 like not being able to use a graphic format library you think you have
461 installed, look at the config.log file for clues of the problem.
464 == Error with loading fonts, even if they exist.
466 Try rebuilding without NLS support.
468 == Error when configuring
470 ltconfig: unrecognized option `--no-reexec'
471 Try `ltconfig --help' for more information.
472 configure: error: libtool configure failed
474 remove the --no-reexec option from aclocal.m4 and reconfigure
475 Also make sure the autoconf and automake versions you have installed are:
476 autoconf 2.13
477 automake 1.4
478 libtool 1.3
480 Note that it must not be libtool 1.2b, it must be libtool 1.3, 
481 from the GNU sites.
483 == configure doesn't detect libtiff, or other graphic libraries.
485 Delete config.cache, then rerun configure adding the following options to
486 configure (among the other options you use):
487 --with-libs-from="-L/usr/local/lib"
488 --with-incs-from="-I/usr/local/include -I/usr/local/include/tiff"
489 Put the paths where your graphic libs and their corresponding header files are
490 located. You can put multiple paths in any of these options, as the example
491 of --with-incs-from shows. Just put a space between them.
494 == configure doesn't detect libXpm. 
496 * Check if you have a symbolic link from libXpm.so.4.9 to libXpm.so
499 == Segmentation fault on startup
501 * Check if the version of libXPM you have is at least 4.7
503 * Check if you have an updated version of ~/GNUstep/Defaults/WindowMaker
505 If you're not sure, try renaming ~/GNUstep to ~/GNUtmp and then run wmaker.inst
507 == "...: your machine is misconfigured. gethostname() returned (none)"
509 * the hostname of your machine is set to something invalid, that starts
510         with a parenthesis. Do a man hostname for info about how to set it.
513 == The root menu contains only 2 entries. ("XTerm" and "Exit...")
515 * Window Maker is not finding cpp (the C preprocessor). If your cpp is
516 not located in /lib/cpp, edit src/config.h and correct the path in
517 CPP_PATH.
519 == checking lex output file root... configure: error: cannot find output from true; giving up
521 * Read the REQUIREMENTS section of this file.
524 LOCALES/INTERNATIONALIZATION
525 ============================
527 Window Maker has national language support. To enable national language
528 support, you must compile Window Maker with some additional parameters.
531 0 - You must have the GNU gettext package installed. It can be
532 obtained at ftp://prep.ai.mit.edu/pub/gnu/gettext-nnn.tar.gz
534 Steps 1 to 3 can be skipped if you use the Install script.
536 1 - You have to select the languages you want to support. Set the
537 LINGUAS to the list of locales you want. English is always
538 suported. Example:
540 setenv LINGUAS "pt ja de"
541 in csh
545 export LINGUAS;LINGUAS="pt ja de"
546 in sh
548 The list of supported locales can be found in po/README.
549 English is the default language.
551 Read po/README if you wish to translate and maintain locale files 
552 for other languages.
554 2 - Additionally, if your language uses multi-byte characters, such
555 as Japanese or Korean, you must set the MultiByteText option to YES
556 in ~/GNUstep/Defaults/WMGLOBAL 
558 3 - Configure, build and install Window Maker normally.
560 4 - To select a particular locale at runtime you must set the LANG
561 environment variable to the locale you want. For example, if you want to set
562 the portuguese locale, you must run
564 setenv LANG pt
566 in csh or
568 export LANG; LANG=pt
570 in Bourne sh and similars
572 Note: If you have the LC_CTYPE environment variable set, you must
573 unset it before running wmaker.
575 For menu definition files, Window Maker searches for them in the
576 following order (for brazilian portuguese, in this case):
578 menu.pt_BR
579 menu.pt
580 menu
583 5 - If you chose a language that uses multi-byte characters, you must
584 configure the fonts appropriately. Read the manual page for XCreateFontSet
585 to have more details about it. You must change the ~/G/D/WindowMaker file
586 for fonts used in titlebars, menus and other things. For fonts used in
587 dialog windows, change ~/G/D/WMGLOBAL. The %d in the font names must not be
588 removed. You can also use the supplied wsetfont script for the task.
589 Read the script itself for instructions.
591 For example, you can specify the following in ~/G/D/WindowMaker:
593 WindowTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
594 MenuTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
595 MenuTextFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
596 IconTitleFont = "-*-helvetica-medium-r-normal-*-8-*,-*-*-medium-r-normal-*-12-*";
597 ClipTitleFont = "-*-helvetica-bold-r-normal-*-10-*,-*-*-medium-r-normal-*-12-*";
598 DisplayFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-12-*";
600 and in ~/G/D/WMGLOBAL:
602 SystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
603 BoldSystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
605 The above 2 fonts are only used by applications that use WINGs (WindowMaker
606 and WPrefs.app)
608 The wsetfont script that's supplied will allow you to change the font
609 settings in a easier way. Take a look in the script for details on usage.