wmaker: fix memory leak in the Workspace Map if there is no workspace (Coverity ...
[wmaker-crm.git] / doc / build / Compilation.texi
blob4db3ae0ff4b3c369213947c58d9a873b7f0353bf
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.11
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 @end table
455 @subsection External Libraries
457 Unless specifically written, @command{configure} will try to detect automatically for the libraries;
458 if you explicitly provide @option{--enable-@emph{FEATURE}} then it will break with an error message
459 if the library cannot be linked;
460 if you specify @option{--disable-@emph{FEATURE}} then it will not try to search for the library.
461 You can find more information about the libraries in the
462 @ref{Optional Dependencies}.
464 @table @option
465 @item --enable-boehm-gc
466 Never enabled by default, use Boehm GC instead of the default @emph{libc} @command{malloc()}
468 @item --disable-gif
469 Disable GIF support in @emph{WRaster} library; when enabled use @file{libgif} or @file{libungif}.
471 @item --disable-jpeg
472 Disable JPEG support in @emph{WRaster} library; when enabled use @file{libjpeg}.
474 @item --without-libbsd
475 Refuse use of the @file{libbsd} compatibility library in @emph{WINGs} utility library,
476 even if your system provides it.
478 @item --disable-magick
479 Disable @emph{ImageMagick's MagickWand} support in @emph{WRaster}, used to support for image formats.
481 @item --enable-pango
482 Disabled by default, enable @emph{Pango} text layout support in @emph{WINGs}.
484 @item --disable-png
485 Disable PNG support in @emph{WRaster}; when enabled use @file{libpng}.
487 @item --disable-tiff
488 Disable TIFF support in @emph{WRaster}. when enabled use @file{libtiff}.
490 @item --disable-webp
491 Disable WEBP support in @emph{WRaster}. when enabled use @file{libwebp}.
493 @item --disable-xpm
494 Disable use of @file{libXpm} for XPM support in @emph{WRaster}, use internal code instead.
496 @end table
498 The following options can be used to tell @command{configure} about extra paths that needs to be
499 used when compiling against libraries:
501 @table @option
502 @item --with-libs-from
503 specify additional paths for libraries to be searched.
504 The @option{-L} flag must precede each path, like:
505 @example
506 --with-libs-from="-L/opt/libs -L/usr/local/lib"
507 @end example
509 @item --with-incs-from
510 specify additional paths for header files to be searched.
511 The @option{-I} flag must precede each paths, like:
512 @example
513 --with-incs-from="-I/opt/headers -I/usr/local/include"
514 @end example
516 @end table
519 @subsection X11 and Extensions
521 @command{configure} will try to detect automatically the compilation paths for X11 headers and
522 libraries, and which X Extensions support can be enabled.
523 if you explicitly provide @option{--enable-@emph{FEATURE}} then it will break with an error message
524 if the extension cannot be used;
525 if you specify @option{--disable-@emph{FEATURE}} then it will not check for the extension.
527 @table @option
528 @item  --x-includes=@i{DIR}
529 @itemx --x-libraries=@i{DIR}
530 @emph{Autoconf}'s option to specify search paths for @emph{X11},
531 for the case were it would not have been able to detect it automatically.
533 @item --disable-xlocale
534 If you activated support for Native Languages, then @emph{X11} may use a hack to also configure its
535 locale support when the program configure the locale for itself.
536 The @command{configure} script detects if the @emph{Xlib} supports this or not;
537 this options explicitly disable this initialisation mechanism.
539 @item --enable-modelock
540 XKB language status lock support. If you don't know what it is you probably don't need it.
541 The default is to not enable it.
543 @item --disable-shm
544 Disable use of the @emph{MIT shared memory} extension.
545 This will slow down texture generation a little bit, but in some cases it seems to be necessary due
546 to a bug that manifests as messed icons and textures.
548 @item --disable-shape
549 Disables support for @emph{shaped} windows (for @command{oclock}, @command{xeyes}, etc.).
551 @item --enable-xinerama
552 The @emph{Xinerama} extension provides information about the different screens connected when
553 running a multi-head setting (if you plug more than one monitor).
555 @item --enable-randr
556 The @emph{RandR} extension provides feedback when changing the multiple-monitor configuration in X11
557 and allows to re-configure how screens are organised.
559 At current time, it is not enabled by default because it is NOT recommended (buggy);
560 @sc{Window Maker} only restart itself when the configuration change, to take into account the new
561 screen size.
563 @end table
566 @subsection Feature Selection
568 @table @option
569 @item --disable-mwm-hints
570 Disable support for Motif's MWM Window Manager hints.
571 These attributes were introduced by the Motif toolkit to ask for special window appearance requests.
572 Nowadays this is covered by the NetWM/EWMH specification, but there are still applications that rely on MWM Hints.
574 @item --disable-xdnd
575 Disable support for dragging and dropping files on the dock, which launches a user-specified command
576 with that file.
577 Starting from version 0.65.6 this feature is enabled by default.
579 @item --enable-ld-version-script
580 This feature is auto-detected, and you should not use this option.
581 When compiling a library (@file{wrlib}, ...), @emph{gcc} has the possibility to filter the list of
582 functions that will be visible, to keep only the public API, because it helps running programs
583 faster.
585 The @command{configure} script checks if this feature is available;
586 if you specify this option it will not check anymore and blindly trust you that it is supposed to
587 work, which is not a good idea as you may encounter problems later when compiling.
589 @item --enable-usermenu
590 This feature, disabled by default, allows to add a user-defined custom menu to applications;
591 when choosing an entry of the menu it will send the key combination defined by the user to that
592 application. @xref{Application User Menu,,,NEWS,@file{NEWS}} for more information.
594 @item --with-menu-textdomain=@i{DOMAIN}
595 Selection of the domain used for translation of the menus;
596 @pxref{Translations for Menus,,,wmaker_i18n,@file{README.i18n}}.
598 @end table
601 @subsection Developer Stuff
603 These options are disabled by default:
605 @table @option
606 @item --config-cache
607 If you intend to re-run the @command{configure} script often, you probably want to include this
608 option, so it will save and re-use the status of what have been detected in the file
609 @file{config.cache}.
611 @item --enable-debug
612 Enable debugging features (debug symbol, some extra verbosity and checks) and add a number of
613 check flags (warnings) for the compiler (in @emph{gcc} fashion).
615 @item --enable-lcov=@i{DIRECTORY}
616 Enable generation of code coverage and profiling data;
617 if the @file{@i{DIRECTORY}} is not specified, use @file{coverage-report}.
619 This option was meant to be use with @emph{gcc};
620 it was not used recently so it is probable that is does not work anymore;
621 the @command{configure} script will not even check that your compiling environment has the
622 appropriate requirements and works with this.
623 Despite all this, if you think there's a use for it and feel in the mood to help, do not hesitate to
624 discuss on the mailing list @value{emailsupport} to get it working.
626 @end table
629 @c ------------------------------------------------------------------------------- Miscelleanous ---
630 @node Miscellaneous
631 @chapter Miscellaneous
633 @section Platform Specific Notes
635 @itemize -
636 @item @emph{GNU/Linux} in general
638 Make sure you have @file{/usr/local/lib} in @file{/etc/ld.so.conf} and that you
639 run @command{ldconfig} after installing.
640 Uninstall any packaged version of @sc{Window Maker} before installing a new version.
642 @item @emph{RedHat GNU/Linux}
644 @emph{RedHat} systems have several annoying problems.
645 If you use it, be sure to follow the steps below or @sc{Window Maker} will not work:
647 @itemize
648 @item
649 if you installed the @sc{Window Maker} that comes with @emph{RedHat}, uninstall it before upgrading;
651 @item
652 make sure you have @file{/usr/local/bin} in your @env{PATH} environment variable;
654 @item
655 make sure you have @file{/usr/local/lib} in @file{/etc/ld.so.conf} before running @command{ldconfig};
656 @end itemize
658 @item @emph{PowerPC MkLinux}
660 You will need to have the latest version of @emph{Xpmac}.
661 Older versions seem to have bugs that cause the system to hang.
663 @item @emph{Debian GNU/Linux}
665 If you want @emph{JPEG} and @emph{TIFF} support, make sure you have @file{libtiff-dev}
666 and @file{libjpeg-dev} installed.
668 @item @emph{SuSE GNU/Linux}
670 If you installed the @sc{Window Maker} package from @emph{SuSE}, uninstall it before trying to
671 compile @emph{Window Maker} or you might have problems.
673 @item @emph{MetroX} (unknown version)
675 @emph{MetroX} has a bug that corrupts pixmaps that are set as window backgrounds.
676 If you use @emph{MetroX} and have weird problems with textures, do not use textures in title bars.
677 Or use a different X server.
679 @end itemize
682 @section I don't have the @emph{root} password :(
683 @anchor{No Root Password}
685 If you can't get superuser privileges (can't be @i{root}) you can install @emph{Window Maker} in your own
686 home directory.
687 For that, supply the @option{--prefix} option when running configure in step 2 of building
688 @sc{Window Maker}.
689 You will also need to supply the @option{--with-gnustepdir} option, to specify the path for
690 @command{WPrefs.app}.
691 Example:
693 @example
694 ./configure --prefix=/home/jshmoe --with-gnustepdir=/home/jshmoe/GNUstep/Applications
695 @end example
697 Then make @file{/home/jshmoe/bin} be included in your search @env{PATH}, add @file{/home/jshmoe/lib}
698 to your @env{LD_LIBRARY_PATH} environment variable and run @command{bin/wmaker.inst}
700 Of course, @file{/home/jshmoe} is supposed to be replaced by your actual home directory path.
703 @section Upgrading
705 If you are upgrading from an older version of @sc{Window Maker}:
707 @enumerate
708 @item Configure and build @sc{Window Maker} as always
709 @item Install @sc{Window Maker} (but do not run @command{wmaker.inst})
710 @item Read the @cite{NEWS} file and update your configuration files if necessary.
711 @end enumerate
714 @c ------------------------------------------------------------------------------- Miscelleanous ---
715 @node Troubleshooting
716 @chapter Troubleshooting
718 When you have some trouble during configuration (while running configure), like not being able to
719 use a graphic format library you think you have installed, look at the @file{config.log} file for
720 clues of the problem.
723 @section Error with loading fonts, even if they exist
725 This is probably a problem with NLS (Native Language Support), you probably want to look at the
726 @ref{Troubleshooting,,,wmaker_i18n,@file{README.i18n}}
727 or try rebuilding without NLS support, which is done with:
728 @example
729 ./configure LINGUAS=""
730 @end example
733 @section configure doesn't detect @emph{libtiff}, or other graphic libraries
735 Delete @file{config.cache}, then rerun configure adding the following options to @command{configure}
736 (among the other options you use):
737 @example
738 --with-libs-from="-L/usr/local/lib"
739 --with-incs-from="-I/usr/local/include -I/usr/local/include/tiff"
740 @end example
741 Put the paths where your graphic libs and their corresponding header files are located.
742 You can put multiple paths in any of these options, as the example of @option{--with-incs-from} shows.
743 Just put a space between them.
746 @section configure doesn't detect @emph{libXpm}
748 Check if you have a symbolic link from @file{libXpm.so.4.9} to @file{libXpm.so}
751 @section Segmentation fault on startup
753 @itemize
754 @item Check if the version of @emph{libXPM} you have is at least 4.7
756 @item Check if you have an updated version of @file{~/GNUstep/Defaults/WindowMaker}
757 @end itemize
759 If you're not sure, try renaming @file{~/GNUstep} to @file{~/GNUtmp}
760 and then run @command{wmaker.inst}
763 @section "...: your machine is misconfigured. gethostname() returned (none)"
765 the host name of your machine is set to something invalid, that starts with a parenthesis.
766 Do a @command{man hostname} for info about how to set it.
769 @section The root menu contains only 2 entries. ("XTerm" and "Exit...")
771 @sc{Window Maker} could not read your menu definition file.
772 You should check the output of @command{wmaker} for an error, it may be visible in the console or in the
773 @file{.xsession-errors} file.
776 @c ------------------------------------------------------------------------------------- The End ---
777 @bye