Added missing function declaration.
[wmaker-crm.git] / doc / build / Compilation.texi
blob10bf1219e47bc73219b60c7d6b1079423777b86e
1 \input texinfo   @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename wmaker_install.info
4 @settitle Window Maker Compilation and Installation 1.0
5 @c %**end of header
7 @c This documentation is written in Texinfo format:
8 @c   https://www.gnu.org/software/texinfo/manual/texinfo/
9 @c
10 @c The reference checker is the GNU texi2any tool, which can be invoked like this:
11 @c   texi2any --plaintext --no-split --verbose Compilation.texi
13 @c If you modify this file, you may want to spell-check it with:
14 @c    aspell --lang=en_GB --mode=texinfo check Compilation.texi
16 @c The length of lines in this file is set to 100 because it tends to keep sentences together
17 @c despite the embedded @commands{};
19 @c It is generally considered good practice for Tex and Texinfo formats to keep sentences on
20 @c different lines, using the fact that in the end they will be merged in paragraph anyway, because
21 @c it makes the patchs clearer about where the changes actually are.
23 @finalout
25 @c If the version was not given to texi2any with -D, assume we are being run
26 @c on the git dev branch
27 @ifclear version
28 @set version git#next
29 @end ifclear
31 @c We provide the ability to change the email address for support from the
32 @c command line
33 @ifclear emailsupport
34 @set emailsupport @email{wmaker-dev@@lists.windowmaker.org}
35 @end ifclear
37 @c ---------------------------------------------------------------------------------- Title Page ---
39 @copying
40 @noindent
41 This manual is for @sc{Window Maker} window manager, version @value{version}.
43 @noindent Copyright @copyright{} 2015 The Window Maker Team.
45 @quotation
46 This program is free software; you can redistribute it and/or modify
47 it under the terms of the GNU General Public License as published by
48 the Free Software Foundation; either version 2 of the License, or
49 (at your option) any later version.
51 This program is distributed in the hope that it will be useful,
52 but WITHOUT ANY WARRANTY; without even the implied warranty of
53 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
54 GNU General Public License for more details.
56 You should have received a copy of the GNU General Public License along
57 with this program, see file COPYING for details.
58 @end quotation
59 @end copying
61 @titlepage
62 @title Window Maker Compilation and Installation
63 @subtitle A guide to configure, compile and install
64 @subtitle @sc{Window Maker} from sources.
65 @author The Window Maker Team
67 @page
68 @vskip 0pt plus 1filll
69 @insertcopying
71 @sp 1
72 Published by The Window Maker team on @today{}.
73 @end titlepage
75 @c ---------------------------------------------------------------------------- Table of Content ---
76 @node Top
77 @ifnottex
78 @top Window Maker Compilation and Installation
80 @ifclear cctexi2txt
81 A guide to configure, compile and install
82 @sc{Window Maker} from sources.
83 @end ifclear
84 @end ifnottex
86 @contents
88 @ifnottex
89 @ifclear cctexi2txt
90 @sp 1
91 This manual is for Window Maker, version @value{version}.
92 @end ifclear
93 @end ifnottex
95 @menu
96 * Prerequisites::         What you will need to build Window Maker
97 * Building Window Maker:: How to build Window Maker
98 * Miscellaneous::         Misc. information you may want to know
99 * Troubleshooting::       Help on a few rare build problems
100 @end menu
103 @c ------------------------------------------------------------------------------- Prerequisites ---
104 @node Prerequisites
105 @chapter Prerequisites
107 @section Supported Platforms
109 @itemize -
110 @item Intel GNU/Linux Systems in general, @t{ix86} and @t{x86_64} but other architectures should work
111 @item BSD systems
112 @item Solaris, at least on release 10 and 11
113 @end itemize
115 Patches to make it work on other platforms are welcome.
118 @section Software Dependencies
119 @anchor{Software Dependencies}
121 The following software is required to use @sc{Window Maker}:
122 @itemize -
123 @item X11R6.x
125 Window Maker can be compiled in older versions of @emph{X}, like @emph{X11R5} (@emph{Solaris})
126 or @emph{X11R4} (@emph{OpenWindows}) but it will not work 100% correctly.
127 In such servers there will not be application icons and you'll have trouble using the dock.
128 Upgrading the client libraries (@emph{Xlib}, @emph{Xt}, etc.) will help if you can't upgrade
129 the server.
130 @end itemize
132 @noindent The following is required to build @sc{Window Maker}:
133 @itemize -
134 @item Basic obvious stuff
136 @itemize
137 @item @emph{gcc} (or some other ANSI C compiler, supporting some C99 extensions)
138 @item @emph{glibc} development files (usually @file{glibc-devel} in Linux distributions)
139 @item @emph{X} development files (@file{XFree86-devel} or something similar)
140 @end itemize
142 @item @emph{Xft2} and its dependencies
144 Dependencies include @emph{freetype2} and @emph{fontconfig}.
145 You will also need the development files for them (@file{xft2-devel}).
146 Sources are available at: @uref{http://www.freedesktop.org/wiki/Software/Xft/}
148 @end itemize
150 @noindent @b{Note}:
151 @sc{Window Maker} is known to compile with @emph{gcc} and @emph{clang};
152 the code source is mostly ANSI C (also known as C89 and C90) but is uses very few of the C99
153 novelties;
154 it also uses a few attributes introduced in the C11 standard but those are detected automatically,
155 so most compilers should work.
158 @section Special Dependencies
159 @anchor{Special Dependencies}
162 If you want to compile using the sources from the git repository instead of the distribution
163 package, you will also need:
164 @itemize
165 @item @emph{git}
166 @item @emph{autoconf} 2.69
167 @item @emph{automake} 1.12
168 @item @emph{libtool} 1.4.2
169 @end itemize
172 @section Optional Dependencies
173 @anchor{Optional Dependencies}
175 These libraries are not required to make @sc{Window Maker} work, but they are supported in case you
176 want to use them. Version numbers are indicative, but other versions might work too.
178 @itemize -
179 @item @emph{libXPM} 4.7 or newer
181 Older versions may not work!
183 Available from @uref{http://xlibs.freedesktop.org/release/}
185 There is built-in support for @emph{XPM} files, but it will not
186 load images in some uncommon encodings.
188 @item @emph{libpng} 0.96 or newer and @emph{zlib}
190 For @emph{PNG} image support,
191 @uref{http://www.libpng.org/pub/png/libpng.html}
193 @item @emph{libtiff} 3.4 or newer
195 For @emph{TIFF} image support,
196 @uref{http://www.libtiff.org/}
198 @item @emph{libjpeg} 6.0.1 or newer
200 For @emph{JPEG} image support,
201 @uref{http://www.ijg.org/}
203 Note that if you don't have it, @command{configure} will issue a big warning in the end,
204 this is because JPEG images are often used in themes and for background images
205 so you probably want this format supported.
207 @item @emph{libgif} 2.2 or @emph{libungif}
209 For @emph{GIF} image support,
210 @uref{http://giflib.sourceforge.net/}
212 @item @emph{WebP} 0.4.1 or newer
214 The reference library from @emph{Google} for their image format,
215 @uref{https://developers.google.com/speed/webp/download}
217 @item @emph{GNU xgettext}
219 If you want to use translated messages, you will need @emph{GNU gettext}.
220 Other versions of @emph{gettext} are not compatible and will not work.
221 Get the @emph{GNU} version from @uref{http://www.gnu.org/software/gettext/}
223 @item @emph{Pango} 1.36.8 or newer
225 This library can be used by the @emph{WINGs} toolkit to improve support for @emph{UTF-8} and for
226 languages written in right-to-left direction, in some widgets.
227 You have to explicitly ask for its support through (@pxref{Configure Options}).
228 You can get it from @uref{http://www.pango.org/Download}
230 @item @emph{libbsd}
232 This library can be used by the @emph{WINGs} utility library to make use of @command{strlcat} and
233 @command{strlcpy} instead of using built-in functions if your system does not provide them in its
234 core @emph{libc}.
235 You should let @sc{Window Maker}'s @command{configure} detect this for you.
236 You can get it from @uref{http://libbsd.freedesktop.org/wiki/}
238 @item @emph{Inotify}
240 If you have Linux's @emph{inotify} support, @sc{Window Maker} will use it to check for configuration
241 updates instead of polling regularly the file.
242 The needed header comes with the kernel, typical packages names include:
243 @itemize
244 @item @file{kernel-headers} for @emph{Slackware} and @emph{Fedora}
245 @item @file{linux-userspace-headers} for @emph{Mageia}
246 @item @file{linux-libc-dev} for @emph{Debian} and @emph{Ubuntu}
247 @item @file{linux-glibc-devel} for @emph{OpenSuSE}
248 @end itemize
250 @item @emph{MagickWand} 6.8.9-9 or newer
252 If found, then the library @emph{WRaster} can use the @emph{ImageMagick} library to let
253 @sc{Window Maker} support more image formats, like @emph{SVG}, @emph{BMP}, @emph{TGA}, ...
254 You can get it from @uref{http://www.imagemagick.org/}
256 @item @emph{Boehm GC}
258 This library can be used by the @emph{WINGs} utility toolkit to use a
259 @cite{Boehm-Demers-Weiser Garbage Collector} instead of the traditional
260 @command{malloc}/@command{free} functions from the @emph{libc}.
261 You have to explicitly ask for its support though (@pxref{Configure Options}).
262 You can get it from @uref{http://www.hboehm.info/gc/}
264 @end itemize
267 @c ----------------------------------------------------------------------- Building Window Maker ---
268 @node Building Window Maker
269 @chapter Building @sc{Window Maker}
271 @section Getting the Sources
273 The latest version of @sc{Window Maker} (@t{-crm}) can be downloaded from
274 @uref{http://www.windowmaker.org/}
276 Alternatively, the development branch, called @t{#next} is in the @emph{git} repository at
277 @uref{http://repo.or.cz/w/wmaker-crm.git}
279 If you want to use the @emph{git} versions, you can get it with:
280 @example
281 git clone -b next git://repo.or.cz/wmaker-crm.git
282 @end example
283 @noindent then, assuming you have the dependencies listed in @ref{Special Dependencies}, you have to
284 type:
285 @example
286 ./autogen.sh
287 @end example
288 @noindent to generate the configuration script.
291 @section Build and Install
293 For a quick start, type the following in your shell prompt:
295 @example
296 ./configure
297 make
298 @end example
300 @noindent then, login as @emph{root} and type:
302 @example
303 make install
304 ldconfig
305 @end example
307 @noindent or if you want to strip the debugging symbols from the binaries to make them smaller,
308 you can type instead:
310 @example
311 make install-strip
312 ldconfig
313 @end example
315 @noindent This will build and install @sc{Window Maker} with default parameters.
317 If you want to customise some compile-time options, you can do the following:
319 @enumerate
320 @item
321 (optional) Look at the @ref{Configure Options}, for the options available.
322 Also run:
323 @example
324 ./configure --help
325 @end example
327 to get a complete list of options that are available.
329 @item
330 Run configure with the options you want.
331 For example, if you want to use the @option{--enable-modelock} option, type:
332 @example
333 ./configure --enable-modelock
334 @end example
336 @item
337 (optional) Edit @file{src/wconfig.h} with your favourite text editor and browse through it for some
338 options you might want to change.
340 @item
341 Compile. Just type:
342 @example
343 make
344 @end example
346 @item
347 Login as root (if you can't do that, read the @ref{No Root Password, , I don't have the @emph{root} password})
348 and install @sc{Window Maker} in your system:
349 @example
350 su root
351 make install
352 @end example
354 @end enumerate
357 @section User specific configuration
359 These instructions do not need to be followed when upgrading @sc{Window Maker}
360 from an older version, unless stated differently in the @cite{NEWS} file.
362 Every user on your system that wishes to run @sc{Window Maker} must do the
363 following:
365 @enumerate
366 @item
367 Install Window Maker configuration files in your home directory.
368 Type:
369 @example
370 wmaker.inst
371 @end example
373 @command{wmaker.inst} will install @sc{Window Maker} configuration files and will
374 setup X to automatically launch @sc{Window Maker} at startup.
376 @end enumerate
378 That's it!
380 You can type @command{man wmaker} to get some general help for configuration
381 and other stuff.
383 Read the @cite{User Guide} for a more in-depth explanation of @sc{Window Maker}.
385 You might want to take a look at the @cite{FAQ} too.
388 @section Locales/Internationalisation
390 @sc{Window Maker} has national language support. The procedure to enable national
391 language support is described in the dedicated
392 @ref{Enabling Languages support,,,wmaker_i18n,@file{README.i18n}}.
395 @section Configure Options
396 @anchor{Configure Options}
398 These options can be passed to the configure script to enable/disable
399 some @sc{Window Maker} features. Example:
400 @example
401 ./configure --enable-modelock --disable-gif
402 @end example
403 will configure @sc{Window Maker} with @emph{modelock} supported and disable @emph{gif} support.
404 Normally, you won't need any of them.
406 To get the list of all options, run @command{./configure --help}
409 @subsection Installation Directory
411 The default installation path will be in the @file{/usr/local} hierarchy;
412 a number of option can customise this:
414 @table @option
415 @item  --prefix=@i{PREFIX}
416 @itemx --exec-prefix=@i{EPREFIX}
417 @itemx --bindir=@i{DIR}
418 @itemx --sysconfdir=@i{DIR}
419 @itemx --libdir=@i{DIR}
420 @itemx --includedir=@i{DIR}
421 @itemx --datarootdir=@i{DIR}
422 @itemx --datadir=@i{DIR}
423 @itemx --localedir=@i{DIR}
424 @itemx --mandir=@i{DIR}
425 Standard options from @emph{autoconf} to define target paths,
426 you probably want to read @ref{Installation Names,,,INSTALL,@file{INSTALL}}.
428 @item  --sbindir=@i{DIR}
429 @itemx --libexecdir=@i{DIR}
430 @itemx --sharedstatedir=@i{DIR}
431 @itemx --localstatedir=@i{DIR}
432 @itemx --oldincludedir=@i{DIR}
433 @itemx --infodir=@i{DIR}
434 @itemx --docdir=@i{DIR}
435 @itemx --htmldir=@i{DIR}
436 @itemx --dvidir=@i{DIR}
437 @itemx --pdfdir=@i{DIR}
438 @itemx --psdir=@i{DIR}
439 More standard options from @emph{autoconf}, today these are not used by @sc{Window Maker};
440 they are provided automatically by @emph{autoconf} for consistency.
442 @item --with-gnustepdir=@i{PATH}
443 Specific to @sc{Window Maker}, defines the directory where @file{WPrefs.app} will be installed,
444 if you want to install it like a @emph{GNUstep} applications.
445 If not specified, it will be installed like usual programs.
447 @item --with-pixmapdir=@i{DIR}
448 Specific to @sc{Window Maker}, this option defines an additional path where @emph{pixmaps} will be
449 searched. Nothing will be installed there; the default path taken is @file{@emph{DATADIR}/pixmaps},
450 where @var{DATADIR} is the path defined from @option{--datadir}.
452 @item --with-defsdatadir=@i{DIR}
453 Specific to @sc{Window Maker}, defines the directory where system configuration
454 files, e.g., @file{WindowMaker}, @file{WMRootMenu}, etc., are installed.  The
455 default value is @file{@emph{SYSCONFDIR}/WindowMaker}, where @var{SYSCONFDIR} is
456 the path defined from @option{--sysconfdir}.
458 @end table
461 @subsection External Libraries
463 Unless specifically written, @command{configure} will try to detect automatically for the libraries;
464 if you explicitly provide @option{--enable-@emph{FEATURE}} then it will break with an error message
465 if the library cannot be linked;
466 if you specify @option{--disable-@emph{FEATURE}} then it will not try to search for the library.
467 You can find more information about the libraries in the
468 @ref{Optional Dependencies}.
470 @table @option
471 @item --enable-boehm-gc
472 Never enabled by default, use Boehm GC instead of the default @emph{libc} @command{malloc()}
474 @item --disable-gif
475 Disable GIF support in @emph{WRaster} library; when enabled use @file{libgif} or @file{libungif}.
477 @item --disable-jpeg
478 Disable JPEG support in @emph{WRaster} library; when enabled use @file{libjpeg}.
480 @item --without-libbsd
481 Refuse use of the @file{libbsd} compatibility library in @emph{WINGs} utility library,
482 even if your system provides it.
484 @item --disable-magick
485 Disable @emph{ImageMagick's MagickWand} support in @emph{WRaster}, used to support for image formats.
487 @item --enable-pango
488 Disabled by default, enable @emph{Pango} text layout support in @emph{WINGs}.
490 @item --disable-png
491 Disable PNG support in @emph{WRaster}; when enabled use @file{libpng}.
493 @item --disable-tiff
494 Disable TIFF support in @emph{WRaster}. when enabled use @file{libtiff}.
496 @item --disable-webp
497 Disable WEBP support in @emph{WRaster}. when enabled use @file{libwebp}.
499 @item --disable-xpm
500 Disable use of @file{libXpm} for XPM support in @emph{WRaster}, use internal code instead.
502 @end table
504 The following options can be used to tell @command{configure} about extra paths that needs to be
505 used when compiling against libraries:
507 @table @option
508 @item --with-libs-from
509 specify additional paths for libraries to be searched.
510 The @option{-L} flag must precede each path, like:
511 @example
512 --with-libs-from="-L/opt/libs -L/usr/local/lib"
513 @end example
515 @item --with-incs-from
516 specify additional paths for header files to be searched.
517 The @option{-I} flag must precede each paths, like:
518 @example
519 --with-incs-from="-I/opt/headers -I/usr/local/include"
520 @end example
522 @end table
525 @subsection X11 and Extensions
527 @command{configure} will try to detect automatically the compilation paths for X11 headers and
528 libraries, and which X Extensions support can be enabled.
529 if you explicitly provide @option{--enable-@emph{FEATURE}} then it will break with an error message
530 if the extension cannot be used;
531 if you specify @option{--disable-@emph{FEATURE}} then it will not check for the extension.
533 @table @option
534 @item  --x-includes=@i{DIR}
535 @itemx --x-libraries=@i{DIR}
536 @emph{Autoconf}'s option to specify search paths for @emph{X11},
537 for the case were it would not have been able to detect it automatically.
539 @item --disable-xlocale
540 If you activated support for Native Languages, then @emph{X11} may use a hack to also configure its
541 locale support when the program configure the locale for itself.
542 The @command{configure} script detects if the @emph{Xlib} supports this or not;
543 this options explicitly disable this initialisation mechanism.
545 @item --enable-modelock
546 XKB language status lock support. If you don't know what it is you probably don't need it.
547 The default is to not enable it.
549 @item --disable-shm
550 Disable use of the @emph{MIT shared memory} extension.
551 This will slow down texture generation a little bit, but in some cases it seems to be necessary due
552 to a bug that manifests as messed icons and textures.
554 @item --disable-shape
555 Disables support for @emph{shaped} windows (for @command{oclock}, @command{xeyes}, etc.).
557 @item --enable-xinerama
558 The @emph{Xinerama} extension provides information about the different screens connected when
559 running a multi-head setting (if you plug more than one monitor).
561 @item --enable-randr
562 The @emph{RandR} extension provides feedback when changing the multiple-monitor configuration in X11
563 and allows to re-configure how screens are organised.
565 At current time, it is not enabled by default because it is NOT recommended (buggy);
566 @sc{Window Maker} only restart itself when the configuration change, to take into account the new
567 screen size.
569 @end table
572 @subsection Feature Selection
574 @table @option
575 @item --disable-animations
576 Disable animations permanently, by not compiling the corresponding code into @sc{Window Maker}.
577 When enabled (the default), you still have a run-time configuration option in @emph{WPrefs}.
579 @item --disable-mwm-hints
580 Disable support for Motif's MWM Window Manager hints.
581 These attributes were introduced by the Motif toolkit to ask for special window appearance requests.
582 Nowadays this is covered by the NetWM/EWMH specification, but there are still applications that rely on MWM Hints.
584 @item --enable-wmreplace
585 Add support for the @emph{ICCCM} protocol for cooperative window manager replacement.
586 This feature is disabled by default because you probably don't need to switch seamlessly the window manager;
587 if you are making a package for a distribution you'd probably want to enable this because it allows users to give
588 a try to different window managers without restarting everything for an extra cost that is not really big.
590 @item --disable-xdnd
591 Disable support for dragging and dropping files on the dock, which launches a user-specified command
592 with that file.
593 Starting from version 0.65.6 this feature is enabled by default.
595 @item --enable-ld-version-script
596 This feature is auto-detected, and you should not use this option.
597 When compiling a library (@file{wrlib}, ...), @emph{gcc} has the possibility to filter the list of
598 functions that will be visible, to keep only the public API, because it helps running programs
599 faster.
601 The @command{configure} script checks if this feature is available;
602 if you specify this option it will not check anymore and blindly trust you that it is supposed to
603 work, which is not a good idea as you may encounter problems later when compiling.
605 @item --enable-usermenu
606 This feature, disabled by default, allows to add a user-defined custom menu to applications;
607 when choosing an entry of the menu it will send the key combination defined by the user to that
608 application. @xref{Application User Menu,,,NEWS,@file{NEWS}} for more information.
610 @item --with-menu-textdomain=@i{DOMAIN}
611 Selection of the domain used for translation of the menus;
612 @pxref{Translations for Menus,,,wmaker_i18n,@file{README.i18n}}.
614 @end table
617 @subsection Developer Stuff
619 These options are disabled by default:
621 @table @option
622 @item --config-cache
623 If you intend to re-run the @command{configure} script often, you probably want to include this
624 option, so it will save and re-use the status of what have been detected in the file
625 @file{config.cache}.
627 @item --enable-debug
628 Enable debugging features (debug symbol, some extra verbosity and checks) and add a number of
629 check flags (warnings) for the compiler (in @emph{gcc} fashion).
631 @item --enable-lcov=@i{DIRECTORY}
632 Enable generation of code coverage and profiling data;
633 if the @file{@i{DIRECTORY}} is not specified, use @file{coverage-report}.
635 This option was meant to be use with @emph{gcc};
636 it was not used recently so it is probable that is does not work anymore;
637 the @command{configure} script will not even check that your compiling environment has the
638 appropriate requirements and works with this.
639 Despite all this, if you think there's a use for it and feel in the mood to help, do not hesitate to
640 discuss on the mailing list @value{emailsupport} to get it working.
642 @end table
645 @c ------------------------------------------------------------------------------- Miscelleanous ---
646 @node Miscellaneous
647 @chapter Miscellaneous
649 @section Platform Specific Notes
651 @itemize -
652 @item @emph{GNU/Linux} in general
654 Make sure you have @file{/usr/local/lib} in @file{/etc/ld.so.conf} and that you
655 run @command{ldconfig} after installing.
656 Uninstall any packaged version of @sc{Window Maker} before installing a new version.
658 @item @emph{RedHat GNU/Linux}
660 @emph{RedHat} systems have several annoying problems.
661 If you use it, be sure to follow the steps below or @sc{Window Maker} will not work:
663 @itemize
664 @item
665 if you installed the @sc{Window Maker} that comes with @emph{RedHat}, uninstall it before upgrading;
667 @item
668 make sure you have @file{/usr/local/bin} in your @env{PATH} environment variable;
670 @item
671 make sure you have @file{/usr/local/lib} in @file{/etc/ld.so.conf} before running @command{ldconfig};
672 @end itemize
674 @item @emph{PowerPC MkLinux}
676 You will need to have the latest version of @emph{Xpmac}.
677 Older versions seem to have bugs that cause the system to hang.
679 @item @emph{Debian GNU/Linux}
681 If you want @emph{JPEG} and @emph{TIFF} support, make sure you have @file{libtiff-dev}
682 and @file{libjpeg-dev} installed.
684 @item @emph{SuSE GNU/Linux}
686 If you installed the @sc{Window Maker} package from @emph{SuSE}, uninstall it before trying to
687 compile @emph{Window Maker} or you might have problems.
689 @item @emph{MetroX} (unknown version)
691 @emph{MetroX} has a bug that corrupts pixmaps that are set as window backgrounds.
692 If you use @emph{MetroX} and have weird problems with textures, do not use textures in title bars.
693 Or use a different X server.
695 @end itemize
698 @section I don't have the @emph{root} password :(
699 @anchor{No Root Password}
701 If you can't get superuser privileges (can't be @i{root}) you can install @emph{Window Maker} in your own
702 home directory.
703 For that, supply the @option{--prefix} option when running configure in step 2 of building
704 @sc{Window Maker}.
705 You will also need to supply the @option{--with-gnustepdir} option, to specify the path for
706 @command{WPrefs.app}.
707 Example:
709 @example
710 ./configure --prefix=/home/jshmoe --with-gnustepdir=/home/jshmoe/GNUstep/Applications
711 @end example
713 Then make @file{/home/jshmoe/bin} be included in your search @env{PATH}, add @file{/home/jshmoe/lib}
714 to your @env{LD_LIBRARY_PATH} environment variable and run @command{bin/wmaker.inst}
716 Of course, @file{/home/jshmoe} is supposed to be replaced by your actual home directory path.
719 @section Upgrading
721 If you are upgrading from an older version of @sc{Window Maker}:
723 @enumerate
724 @item Configure and build @sc{Window Maker} as always
725 @item Install @sc{Window Maker} (but do not run @command{wmaker.inst})
726 @item Read the @cite{NEWS} file and update your configuration files if necessary.
727 @end enumerate
730 @c ------------------------------------------------------------------------------- Miscelleanous ---
731 @node Troubleshooting
732 @chapter Troubleshooting
734 When you have some trouble during configuration (while running configure), like not being able to
735 use a graphic format library you think you have installed, look at the @file{config.log} file for
736 clues of the problem.
739 @section Error with loading fonts, even if they exist
741 This is probably a problem with NLS (Native Language Support), you probably want to look at the
742 @ref{Troubleshooting,,,wmaker_i18n,@file{README.i18n}}
743 or try rebuilding without NLS support, which is done with:
744 @example
745 ./configure LINGUAS=""
746 @end example
749 @section configure doesn't detect @emph{libtiff}, or other graphic libraries
751 Delete @file{config.cache}, then rerun configure adding the following options to @command{configure}
752 (among the other options you use):
753 @example
754 --with-libs-from="-L/usr/local/lib"
755 --with-incs-from="-I/usr/local/include -I/usr/local/include/tiff"
756 @end example
757 Put the paths where your graphic libs and their corresponding header files are located.
758 You can put multiple paths in any of these options, as the example of @option{--with-incs-from} shows.
759 Just put a space between them.
762 @section configure doesn't detect @emph{libXpm}
764 Check if you have a symbolic link from @file{libXpm.so.4.9} to @file{libXpm.so}
767 @section Segmentation fault on startup
769 @itemize
770 @item Check if the version of @emph{libXPM} you have is at least 4.7
772 @item Check if you have an updated version of @file{~/GNUstep/Defaults/WindowMaker}
773 @end itemize
775 If you're not sure, try renaming @file{~/GNUstep} to @file{~/GNUtmp}
776 and then run @command{wmaker.inst}
779 @section "...: your machine is misconfigured. gethostname() returned (none)"
781 the host name of your machine is set to something invalid, that starts with a parenthesis.
782 Do a @command{man hostname} for info about how to set it.
785 @section The root menu contains only 2 entries. ("XTerm" and "Exit...")
787 @sc{Window Maker} could not read your menu definition file.
788 You should check the output of @command{wmaker} for an error, it may be visible in the console or in the
789 @file{.xsession-errors} file.
792 @c ------------------------------------------------------------------------------------- The End ---
793 @bye