E

The Components of X Products

This appendix lists the contents of various X distributions.

In This Appendix:

MIT X11 Release 5

OSF/Motif

Sun OpenWindows

DECWindows

AIXWindows

Silicon Graphics

A Guide to X11 Libraries

E

The Components of X Products

This appendix provides an overview of some of the X products that are currently available. We summarize various vendors' implementations, and discuss features that may help you to identify them. The following implementations are covered:

  • MIT Release 5
  • OSF/Motif GUI
  • Sun OpenWindows
  • DECWindows
  • AIXWindows
  • Silicon Graphics

We also include a listing of some of the libraries that you may need in compiling software.

Some of these implementations may overlap and may contain components of several other systems. For example, the Motif Toolkit is included in most current vendor-supplied installations. Several vendors also offer applications that can switch back and forth between OSF/Motif and OPEN LOOK “modes.”

With a complete distribution, X software is installed in the following directories.

Table E-1. X Distribution Directories

File Description
/usr/bin/X11/ X executables, including clients, demos, and the X server.
/usr/lib/X11/ Server-specific software, including fonts, color data-bases, and configuration files.
/usr/lib/ X programming libraries.
/usr/include/X11/ X header files and bitmaps.
/usr/man/ X manpages.
$HOME/ User-specific startup and resource files.

Keep in mind that your pathnames may differ, but the directories bin, lib, and include should exist in some form.

The names of libraries vary depending on the system—SunOS shared libraries have a .so.version or .sa.version extension, while Silicon Graphics shared libraries have a _s extension. A _p extension usually means that the library has been “profiled” for performance analysis. An extension such as _G0 indicates it was built with a specific compiler option.

The following information should help you determine what type of installation you currently have and what you would like to install.

E.1 MIT X11 Release 5

To the user, Release 5 looks very similar to Release 4. Most of the new features (such as the font server, PEX, and the Xcms color system) are more visible to the X programmer and to the administrator than they are to the user. As in R4, the include files for toolkits and related files are grouped into subdirectories. (In previous MIT releases and some vendor implementations, the include files were in one directory.)

Table E-2. MIT X11R5 Files

File Description
/usr/bin/X11/X A link to a server executable. The server name usually starts with a capital X. For example, Xsun, Xcfbpmax, and Xsgi are the names for X servers. The X server will be present in complete installations.
/usr/bin/X11/twm Tab window manager. This is the default window manager in MIT R4 and R5.
/usr/bin/X11/fs The font server program.
/usr/lib/X11/PEX/ A directory of files used by PEX, the 3-D extension to X11. This directory is new to R5.
/usr/lib/X11/XKeysymDB A list of keysyms. This should be installed on any system using OSF/Motif clients and MIT R5 (A different version of this will file comes with MIT R5). Most Motif clients will fail to work properly without this file.
/usr/lib/X11/XErrorDB A mapping of X error codes to error messages.
/usr/lib/X11/app-defaults/ A directory of system-wide default resources for clients.
/usr/lib/X11/config/ A directory of configuration files copied from the source build area. These configuration files are used by imake when building X programs after the X distribution is installed.
/usr/lib/X11/fonts/ A directory of fonts for the X server. If a local X server is not present (i.e., if it is a client-only installation), this directory may be unnecessary. The font server could also read fonts from this directory over the network for a remote server.
/usr/lib/X11/fs/ A directory of font server configuration files.
/usr/lib/X11/xdm/ A directory of files required by the xdm client.
/usr/lib/X11/rgb/or rgb*. Files that contain the RGB database for color names.
/usr/lib/libX11.a The main library of X functions (Xlib).
/usr/lib/libXaw.a The Athena Widget library.
/usr/lib/libXmu.a The miscellaneous functions library.
/usr/lib/libXt.a The X Toolkit functions library.
/usr/lib/liboldX.a The backward compatibility library.
/usr/lib/libXdmcp.a The XDMCP library (R4 and R5).
/usr/lib/lib*X*.a Other X libraries (release-dependent).
/usr/include/X11/ A directory of include files for compiling X programs.
/usr/include/X11/bitmaps/ A directory of bitmaps for random X programs.
$HOME/.Xdefaults User-specific resources for X clients.
$HOME/.Xresources User-specific resources for X resources.
$HOME/.twmrc The user-specific startup file for the twm window manager.
$HOME/.xinitrc The user-specific startup file for starting the X server using xinit.
$HOME/.xsession The user-specific startup file for starting the X server using xdm.

