- Fixed not working Grayscale visual (was crashing)
[wmaker-crm.git] / INSTALL
blobf9660115b3d137da83e430524d8f607899a0ed98
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 - SCO Unix
25 - SGI Irix 5.x, 6.5
26 - OSF/1
27 - HP-UX
28 - AIX 3.2.5
29 - AIX 4.1.4 / IBM PowerPC
30 - AIX 4.3.1 / IBM CC compiler
31 - AIX 4.3.2 / IBM PowerPC
32 - AIX 5.3
33 - DEC Alpha/Digital UNIX 4.x
34 - XFree86 / OS/2
35 - Corel NetWinder
36 - SunOS 4.x
37 - PowerMac / Power MachTen 4.1.1 over MacOS
38 - Amiga 3000 running RedHat Linux 5.1 (Rawhide)
39 - IBM S/390 running Linux
40 - iBook running Darwin
41 - Windows NT with Cygwin/XFree86
43 Patches to make it work on other platforms are welcome. 
46 REQUIREMENTS:
47 =============
49 The following software is required to use Window Maker:
51 - X11R6.x       
52         Window Maker can be compiled in older versions of X, like X11R5
53         (Solaris) or X11R4 (OpenWindows) but it will not work 100% correctly.
54         In such servers there will not be application icons and you'll have
55         trouble using the dock. Upgrading the client libraries (Xlib, Xt etc)
56         will help if you can't upgrade the server.
58 The following is required to build Window Maker:
60 - Basic obvious stuff
61         If you will build Window Maker, make sure you have gcc (or some
62         other ANSI C compiler) and the X header files installed. Specially
63         for newbie Linux users: you must install all X development packages
64         and the gcc suite. Otherwise you won't be able to build any X
65         program, including Window Maker.
67 - libPropList
68         This library can be found in ftp://ftp.windowmaker.org/pub/libs
69         or in ftp://ftp.gnome.org/pub/libPropList
70         Install it before building 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. 
84 - lex (or flex) and yacc (or bison)
85         These are used by libPropList. lex is actually not needed since
86         it's output file is included, but either me or automake is stupid,
87         causing the configure script for libPropList to simply abort for no
88         convincent reason if lex is not found.
91 OPTIONAL:
92 =========
94 These libraries are not required to make Window Maker work, but they
95 are supported in case you want to use them. Version numbers are those
96 that I have (and therefore, guraranteed to work), but other versions
97 might work too. 
100 - libXPM 4.7 or newer
101         Older versions may not work!!! 
102         Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
104         There is builtin support for XPM files, but it will not
105         load images in some uncommon encodings.
107 - libpng 0.96 or newer and zlib     
108         For PNG image support.
109         http://www.cdrom.com/pub/png/
111 - libtiff 3.4 or newer
112         For TIFF image support.
113         You can get it at ftp://ftp.sgi.com/graphics/tiff
115 - libjpeg 6.0.1 or newer
116         For JPEG image support
117         http://www.ijg.org/
119 - libgif 2.2 or libungif
120         For GIF image support
121         ftp://prtr-13.ucsc.edu/pub/libungif/
123 - GNU xgettext
124         If you want to use translated messages, you will need GNU gettext.
125         Other versions of gettext are not compatible and will not work.
126         Get the GNU version from ftp://ftp.gnu.org
130 CONFIGURE OPTIONS:
131 ==================
133 These options can be passed to the configure script to enable/disable
134 some Window Maker features. Example:
136 ./configure --enable-kde --enable-gnome
138 will configure Window Maker with KDE and GNOME supported compiled in.
141 To get a list of other options, run ./configure --help
143 --with-libs-from
144         specify additional paths for libraries to be searched.
145         The -L flag must precede each path, like:
146         --with-libs-from="-L/opt/libs -L/usr/local/lib"
148 --with-incs-from
149         specify additional paths for header files to be searched.
150         The -I flag must precede each paths, like:
151         --with-incs-from="-I/opt/headers -I/usr/local/include"
153 --enable-single-icon
154         enables the collapsing of all appicons of the WM_CLASS+WM_INSTANCE
155         into a single one. This feature is not supported at all by the
156         developers. If you have some trouble with it, contact it's author:
157         Christopher Seawood <cls@seawood.org>
159 --disable-shm
160         disable use of the MIT shared memory extension. This will slow down
161         texture generation a little bit, but in some cases it seems to be
162         necessary due to a bug that manifests as messed icons and textures.
164 --disable-motif 
165         disable support for mwm window manager hints
167 --enable-openlook
168         enable support for OPEN LOOK(tm) window manager hints
170 --enable-gnome
171         enable support for GNOME window manager hints
173 --enable-kde
174         enable support for kde/kwm window manager hints
176 --enable-lite
177         remove things that are already supported in desktop environments,
178         like KDE and GNOME. Disabled things are: window list, root
179         applications menu, multiple window selection. Note that you will not
180         be able to exit Window Maker from itself anymore; you will have to
181         use kill with the SIGTERM signal or exit it from KDE. It is not
182         advisable to enable it.
184 --enable-modelock
185         XKB language status lock support. If you don't know what it is you
186         probably don't need it.
188 --enable-sound  
189         enable support of sound effects module
191 --disable-xpm   
192         disables use of the XPM library even if it is available on your
193         system.
195 --disable-png   
196         disables use of PNG library
198 --disable-tiff
199         disable use of TIFF library
201 --disable-gif
202         disable use of GIF library
204 --disable-jpeg
205         disable use of JPEG library
207 --disable-shape
208         disables shaped windows (for oclock, xeyes etc.)
211 PLATFORM SPECIFIC NOTES:
212 ========================
214 - DEC/Alpha machines
216 #>>>>>>>>>>>
217 From: Anton Ivanov <aivanov@eu.level3.net>
218 To: Marcelo E. Magallon <mmagallo@debian.org>
219 Subject: Re: Is the WindowMaker package working ok on Alpha?
221 > Hi,
223 >  I was reading some docs on the WindowMaker tarball, and found this:
225 >  | - DEC/Alpha machines
226 >  |         You might need to pass the --disable-shm flag to configure,
227 >  |         like ./configure --disable-shm
229 >  is anyone having problems with WindowMaker on Alpha?  Can someone
230 >  please test this?  Should the flag be passed when building on Alpha?
232 Disclaimer: alphas under my command have never run X and are least likely to 
233 suddenly start running it anytime soon.
235         Alpha used to have some ridiculously low amount of shared memory
236 configured. 
237 So quite a lot of apps used to barf. Namely - cdrecord, mysql server, etc.
239         Check where is yours at the moment and raise it to a more appropriate
240 value by either catting to the appropriate /proc entry or changing the
241 /usr/src/linux/include/asm/shmparam.h.
243         Otherwise the shared memory on alpha should be fully functional and I
244 see no reason to disable it. Mine are bumped up to 32 or more on most
245 machines.
247         And If I recall correctly the comments in that file are actually
248 wrong. Value is not bytes, but in machine size word. For alpha *8.
250         As I said - I do not run X on them so all #include "stdisclaimer.h"
251 apply.
252 #<<<<<<<<<<<<
255 - SCO Unix - run configure like
256         CFLAGS="-belf -DANSICPP" ./configure 
258 - SunOS, Solaris 
259         If you have gcc installed, run configure as:
260         CPP_PATH="gcc -E -x c" ./configure
261         Sun's cpp lacks some features needed by Window Maker and it can
262         cause problems when parsing the config files.
263         You also might need to use the --with-libs-from and --with-incs-from
264         to supply the directory where libtiff is located.
265         Someone mailed me that you also must make /usr/local/lib be the
266         first path in LD_LIBRARY_PATH to make it work.
268         If you have a Ultra Creator 3D or some other machine with high-end
269         graphics, be sure to start the X server with the default visual
270         set to 24bpp or you might experience problems with mangled colors.
271         This is a wmaker bug and will be fixed.
273 - GNU/Linux in general
274         Make sure you have /usr/local/lib in /etc/ld.so.conf and that you
275         run ldconfig after installing.
276         Uninstall any packaged version of Window Maker before installing a new
277         version. 
279 - RedHat GNU/Linux
280         RedHat systems have several annoying problems. If you use it, 
281         be sure to follow the steps below or Window Maker will not work:
283         * if you installed the Window Maker that comes with RedHat, uninstall
284         it before upgrading;
286         * make sure you don't have the LANG and LINGUAS environment variables
287         set to en_RN;
289         * make sure you have /usr/local/bin in your PATH environment
290         variable;
292         * make sure you have /usr/local/lib in /etc/ld.so.conf before running
293         ldconfig;
295         * if you have problems that mention an error message with --no-reexec
296         uninstall libtool-1.2b and install libtool-1.3 instead. libtool-1.3
297         can be found in ftp.gnu.org  Also read the TROUBLESHOOTING section;
299         * if you installed the Window Maker package from RedHat and are
300         installing a new version of it by hand (compiling yourself), uninstall
301         the package from RedHat before.
303         * make sure you have a symbolic link from /usr/include/X11 to
304         /usr/X11R6/include/X11 (if not, type ln -s /usr/X11R6/include/X11
305         /usr/include/X11 )
307         * make sure you have /lib/cpp pointing to the cpp program
309         If you have any doubts in doing any of the stuff above, please
310         don't hesitate to contact the RedHat user support. They will
311         kindly answer to all your questions regarding their system.
312         They also know much more about their own system than us 
313         (we don't use RedHat).
316 - PowerPC MkLinux
317         You will need to have the latest version of Xpmac. Older versions
318         seem to have bugs that cause the system to hang.
320 - Debian GNU/Linux
321         If you want JPEG and TIFF support, make sure you have libtiff-dev 
322         and libjpeg-dev installed.
324 - SuSE GNU/Linux
325         If you installed the Window Maker package from SuSE,
326         uninstall it before trying to compile wmaker or you
327         might have problems.
329 - MetroX (unknown version)
330         MetroX has a bug that corrupts pixmaps that are set as window
331         backgrounds. If you use MetroX and has weird problems with
332         textures, do not use textures in titlebars. Or use a different
333         X server.
335 INSTALLATION:
336 =============
338 Build Window Maker
339 ------------------
340         For a quick start, type the following in your shell prompt:
342         ./configure
343         make
345 then, login as root and type:
347         make install
348         ldconfig
350 or if you want to strip the debugging symbols from the binaries and make them
351 smaller, you can instead type:
353         make install-strip
354         ldconfig
356 This will build and install Window Maker with default parameters.
358 If you want to customize some compile-time options, you can do the
359 following. 
361         1. (optional) Look at the CONFIGURE OPTIONS section above for the 
362         options available. Also run:
364         ./configure --help
366         to get a complete listing of other options that are available.
368         2. Run configure with the options you want. For example, if you
369         want to use the --enable-kde option, type:
371         ./configure --enable-kde
373         3. (optional) Edit src/wconfig.h with your favorite text editor 
374         and browse through it for some options you might want to change.
376         4. Compile. Just type:
378         make
380         5. Login as root (if you can't do that, read the "I don't have the 
381         root password :-(" section) and install Window Maker in your system:
382                 su root
383                 make install
386 User specific configuration
387 ---------------------------
389 These instructions do not need to be followed when upgrading Window Maker
390 from an older version, unless stated differently in the NEWS file.
392 Every user on your system that wishes to run Window Maker must do the
393 following:
395         1. Install Window Maker configuration files in your home directory.
396 Type:
397         wmaker.inst
399         wmaker.inst will install Window Maker configuration files and will
400 setup X to automatically launch Window Maker at startup.
402         That's it! 
403         
404         You can type "man wmaker" to get some general help for configuration
405 and other stuff.
407 Read the User Guide for a more in-depth explanation of Window Maker.
409 You might want to take a look at the FAQ too.
413 Installing the extras package
414 -----------------------------
416 Unpack WindowMaker-extra-<version-number>.tar.gz in /usr/local/share
417         
418 You can get the file at ftp://ftp.windowmaker.org. This file is optional
419 and only have a few icons, and themes. Look for the latest <version-number>
420 available.
421 Also there is a WindowMaker-extra.readme to instruct you where that package
422 should go.
426 I don't have the root password :(
427 ---------------------------------
429 If you can't get superuser privileges (can't be root) you can install
430 wmaker in your own home directory. For that, supply the --prefix option
431 when running configure in step 2 of building Window Maker. You will
432 also need to supply the --with-appspath option, to specify the path for
433 WPrefs.app Example:
435 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps
438 Then make /home/jshmoe/bin be included in your search PATH, add
439 /home/jshmoe/lib to your LD_LIBRARY_PATH environment variable and run 
440 bin/wmaker.inst
442 Of course, /home/jshmoe is supposed to be replaced with your actual home
443 directory path.
447 UPGRADING
448 =========
450 If you are upgrading from an older version of Window Maker:
452         1. Configure and build Window Maker as always
453         2. Install Window Maker (but do not run wmaker.inst)
454         3. Read the NEWS file and update your configuration files, 
455            if necessary.
457 TROUBLESHOOTING
458 ===============
460 When you have some trouble during configuration (while running configure),
461 like not being able to use a graphic format library you think you have
462 installed, look at the config.log file for clues of the problem.
465 == Error with loading fonts, even if they exist.
467 Try rebuilding without NLS support.
469 == Error when configuring
471 ltconfig: unrecognized option `--no-reexec'
472 Try `ltconfig --help' for more information.
473 configure: error: libtool configure failed
475 remove the --no-reexec option from aclocal.m4 and libPropList/aclocal.m4
476 and reconfigure
477 Also make sure the autoconf and automake versions you have installed are:
478 autoconf 2.13
479 automake 1.4
480 libtool 1.3
482 Note that it must not be libtool 1.2b, it must be libtool 1.3, 
483 from the GNU sites.
485 == Cant find proplist.h or libPropList.something
487 Download and install libPropList from the places pointed to
488 somewhere else in this file.
491 == configure doesn't detect libtiff, or other graphic libraries.
493 Delete config.cache, then rerun configure adding the following options to
494 configure (among the other options you use):
495 --with-libs-from="-L/usr/local/lib"
496 --with-incs-from="-I/usr/local/include -I/usr/local/include/tiff"
497 Put the paths where your graphic libs and their corresponding header files are
498 located. You can put multiple paths in any of these options, as the example
499 of --with-incs-from shows. Just put a space between them.
502 == configure doesn't detect libXpm. 
504 * Check if you have a symbolic link from libXpm.so.4.9 to libXpm.so
507 == Segmentation fault on startup
509 * Check if the version of libXPM you have is at least 4.7
511 * Check if you have an updated version of ~/GNUstep/Defaults/WindowMaker
513 If you're not sure, try renaming ~/GNUstep to ~/GNUtmp and then run wmaker.inst
515 == "...: your machine is misconfigured. gethostname() returned (none)"
517 * the hostname of your machine is set to something invalid, that starts
518         with a parenthesis. Do a man hostname for info about how to set it.
521 == The root menu contains only 2 entries. ("XTerm" and "Exit...")
523 * Window Maker is not finding cpp (the C preprocessor). If your cpp is
524 not located in /lib/cpp, edit src/config.h and correct the path in
525 CPP_PATH.
527 == checking lex output file root... configure: error: cannot find output from true; giving up
529 * Read the REQUIREMENTS section of this file.
532 LOCALES/INTERNATIONALIZATION
533 ============================
535 Window Maker has national language support. To enable national language
536 support, you must compile Window Maker with some additional parameters.
539 0 - You must have the GNU gettext package installed. It can be
540 obtained at ftp://prep.ai.mit.edu/pub/gnu/gettext-nnn.tar.gz
542 Steps 1 to 3 can be skipped if you use the Install script.
544 1 - You have to select the languages you want to support. Set the
545 LINGUAS to the list of locales you want. English is always
546 suported. Example:
548 setenv LINGUAS "pt ja de"
549 in csh
553 export LINGUAS;LINGUAS="pt ja de"
554 in sh
556 The list of supported locales can be found in po/README.
557 English is the default language.
559 Read po/README if you wish to translate and maintain locale files 
560 for other languages.
562 2 - Additionally, if your language uses multi-byte characters, such
563 as Japanese or Korean, you must set the MultiByteText option to YES
564 in ~/GNUstep/Defaults/WMGLOBAL 
566 3 - Configure, build and install Window Maker normally.
568 4 - To select a particular locale at runtime you must set the LANG
569 environment variable to the locale you want. For example, if you want to set
570 the portuguese locale, you must run
572 setenv LANG pt
574 in csh or
576 export LANG; LANG=pt
578 in Bourne sh and similars
580 Note: If you have the LC_CTYPE environment variable set, you must
581 unset it before running wmaker.
583 For menu definition files, Window Maker searches for them in the
584 following order (for brazilian portuguese, in this case):
586 menu.pt_BR
587 menu.pt
588 menu
591 5 - If you chose a language that uses multi-byte characters, you must
592 configure the fonts appropriately. Read the manual page for XCreateFontSet
593 to have more details about it. You must change the ~/G/D/WindowMaker file
594 for fonts used in titlebars, menus and other things. For fonts used in
595 dialog windows, change ~/G/D/WMGLOBAL. The %d in the font names must not be
596 removed. You can also use the supplied wsetfont script for the task.
597 Read the script itself for instructions.
599 For example, you can specify the following in ~/G/D/WindowMaker:
601 WindowTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
602 MenuTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
603 MenuTextFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
604 IconTitleFont = "-*-helvetica-medium-r-normal-*-8-*,-*-*-medium-r-normal-*-12-*";
605 ClipTitleFont = "-*-helvetica-bold-r-normal-*-10-*,-*-*-medium-r-normal-*-12-*";
606 DisplayFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-12-*";
608 and in ~/G/D/WMGLOBAL:
610 SystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
611 BoldSystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
613 The above 2 fonts are only used by applications that use WINGs (WindowMaker
614 and WPrefs.app)
616 The wsetfont script that's supplied will allow you to change the font
617 settings in a easier way. Take a look in the script for details on usage.