bugfix: using the "rtp_example.raw.gz" from the wiki, the dialog runs into an endless...
[obnox/wireshark/wip.git] / README.macos
1 $Id$
2
3 This file tries to help building Ethereal for Mac OS X (Ethereal does
4 not work on earlier versions of Mac OS).
5
6 In order to build Ethereal, you must have X11 and the X11 developer
7 headers and libraries installed; otherwise, you will not be able to
8 build or install GTK+, and will only be able to build Tethereal.  The
9 X11 and X11 SDK that come with Mac OS X 10.3[.x] are sufficient to build
10 and run Ethereal.
11
12 The changes to enable libwiretap and libethereal being built as shared
13 libraries have broken shared gtk1 builds on Mac OS X.  The GLib 1.x and
14 GTK+ 1.x release tarballs were built with an older version of libtool
15 that didn't support shared libraries on Mac OS X, so you can't build and
16 install them as shared libraries, but the shared-library build of
17 Ethereal requires GLib and GTK+, on Mac OS X, to be shared libraries. 
18 The alternative to build Ethereal as one big statically linked binary
19 isn't working either (and may never have worked on this OS).
20
21 The way out of this situation is to use gtk2 and associated libraries
22 which is known to work in this constellation:
23
24         GLib 2.4.0
25         Pango 1.4.0
26         GTK+ 2.4.0
27         ATK 1.6.0
28
29 and the corresponding dependencies, which you can download from the
30 "dependencies" subdirectory of the GTK+ download directory on the GTK+
31 FTP site:
32
33         pkg-config
34         jpegsrc
35         libpng
36         tiff
37
38 as well as GNU gettext, which isn't included in the directory of
39 dependencies on the GTK+ FTP site.
40
41 NOTE: you must set the PKG_CONFIG_PATH environment variable to include
42 "/usr/X11R6/lib/pkgconfig" (unless you've already set it, set it to
43 "/usr/X11R6/lib/pkgconfig") before running the Pango configuration
44 script, so that it can be configured to use the version of fontconfig
45 that comes with Mac OS X's X11. This is also needed for the GTK+
46 configuration.
47
48 NOTE: you must install the pkg-config dependency first; unless it is
49 installed, you cannot configure GLib or GTK+.  After that, you must
50 install GNU gettext; only after both of those have been built and
51 installed will you be able to configure GLib.  After configuring and
52 installing GLib, configure, build, and install Pango, ATK, jpegsrc,
53 libpng, tiff, and GTK+, in order.  (The exact order might not be
54 important, but you must configure, build, and install Pango and ATK
55 before configuring GTK+ and, if you want GTK+ to be able to use the
56 capabilities from the other libraries, you must configure, build, and
57 install them before configuring GTK+.)
58
59 You will need to do "make install-lib" for the JPEG library to install
60 its libraries - "make install" does not suffice.  You will also have to
61 do "sudo ranlib /usr/local/lib/libjpeg.a" after "make install-lib".
62
63 For libpng, use scripts/makefile.darwin, not scripts/makefile.macosx.
64
65 Finally run the configure script. By default it will use
66 the Glib2 and GTK+2 libraries. If you run Ethereal's configure script
67 with the "--disable-gtk2" argument it'll try to configure with GLib
68 1.2[.x] and GTK+ 1.2[.x], in which case:
69
70         if they're not installed, the configure script will fail;
71
72         if they are installed, the configure script will configure
73         Ethereal to build with them.