E.2 OSF/Motif

If you administer any systems that run OSF/Motif with X, the files shown in Table E-3 should be present. Of the files listed, XKeysymDB is an important one that is often forgotten with some Motif installations. This file maps the official OSF names for keysyms—most Motif programs will complain and generate numerous error messages if they cannot find this file when they start up. XKeysymDB is included in the MIT R5 release.

The names of the OSF/Motif libraries may be slightly different on your system, depending on the release of X11. Early releases of Motif (1.0.A) came with their own version of the X toolkit library. Most people named this libXtm.a, libMXt.a, or something similar to avoid confusion with the standard MIT libXt.a. If you are compiling a Motif program on one of these systems, the Motif specific X Toolkit library needs to be linked with:

% cc -o motifthing motifthing.c -lXm -lXtm -lX11

The location of the Motif include files may also vary depending on the implementation. The default location provided by OSF places them in /usr/include, but they may be in /usr/include/X11 instead. You may want them under /usr/include/X11 in order to keep all X11 files in one place. If so, the alternate location has to be specified with the -I flag to cc:

% cc -c -I/usr/include/X11 motifthing.c

Motif programs include the header files with the Motif subdirectory prepended:

#include <Xm/Xm.h>

The complete pathname of this file becomes /usr/include/X11/Xm/Xm.h.

Table E-3. Motif Files (Motif 1.1.x)

File Description
/usr/bin/X11/mwm The Motif Window Manager.
/usr/bin/X11/uil The UIL (User Interface Language) compiler.
/usr/bin/X11/mre The Motif Resource Editor (this is officially a “demo,” but it is potentially quite useful—only present in version 1.x).
/usr/lib/libMrm.a The Motif resource manager library.
/usr/lib/libXm.a The Motif toolkit library.
/usr/lib/libUil.a The Motif UIL library.
/usr/lib/X11/XKeysymDB A database of special OSF keysyms for Motif applications.
/usr/lib/X11/app-defaults/Mwm System-wide default resources for mwm.
/usr/lib/X11/system.mwmrc The default startup file for mwm.
/usr/lib/X11/uid/ A directory of compiled UIL files for clients.
/usr/include/Xm/ A directory of Motif toolkit include files.
/usr/include/Mrm/ A directory of Motif resource manager include files.
/usr/include/uil/ A directory of Motif UIL include files.
$HOME/.mwmrc The user-specific startup file for mwm.

E.3 Sun OpenWindows

The OPEN LOOK GUI is currently packaged as part of the OpenWindows environment on Sun systems. OpenWindows is laid out differently from the MIT X installation: all software is installed under /usr/openwin, as listed in Table E-4.

Table E-4. OpenWindows Files (Sun4, SunOS 4.1.1)

File Description
bin/openwin The server start-up script.
bin/ A combination of X, OpenWindows, and NeWS clients.
demo/ A combination of X, OpenWindows, and NeWS demo programs (including a demo xterm).
etc/ Configuration information for NeWS.
include/ Header files for X and OpenWindows.
lib/ Server-specific software for OpenWindows.
man/ Man pages for X and OpenWindows. (You may have to do “setenv MANPATH /usr/man:/usr/openwin/man” for the man command to find them.)

Table E-5 summarizes the more important OPEN LOOK files.

Table E-5. OPEN LOOK Files

