7.4. X11-based Applications and Libraries

 < Day Day Up > 

You can use Fink or DarwinPorts to install many X11-based applications, such as the GNU Image Manipulation Program (GIMP), xfig/transfig, ImageMagick , nedit , and many others. Since Fink understands dependencies, installing some of these applications will cause Fink to first install several other packages. For example, since the text editor nedit depends on Motif libraries, Fink will first install lesstif. (This also gives you the Motif window manager, mwm.) Similarly, when you install the GIMP via Fink, you will also install the packages for GNOME, GTK+, and glib since Fink handles any package dependencies you might encounter. DarwinPorts can be used in a similar manner.

You can also use Fink (see Chapter 13) or DarwinPorts (see Chapter 14) to install libraries directly. For example, the following command can be used to install the X11-based Qt libraries with Fink:

     $ sudo fink install qt 

There is an Aqua version of Qt for Mac OS X (available from Trolltech, http://www.trolltech.com); however, Qt applications won't automatically use the library. Instead, you'll need to recompile and link the application against the Aqua version of Qt, which may not always be a trivial task. If you want the Aqua version of qt, you can alternatively use DarwinPorts to install it with the following command:

     $ sudo port install qt3-mac 

Another interesting development is the port of KDE to Mac OS X. As of this writing, Konqueror had been ported and a port of Koffice was underway. To keep abreast of developments pertaining to KDE on Mac OS X, see http://ranger.befunk.com/blog/.

7.4.1. Aqua-X11 Interactions

Since X11-based applications rely on different graphics systems, even when running XDarwin in rootless mode, you would not necessarily expect to see GUI interactions run smoothly between these two graphics systems. But actually, there are several such interactions that run very well.

First, it is possible to open X11 -based applications from the Terminal application. To launch an X11-based application from the Terminal, use the open-x11 command as follows:

     $ open-x11 /sw/bin/gimp 

You can also copy and paste between X11 and Mac OS X applications . For example, to copy from an xterm window, select some text with your mouse and use the standard Macintosh keyboard shortcut to copy, -C. This places the selected text into the clipboard. To paste the contents of the clipboard into a Mac OS X application (such as the Terminal), simply press -V to paste the text.

To copy from a Mac OS X application, highlight some text and press -C. The copied text can be pasted into an xterm window by pressing the middle button of a three-button mouse or by Option-clicking in the X11 application.

7.4.2. TKAqua

Although TKAqua has been available for pre-Tiger releases of Mac OS X (from http://tcltkaqua.sourceforge.net/), Tiger is the first release of Mac OS X that ships with this Aqua-fied version of the Tcl scripting language and its Tk toolkit. The double-clickable Wish Shell is installed in /Developer/Applications/Utilities when you install Xcode. An X11-based version of Tcl/Tk can be installed with Fink (see Chapter 13) or DarwinPorts (see Chapter 14).

     < Day Day Up > 

    Mac OS X Tiger for Unix Geeks
    Mac OS X Tiger for Unix Geeks
    ISBN: 0596009127
    EAN: 2147483647
    Year: 2006
    Pages: 176

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net