- removed configure.in. use only autoconf 2.5x fom now
[wmaker-crm.git] / INSTALL
blobd7990cefd876685fe87c672c5f402beb76f9252e
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 - Darwin PPC / Macos X
44 - Windows NT with Cygwin/XFree86
45 - Sony PlayStation2 running Linux
47 All registered trademarks are registered by their owners. (duh)
49 Patches to make it work on other platforms are welcome. 
52 REQUIREMENTS:
53 =============
55 The following software is required to use Window Maker:
57 - X11R6.x       
58         Window Maker can be compiled in older versions of X, like X11R5
59         (Solaris) or X11R4 (OpenWindows) but it will not work 100% correctly.
60         In such servers there will not be application icons and you'll have
61         trouble using the dock. Upgrading the client libraries (Xlib, Xt etc)
62         will help if you can't upgrade the server.
64 The following is required to build Window Maker:
66 - Basic obvious stuff
67         If you will build Window Maker, make sure you have gcc (or some
68         other ANSI C compiler) and the X header files installed. Specially
69         for newbie Linux users: you must install all X development packages
70         and the gcc suite. Otherwise you won't be able to build any X
71         program, including Window Maker.
73 - autoconf, automake and libtool
74         These tools are NOT needed, but IF you have one or
75         more of them installed, make sure you have ALL of the following 
76         with exactly these versions:
77                 autoconf 2.52
78                 automake 1.4
79                 libtool 1.4.2
80         If you have a different version, disable them by temporarily
81         renaming them to something else or uninstalling them from your
82         system. If you don't develop software you don't need them,
83         so you can safely uninstall. 
86 OPTIONAL:
87 =========
89 These libraries are not required to make Window Maker work, but they
90 are supported in case you want to use them. Version numbers are those
91 that I have (and therefore, guraranteed to work), but other versions
92 might work too. 
95 - libXPM 4.7 or newer
96         Older versions may not work!!! 
97         Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/
99         There is builtin support for XPM files, but it will not
100         load images in some uncommon encodings.
102 - libpng 0.96 or newer and zlib     
103         For PNG image support.
104         http://www.cdrom.com/pub/png/
106 - libtiff 3.4 or newer
107         For TIFF image support.
108         You can get it at ftp://ftp.sgi.com/graphics/tiff
110 - libjpeg 6.0.1 or newer
111         For JPEG image support
112         http://www.ijg.org/
114 - libgif 2.2 or libungif
115         For GIF image support
116         ftp://prtr-13.ucsc.edu/pub/libungif/
118 - libHermes 1.3.2 or newer
119         For faster pixel conversion in the wraster library
120         (its used only in some conversions - for TrueColor visuals)
121         http://www.clanlib.org/hermes/
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 --disable-shm
154         disable use of the MIT shared memory extension. This will slow down
155         texture generation a little bit, but in some cases it seems to be
156         necessary due to a bug that manifests as messed icons and textures.
158 --disable-motif 
159         disable support for mwm window manager hints
161 --enable-openlook
162         enable support for OPEN LOOK(tm) window manager hints
164 --enable-gnome
165         enable support for GNOME window manager hints
167 --enable-kde
168         enable support for kde/kwm window manager hints
170 --enable-lite
171         remove things that are already supported in desktop environments,
172         like KDE and GNOME. Disabled things are: window list, root
173         applications menu, multiple window selection. Note that you will not
174         be able to exit Window Maker from itself anymore; you will have to
175         use kill with the SIGTERM signal or exit it from KDE. It is not
176         advisable to enable it.
178 --enable-modelock
179         XKB language status lock support. If you don't know what it is you
180         probably don't need it.
182 --disable-xpm   
183         disables use of the XPM library even if it is available on your
184         system.
186 --disable-png   
187         disables use of PNG library
189 --disable-tiff
190         disable use of TIFF library
192 --disable-gif
193         disable use of GIF library
195 --disable-jpeg
196         disable use of JPEG library
198 --disable-shape
199         disables shaped windows (for oclock, xeyes etc.)
202 PLATFORM SPECIFIC NOTES:
203 ========================
205 - DEC/Alpha machines
207 #>>>>>>>>>>>
208 From: Anton Ivanov <aivanov@eu.level3.net>
209 To: Marcelo E. Magallon <mmagallo@debian.org>
210 Subject: Re: Is the WindowMaker package working ok on Alpha?
212 > Hi,
214 >  I was reading some docs on the WindowMaker tarball, and found this:
216 >  | - DEC/Alpha machines
217 >  |         You might need to pass the --disable-shm flag to configure,
218 >  |         like ./configure --disable-shm
220 >  is anyone having problems with WindowMaker on Alpha?  Can someone
221 >  please test this?  Should the flag be passed when building on Alpha?
223 Disclaimer: alphas under my command have never run X and are least likely to 
224 suddenly start running it anytime soon.
226         Alpha used to have some ridiculously low amount of shared memory
227 configured. 
228 So quite a lot of apps used to barf. Namely - cdrecord, mysql server, etc.
230         Check where is yours at the moment and raise it to a more appropriate
231 value by either catting to the appropriate /proc entry or changing the
232 /usr/src/linux/include/asm/shmparam.h.
234         Otherwise the shared memory on alpha should be fully functional and I
235 see no reason to disable it. Mine are bumped up to 32 or more on most
236 machines.
238         And If I recall correctly the comments in that file are actually
239 wrong. Value is not bytes, but in machine size word. For alpha *8.
241         As I said - I do not run X on them so all #include "stdisclaimer.h"
242 apply.
243 #<<<<<<<<<<<<
246 - SCO Unix - run configure like
247         CFLAGS="-belf -DANSICPP" ./configure 
249 - SunOS, Solaris 
250         If you have gcc installed, run configure as:
251         CPP_PATH="gcc -E -x c" ./configure
252         Sun's cpp lacks some features needed by Window Maker and it can
253         cause problems when parsing the config files.
254         You also might need to use the --with-libs-from and --with-incs-from
255         to supply the directory where libtiff is located.
256         Someone mailed me that you also must make /usr/local/lib be the
257         first path in LD_LIBRARY_PATH to make it work.
259         If you have a Ultra Creator 3D or some other machine with high-end
260         graphics, be sure to start the X server with the default visual
261         set to 24bpp or you might experience problems with mangled colors.
262         This is a wmaker bug and will be fixed.
264 - GNU/Linux in general
265         Make sure you have /usr/local/lib in /etc/ld.so.conf and that you
266         run ldconfig after installing.
267         Uninstall any packaged version of Window Maker before installing a new
268         version. 
270 - RedHat GNU/Linux
271         RedHat systems have several annoying problems. If you use it, 
272         be sure to follow the steps below or Window Maker will not work:
274         * if you installed the Window Maker that comes with RedHat, uninstall
275         it before upgrading;
277         * make sure you don't have the LANG and LINGUAS environment variables
278         set to en_RN;
280         * make sure you have /usr/local/bin in your PATH environment
281         variable;
283         * make sure you have /usr/local/lib in /etc/ld.so.conf before running
284         ldconfig;
286         * if you have problems that mention an error message with --no-reexec
287         uninstall libtool-1.2b and install libtool-1.3 instead. libtool-1.3
288         can be found in ftp.gnu.org  Also read the TROUBLESHOOTING section;
290         * if you installed the Window Maker package from RedHat and are
291         installing a new version of it by hand (compiling yourself), uninstall
292         the package from RedHat before.
294         * make sure you have a symbolic link from /usr/include/X11 to
295         /usr/X11R6/include/X11 (if not, type ln -s /usr/X11R6/include/X11
296         /usr/include/X11 )
298         * make sure you have /lib/cpp pointing to the cpp program
300         If you have any doubts in doing any of the stuff above, please
301         don't hesitate to contact the RedHat user support. They will
302         kindly answer to all your questions regarding their system.
303         They also know much more about their own system than us 
304         (we don't use RedHat).
307 - PowerPC MkLinux
308         You will need to have the latest version of Xpmac. Older versions
309         seem to have bugs that cause the system to hang.
311 - Debian GNU/Linux
312         If you want JPEG and TIFF support, make sure you have libtiff-dev 
313         and libjpeg-dev installed.
315 - SuSE GNU/Linux
316         If you installed the Window Maker package from SuSE,
317         uninstall it before trying to compile wmaker or you
318         might have problems.
320 - MetroX (unknown version)
321         MetroX has a bug that corrupts pixmaps that are set as window
322         backgrounds. If you use MetroX and has weird problems with
323         textures, do not use textures in titlebars. Or use a different
324         X server.
326 INSTALLATION:
327 =============
329 Build Window Maker
330 ------------------
331         For a quick start, type the following in your shell prompt:
333         ./configure
334         make
336 then, login as root and type:
338         make install
339         ldconfig
341 or if you want to strip the debugging symbols from the binaries and make them
342 smaller, you can instead type:
344         make install-strip
345         ldconfig
347 This will build and install Window Maker with default parameters.
349 If you want to customize some compile-time options, you can do the
350 following. 
352         1. (optional) Look at the CONFIGURE OPTIONS section above for the 
353         options available. Also run:
355         ./configure --help
357         to get a complete listing of other options that are available.
359         2. Run configure with the options you want. For example, if you
360         want to use the --enable-kde option, type:
362         ./configure --enable-kde
364         3. (optional) Edit src/wconfig.h with your favorite text editor 
365         and browse through it for some options you might want to change.
367         4. Compile. Just type:
369         make
371         5. Login as root (if you can't do that, read the "I don't have the 
372         root password :-(" section) and install Window Maker in your system:
373                 su root
374                 make install
377 User specific configuration
378 ---------------------------
380 These instructions do not need to be followed when upgrading Window Maker
381 from an older version, unless stated differently in the NEWS file.
383 Every user on your system that wishes to run Window Maker must do the
384 following:
386         1. Install Window Maker configuration files in your home directory.
387 Type:
388         wmaker.inst
390         wmaker.inst will install Window Maker configuration files and will
391 setup X to automatically launch Window Maker at startup.
393         That's it! 
394         
395         You can type "man wmaker" to get some general help for configuration
396 and other stuff.
398 Read the User Guide for a more in-depth explanation of Window Maker.
400 You might want to take a look at the FAQ too.
404 Installing the extras package
405 -----------------------------
407 Unpack WindowMaker-extra-<version-number>.tar.gz in /usr/local/share
408         
409 You can get the file at ftp://ftp.windowmaker.org. This file is optional
410 and only have a few icons, and themes. Look for the latest <version-number>
411 available.
412 Also there is a WindowMaker-extra.readme to instruct you where that package
413 should go.
417 I don't have the root password :(
418 ---------------------------------
420 If you can't get superuser privileges (can't be root) you can install
421 wmaker in your own home directory. For that, supply the --prefix option
422 when running configure in step 2 of building Window Maker. You will
423 also need to supply the --with-appspath option, to specify the path for
424 WPrefs.app Example:
426 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps
429 Then make /home/jshmoe/bin be included in your search PATH, add
430 /home/jshmoe/lib to your LD_LIBRARY_PATH environment variable and run 
431 bin/wmaker.inst
433 Of course, /home/jshmoe is supposed to be replaced with your actual home
434 directory path.
438 UPGRADING
439 =========
441 If you are upgrading from an older version of Window Maker:
443    1. Configure and build Window Maker as always
444    2. Install Window Maker (but do not run wmaker.inst)
445    3. Read the NEWS file and update your configuration files if necessary.
448 TROUBLESHOOTING
449 ===============
451 When you have some trouble during configuration (while running configure),
452 like not being able to use a graphic format library you think you have
453 installed, look at the config.log file for clues of the problem.
456 == Error with loading fonts, even if they exist.
458 Try rebuilding without NLS support.
460 == Error when configuring
462 ltconfig: unrecognized option `--no-reexec'
463 Try `ltconfig --help' for more information.
464 configure: error: libtool configure failed
466 remove the --no-reexec option from aclocal.m4 and reconfigure
467 Also make sure the autoconf and automake versions you have installed are:
468 autoconf 2.13
469 automake 1.4
470 libtool 1.3
472 Note that it must not be libtool 1.2b, it must be libtool 1.3, 
473 from the GNU sites.
475 == configure doesn't detect libtiff, or other graphic libraries.
477 Delete config.cache, then rerun configure adding the following options to
478 configure (among the other options you use):
479 --with-libs-from="-L/usr/local/lib"
480 --with-incs-from="-I/usr/local/include -I/usr/local/include/tiff"
481 Put the paths where your graphic libs and their corresponding header files are
482 located. You can put multiple paths in any of these options, as the example
483 of --with-incs-from shows. Just put a space between them.
486 == configure doesn't detect libXpm. 
488 * Check if you have a symbolic link from libXpm.so.4.9 to libXpm.so
491 == Segmentation fault on startup
493 * Check if the version of libXPM you have is at least 4.7
495 * Check if you have an updated version of ~/GNUstep/Defaults/WindowMaker
497 If you're not sure, try renaming ~/GNUstep to ~/GNUtmp and then run wmaker.inst
499 == "...: your machine is misconfigured. gethostname() returned (none)"
501 * the hostname of your machine is set to something invalid, that starts
502         with a parenthesis. Do a man hostname for info about how to set it.
505 == The root menu contains only 2 entries. ("XTerm" and "Exit...")
507 * Window Maker is not finding cpp (the C preprocessor). If your cpp is
508 not located in /lib/cpp, edit src/config.h and correct the path in
509 CPP_PATH.
511 == checking lex output file root... configure: error: cannot find output from true; giving up
513 * Read the REQUIREMENTS section of this file.
516 LOCALES/INTERNATIONALIZATION
517 ============================
519 Window Maker has national language support. To enable national language
520 support, you must compile Window Maker with some additional parameters.
523 0 - You must have the GNU gettext package installed. It can be
524 obtained at ftp://prep.ai.mit.edu/pub/gnu/gettext-nnn.tar.gz
526 Steps 1 to 3 can be skipped if you use the Install script.
528 1 - You have to select the languages you want to support. Set the
529 LINGUAS to the list of locales you want. English is always
530 suported. Example:
532 setenv LINGUAS "pt ja de"
533 in csh
537 export LINGUAS;LINGUAS="pt ja de"
538 in sh
540 The list of supported locales can be found in po/README.
541 English is the default language.
543 Read po/README if you wish to translate and maintain locale files 
544 for other languages.
546 2 - Additionally, if your language uses multi-byte characters, such
547 as Japanese or Korean, you must set the MultiByteText option to YES
548 in ~/GNUstep/Defaults/WMGLOBAL 
550 3 - Configure, build and install Window Maker normally.
552 4 - To select a particular locale at runtime you must set the LANG
553 environment variable to the locale you want. For example, if you want to set
554 the portuguese locale, you must run
556 setenv LANG pt
558 in csh or
560 export LANG; LANG=pt
562 in Bourne sh and similars
564 Note: If you have the LC_CTYPE environment variable set, you must
565 unset it before running wmaker.
567 For menu definition files, Window Maker searches for them in the
568 following order (for brazilian portuguese, in this case):
570 menu.pt_BR
571 menu.pt
572 menu
575 5 - If you chose a language that uses multi-byte characters, you must
576 configure the fonts appropriately. Read the manual page for XCreateFontSet
577 to have more details about it. You must change the ~/G/D/WindowMaker file
578 for fonts used in titlebars, menus and other things. For fonts used in
579 dialog windows, change ~/G/D/WMGLOBAL. The %d in the font names must not be
580 removed. You can also use the supplied wsetfont script for the task.
581 Read the script itself for instructions.
583 For example, you can specify the following in ~/G/D/WindowMaker:
585 WindowTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
586 MenuTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
587 MenuTextFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
588 IconTitleFont = "-*-helvetica-medium-r-normal-*-8-*,-*-*-medium-r-normal-*-12-*";
589 ClipTitleFont = "-*-helvetica-bold-r-normal-*-10-*,-*-*-medium-r-normal-*-12-*";
590 DisplayFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-12-*";
592 and in ~/G/D/WMGLOBAL:
594 SystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
595 BoldSystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
597 The above 2 fonts are only used by applications that use WINGs (WindowMaker
598 and WPrefs.app)
600 The wsetfont script that's supplied will allow you to change the font
601 settings in a easier way. Take a look in the script for details on usage.