Small bug fixes over 0.20.2 -Dan
[wmaker-crm.git] / INSTALL
blob12d2bf842466f11c434a0908afcd5540aa047b8f
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.
162 - SuSE Linux
163         If you installed the Window Maker package from SuSE,
164         uninstall it before trying to compile wmaker or you
165         might have problems.
167 - MetroX (unknown version)
168         MetroX has a bug that corrupts pixmaps that are set as window
169         backgrounds. If you use MetroX and has weird problems with
170         textures, do not use textures in titlebars. Or use a different
171         X server.
174 INSTALLATION:
175 =============
177 Unpack WindowMaker-data.tar.gz and move the pixmaps directory in it
178 to /usr/local/share/pixmaps
180 You can get the file at ftp://ftp.windowmaker.org. This file is optional
181 and only have a few icons.
184 autoconf and automake
185 ---------------------
187 autoconf and automake are not required, but if you have them installed,
188 make sure you have autoconf 2.12 and automake 1.3 or newer. If you have
189 an older version, disable them by temporarily renaming them to something 
190 else or uninstalling them from your system. 
193 Build Window Maker
194 ------------------
195         For a quick start, type the following in your shell prompt:
197         ./configure
198         make
200 then, login as root and type:
202         make install
204 or if you want to strip the debugging symbols from the binaries and make them
205 smaller, you can instead type:
207         make install-strip
209 This will build and install Window Maker with default parameters.
211 If you want to customize some compile-time options, you can do the
212 following. 
214         1. (optional) Look at the CONFIGURE OPTIONS section above for the 
215         options available. Also run:
217         ./configure --help
219         to get a complete listing of other options that are available.
221         2. Run configure with the options you want. For example, if you
222         want to use the --enable-kanji option, type:
224         ./configure --enable-kanji
226         3. (optional) Edit src/wconfig.h with your favorite text editor 
227         and browse through it for some options you might want to change.
229         4. Compile. Just type:
231         make
233         5. Login as root (if you can't do that, read the "I don't have the 
234         root password :-(" section) and install Window Maker in your system:
235                 su root
236                 make install
239 User specific configuration
240 ---------------------------
242 These instructions do not need to be followed when upgrading Window Maker
243 from an older version, unless stated differently in the NEWS file.
245 Every user on your system that wishes to run Window Maker must do the
246 following:
248         1. Install Window Maker configuration files in your home directory.
249 Type:
250         wmaker.inst
252         wmaker.inst will install Window Maker configuration files and will
253 setup X to automatically launch Window Maker at startup.
255         That's it! 
256         
257         You can type "man wmaker" to get some general help for configuration
258 and other stuff.
260 Read the User Guide for a more in-depth explanation of Window Maker.
262 You might want to take a look at the FAQ too.
265 I don't have the root password :(
266 ---------------------------------
268 If you can't get superuser privileges (can't be root) you can install
269 wmaker in your own home directory. For that, supply the --prefix option
270 when running configure in step 2 of building Window Maker. You will
271 also need to supply the --with-appspath option, to specify the path for
272 WPrefs.app Example:
274 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps
276 If you use national language support, you must also supply the --with-nlsdir
277 option, as:
279 ./configure --prefix=/home/jshmoe --with-appspath=/home/jshmoe/GNUstep/Apps \
280         --with-nlsdir=/home/jshmoe/lib/locale
282 Then make /home/jshmoe/bin be included in your search path and run 
283 bin/wmaker.inst
286 UPGRADING
287 =========
289 If you are upgrading from an older version of Window Maker:
291         1. Configure and build Window Maker as always
292         2. Install Window Maker (but do not run wmaker.inst)
293         3. Read the NEWS file and update your configuration files, 
294            if necessary.
296 TROUBLESHOOTING
297 ===============
299 When you have some trouble during configuration (while running configure),
300 like not being able to use a graphic format library you think you have
301 installed, look at the config.log file for clues of the problem.
304 == Error during build of libPropList
306 make: *** No rule to make target `libPropList.a.c', needed by 
307 `libPropList.a.o'.  Stop.
309 Make sure the autoconf and automake versions you have installed are at
310 least:
311 autoconf 2.12
312 automake 1.3
314 If you are using the RPM's that come with RedHat 4.x, don't use them.
315 It is broken. Uninstall the RPM and reinstall a fresh package from
316 ftp://prep.ai.mit.edu or any mirror.
318 == configure doesn't detect libtiff, or other graphic libraries.
320 Delete config.cache, then rerun configure adding the following options to
321 configure (among the other options you use):
322 --with-gfx-libs="-L/usr/local/lib"
323 --with-gfx-incs="-I/usr/local/include -I/usr/local/include/tiff"
324 Put the paths where your graphic libs and their corresponding header files are
325 located. You can put multiple paths in any of these options, as the example
326 of --with-gfx-incs shows. Just put a space between them.
329 == configure doesn't detect libXpm. 
331 * Check if you have a symbolic link from libXpm.so.4.9 to libXpm.so
334 == Segmentation fault on startup
336 * Check if the version of libXPM you have is at least 4.7
338 * Check if you have an updated version of ~/GNUstep/Defaults/WindowMaker
340 If you're not sure, try renaming ~/GNUstep to ~/GNUtmp and then run wmaker.inst
342 == "...: your machine is misconfigured. gethostname() returned (none)"
344 * the hostname of your machine is set to something invalid, that starts
345         with a parenthesis. Do a man hostname for info about how to set it.
348 == The root menu contains only 2 entries. ("XTerm" and "Exit...")
350 * Window Maker is not finding cpp (the C preprocessor). If your cpp is
351 not located in /lib/cpp, edit src/config.h and correct the path in
352 CPP_PATH.
356 LOCALES/INTERNATIONALIZATION
357 ============================
359 Window Maker has national language support. 
360 To enable national language support, you must compile
361 Window Maker with some additional parameters. 
363 0 - You must have the GNU gettext package installed. It can be
364 obtained at ftp://prep.ai.mit.edu/pub/gnu/gettext-nnn.tar.gz
366 Steps 1 to 3 can be skipped if you use the Install script.
368 1 - You have to select the languages you want to support. Set the
369 LINGUAS to the list of locales you want. English is always
370 suported. Example:
372 setenv LINGUAS "pt ja de"
373 in csh
377 export LINGUAS;LINGUAS="pt ja de"
378 in sh
380 The list of supported locales can be found in po/README.
381 English is the default language.
383 Read po/README if you wish to translate and maintain locale files 
384 for other languages.
386 2 - Additionally, if your language uses multi-byte characters, such
387 as Japanese or Korean, you must supply the --enable-kanji flag to configure.
389 3 - Configure, build and install Window Maker normally.
391 4 - To select a particular locale at runtime you must set the LANG
392 environment variable to the locale you want. For example, if you want to set
393 the portuguese locale, you must run
395 setenv LANG pt
397 in csh or
399 export LANG; LANG=pt
401 in Bourne sh and similars
403 Note: If you have the LC_CTYPE environment variable set, you must
404 unset it before running wmaker.
406 For menu definition files, Window Maker searches for them in the
407 following order (for brazilian portuguese, in this case):
409 menu.pt_BR
410 menu.pt
411 menu
414 5 - If you chose a language that uses multi-byte characters, you must
415 configure the fonts appropriately. Read the manual page for XCreateFontSet
416 to have more details about it. You must change the ~/G/D/WindowMaker file
417 for fonts used in titlebars, menus and other things. For fonts used in
418 dialog windows, change ~/G/D/WMGLOBAL. Note that at the moment you can only
419 supply a single font in WMGLOBAL. The %d in the font names must not be
420 removed.
422 For example, you can specify the following in ~/G/D/WindowMaker:
424 WindowTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
425 MenuTitleFont = "-*-helvetica-bold-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
426 MenuTextFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-14-*";
427 IconTitleFont = "-*-helvetica-medium-r-normal-*-8-*,-*-*-medium-r-normal-*-12-*";
428 ClipTitleFont = "-*-helvetica-bold-r-normal-*-10-*,-*-*-medium-r-normal-*-12-*";
429 DisplayFont = "-*-helvetica-medium-r-normal-*-12-*,-*-*-medium-r-normal-*-12-*";
431 and in ~/G/D/WMGLOBAL:
433 SystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
434 BoldSystemFont = "-*-*-medium-r-normal-*-%d-*-*-*-*-*-*-*";
436 The above 2 fonts are only used by applications that use WINGs (WindowMaker
437 and WPrefs.app)