File Description
/usr/openwin/bin/xnews The OpenWindows server.
/usr/openwin/bin/olwm The OPEN LOOK Window Manager.
/usr/openwin/bin/props The resource editor (similar to Motif's mre).
/usr/openwin/lib/lib* Programming libraries for OPEN LOOK functions.
/usr/openwin/lib/openwin-* System-wide default files.
$HOME/.openwin-* Per-user default files.

E.4 DECWindows

DECWindows is moving towards a Motif-like environment, but is still different in many ways. Most of it should be quite familiar to someone used to a MIT distribution. The MIT-derived X11 is available as an unsupported subset that can co-exist with the DECWindows environment.

Table E-6. DECWindows Files (DecStation, Ultrix 4.2)

Files Description
/usr/bin/Xws The DECwindows server.
/usr/bin/dxwm The DECwindows window manager.
/usr/bin/dxsession The DECwindows session manager.
/usr/bin/Xprompter The login window tool (similar to xdm).
/usr/bin/dxuil The DECwindows User Interface Language compiler.
/usr/lib/X11/uid/ A directory of compiled UIL files.
/usr/include/X11/ A directory of both of DECwindows and MIT header files.
/usr/include/mit/X11/ A directory of vanilla MIT header files.
/usr/lib/libXext.a The DECwindows version of libXext.
/usr/lib/libXext-mit.a The vanilla MIT libXext.

E.5 AIXWindows

AIXWindows is quite different than the MIT distribution and it may take some work to get it to look like the MIT environment. The names and options of standard clients have been changed from what you are used to, and the layout of the software is quite different than other vendors’ implementations. The current version of AIX, 3.2, is also missing some clients you would expect when using an MIT distribution. The layout of libraries and include files is relatively standard.

Table E-7. AIXWindows Files (RS/6000, AIX 3.2)

Files Description
/usr/bin/X11/X The AIXWindows server.
/usr/bin/X11/mwm The Motif window manager.
/usr/bin/X11/xdt The AIXWindows desktop.
/usr/bin/X11/aixterm The AIXWindows version of xterm.
/usr/bin/info The InfoExplorer hypertext X documentation browser.
/usr/include/X11/*.h AIXWindows header files.
/usr/include/Xm/*.h Motif 1.x header files.
/usr/include/Mrm/*.h
/usr/include/uil/*.h
/usr/lib/lib*.a Standard X11 R4 and Motif 1.x libraries.
/usr/lib/X11/ Standard X11 R4 lib files.
/usr/lpp/info/X11fonts/ A directory of fonts for the InfoExplorer utility.

E.6 Silicon Graphics

SGI has had a decent NeWS implementation for several years, working together with the SGI Graphics Library system (GL). X functionality was added over time in a piecemeal fashion. With the release of IRIX 4.0, X11 is an integral part of the server, and works well along with GL and NeWS. The clients are based on OSF/Motif, which comes with the OS.

Table E-8. Graphics X11 Files (Indigo, IRIX4.0)

Files Description
/usr/bin/X11/Xsgi A combined X11/GL/NeWS server.
/usr/bin/X11/4Dwm A mwm-like window manager.
/usr/bin/X11/toolchest A “desktop” manager client.
/usr/lib/X11/ A directory of X11 R4 “lib” files.
/usr/include/X11/ A directory of both X11 R4 and Motif 1.1 header files.
/usr/lib/lib* X11 R4 and Motif 1.1 libraries.

E.7 A Guide to X11 Libraries

When compiling software, you may suddenly discover that it requires a library you've never heard of. In your X11 adventures, you may see references to the following libraries.

Library Description
libX11.a Xlib
libXaw.a Athena widget set
libXext.a Extensions to Xlib
libXt.a Toolkit
libXau.a Authorization
libXdmcp.a XDMCP
libXinput.a Input methods
libXmu.a Misc Utilities
liboldX.a Backwards compatibility library for X10
libphigs.a R5 phigs
libXm.a Motif widgets
libUil.a Motif user interface language
libMrm.a Motif resource manager
libXtm.a libMXt.a Names for libXt when Motif (1.0.A) required its own version
libMu.a MIT Motif utilities library (sometimes found in software from MIT Athena project)
libXw.a HP Widgets in R3 and R4 contrib
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.63.136