source: trunk/third/gtk/INSTALL @ 17071

Revision 17071, 7.2 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17070, which included commits to RCS files with non-trunk default branches.
Line 
1Prerequisites
2=============
3
4GTK+ requires the GLIB library, available at the same location as
5you got this package.
6
7Simple install procedure
8========================
9
10  % gzip -cd gtk+-1.2.10.tar.gz | tar xvf - # unpack the sources
11  % cd gtk+-1.2.10                         # change to the toplevel directory
12  % ./configure                            # run the `configure' script
13  % make                                   # build GTK
14
15  [ Become root if necessary ]
16  % rm -rf /install-prefix/include/gtk /install-prefix/include/gdk
17  % make install                           # install GTK
18
19Special note for GTK+-1.2.9
20===========================
21
22Between GTK+-1.2.8 and GTK+-1.2.9, the include files for GTK+
23have been moved to $(includedir)/gtk-1-2/ to allow parallel installations
24of GTK+-1.2 and GTK+-2.0 to work correctly. If you are installing
25on top of an old installation of GTK+, you should remove the directories:
26
27 $(includedir)/gtk/
28 $(includedir)/gdk/
29
30Before running 'make install'
31
32The Nitty-Gritty
33================
34
35The 'configure' script can be given a number of options to enable
36and disable various features. For a complete list, type:
37
38  ./configure --help
39
40A few of the more important ones:
41
42*  --prefix=PREFIX         install architecture-independent files in PREFIX
43                           [ Defaults to /usr/local ]
44
45*  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
46                           [ Defaults to the value given to --prefix ]
47
48*  --with-xinput=[no/gxi/xfree] support XInput [default=no]
49
50The --with-xinput flag specifies whether to compile with support
51for the XInput extension (mainly used for graphics tablets), and
52which form of support to use:
53
54  no    : no support
55  xfree : Use special features in the Wacom drivers in XFree86 3.3.1
56          and later.
57  gxi   : Use generic XInput support (not recommended)
58
59The XInput support is not known to work with any other XServer than
60XFree86. For more information about XInput, see:
61
62 http://www.gtk.org/~otaylor/xinput/howto/index.html
63 http://www.lepied.com/xfree86/
64
65*  --disable-nls           do not use Native Language Support
66
67If this flag is not specified, GTK+ will try to find
68and use the gettext() set of functions to provide translations
69of the strings in the standard dialogs into the
70user's native language.
71
72*  --enable-xim            support XIM [default=yes]
73
74Specifying --disable-xim will disable support for entering
75internationalized text using X Input Methods. This will give some
76slight savings in speed and memory use and might be necessary
77with older versions of X.
78
79*  --with-locale=LOCALE    locale name you want to use
80
81The --with-locale options is used to determine if your operating
82system has support for the locale you will be using. If not, X's
83built in locale support will be used.
84
85Because of bugs in autoconf, it is necessary to specify this
86option even if your LANG environment variable is correctly set.
87
88This option does not determine which locale GTK will use at
89runtime. That will be determined from the usual environment
90variables.  If you will be using multiple locales with GTK,
91specify the one for which your operating system has the worst
92support for the --with-locale option.
93
94*  --with-native-locale=[yes/no]  Use native locale support
95
96If set, GTK+ will use your C library's native locale support,
97instead of making conversions between wide characters and
98multibyte-strings by going through Xlib's property-conversion
99functions. Specifying this flag can speed up some operations
100involving text by between 5 and 20 times.
101
102This defaults to no, because it has not extensively been
103tested for portability, but should be safe on most modern
104systems.
105
106
107Options can be given to the compiler and linker by setting
108environment variables before running configure. A few of the more
109important ones:
110
111 CC       : The C compiler to use
112 CPPFLAGS : Flags for the C preprocesser such as -I and -D
113 CFLAGS   : C compiler flags
114
115The most important use of this is to set the
116optimization/debugging flags. For instance, to compile with no
117debugging information at all, run configure as:
118
119 CFLAGS=-O2 ./configure           # Bourne compatible shells (sh/bash/zsh)
120
121or,
122
123 setenv CFLAGS -O2 ; ./configure  # csh and variants
124
125Native-Language Support and gettext()
126=====================================
127
128To provide native-language support (NLS) GTK+ uses the
129gettext() set of functions. These functions are found
130in the C library on many systems, such as the Solaris
131C library and the GNU C Library, version 2.
132
133If your C library does not provide the necessary functionality,
134you may wish to install the GNU gettext package. You'll
135need version 0.10.35 or better. Version 0.10.35 is
136available from ftp://alpha.gnu.org/pub/gnu
137
138Generally, GTK+ will properly detect what is installed
139on your system and enable or disable NLS as appropriate.
140However, in rare cases, it may be necessary to disable
141NLS manually to get GTK+ to compile. You can do this
142by specifying the --disable-nls flag when configuring
143GTK+.
144
145Using an uninstalled copy of GLIB [ Unsupported ]
146=================================================
147
148You can compile GTK+ against a copy of GLIB that you have not
149yet installed. To do this, give the --with-glib=DIR options
150to ./configure. For instance:
151
152 ./configure --with-glib=../glib-1.2.10
153
154This, however, will not work if you built GLIB with different
155source and build directories.
156
157It is recommended that you install GLIB before compiling
158GTK+. The --with-glib option is not regularly tested
159and may not function correctly. In addition,
160inter-library dependencies won't be generated when
161using --with-glib=.
162
163Installation directories
164========================
165
166The location of the installed files is determined by the --prefix
167and --exec-prefix options given to configure. There are also more
168detailed flags to control individual directories. However, the
169use of these flags is not tested.
170
171One particular detail to note, is that the architecture-dependent
172include file glibconfig.h is installed in:
173
174  $exec_pref/lib/glib/include/
175
176if you have a version in $prefix/include, this is out of date
177and should be deleted.
178
179A shell script gtk-config is created during the configure
180process, and installed in the bin/ directory
181($exec_prefix/bin). This is used to determine the location of GTK
182when building applications.  If you move GTK after installation,
183it will be necessary to edit this file.
184
185For complete details, see the file docs/gtk-config.txt
186
187
188Notes for using XIM support for Japanese input
189==============================================
190
191* There is a bug in older versions of kinput2 that will cause GTK+
192to hang when destroying a text entry. The latest versions of
193kinput is available from:
194
195  ftp://ftp.sra.co.jp/pub/x11/kinput2
196
197* The locale information file for the ja_JP EUC locale
198distributed with some recent versions of X11 specifies to use the
199C library multibyte functions. Unless your C library has support
200for Japanese locales, this is incorrect, and will cause problems
201for GTK's internationalization.
202
203(In particular, this occurs with GNU libc 2.0 in which
204the multibyte functions always translate to and from UTF-8; but
205the problem may occur for other C libraries, and other operating
206systems as well.)
207
208To fix this, change the line:
209
210use_stdc_env            True
211
212to
213
214use_stdc_env            False
215
216in the file /usr/X11R6/lib/X11/locale/ja_JP/XLC_LOCALE.
217
218
Note: See TracBrowser for help on using the repository browser.