Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 124 lines (86 sloc) 4.314 kb
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
1 Simple install procedure
2 ========================
3
4 % gzip -cd glib-@GLIB_VERSION@.tar.gz | tar xvf - # unpack the sources
5 % cd glib-@GLIB_VERSION@ # change to the toplevel directory
6 % ./configure # run the `configure' script
7 % make # build GLIB
8
9 [ Become root if necessary ]
10 % rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h
11 % make install # install GLIB
12
13 Requirements
14 ============
15
dac2552 Updates.
Owen Taylor authored
16 GLib-2.0 requires pkg-config, which is tool for tracking the
17 compilation flags needed for libraries. (For each library, a small .pc
18 text file is installed in a standard location that contains the
19 compilation flags needed for that library along with version number
20 information.) Information about pkg-config can be found at:
21
22 http://www.freedesktop.org/software/pkgconfig/
23
24 GNU make (http://www.gnu.org/software/make) is also recommended.
25
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
26 In order to implement conversions between character sets,
27 GLib requires an implementation of the standard iconv() routine.
28 Most modern systems will have a suitable implementation, however
82a5f78 Update requirements
Matthias Clasen authored
29 many older systems lack an iconv() implementation. On such systems,
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
30 you must install the libiconv library. This can be found at:
31
dac2552 Updates.
Owen Taylor authored
32 http://www.gnu.org/software/libiconv/
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
33
34 If your system has an iconv implementation but you want to use
35 libiconv instead, you can pass the --with-libiconv option to
82a5f78 Update requirements
Matthias Clasen authored
36 configure. This forces libiconv to be used.
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
37
38 Note that if you have libiconv installed in your default include
39 search path (for instance, in /usr/local/), but don't enable
754d18b Move install docs into reference manual.
Matthias Clasen authored
40 it, you will get an error while compiling GLib because the
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
41 iconv.h that libiconv installs hides the system iconv.
42
71e5efb Remove notes about now-fixed-bugs.
Owen Taylor authored
43 If you are using the native iconv implementation on Solaris
82a5f78 Update requirements
Matthias Clasen authored
44 instead of libiconv, you'll need to make sure that you have
71e5efb Remove notes about now-fixed-bugs.
Owen Taylor authored
45 the converters between locale encodings and UTF-8 installed.
46 At a minimum you'll need the SUNWuiu8 package. You probably
47 should also install the SUNWciu8, SUNWhiu8, SUNWjiu8, and
48 SUNWkiu8 packages.
49
23b21c2 Add a note about the deficiency of Tru64 iconv. (#81699, Manuel Op de
Owen Taylor authored
50 The native iconv on Compaq Tru64 doesn't contain support for
51 UTF-8, so you'll need to use GNU libiconv instead. (When
754d18b Move install docs into reference manual.
Matthias Clasen authored
52 using GNU libiconv for GLib, you'll need to use GNU libiconv
23b21c2 Add a note about the deficiency of Tru64 iconv. (#81699, Manuel Op de
Owen Taylor authored
53 for GNU gettext as well.) This probably applies to related
54 operating systems as well.
55
754d18b Move install docs into reference manual.
Matthias Clasen authored
56 Finally, for message catalog handling, GLib requires an implementation
dac2552 Updates.
Owen Taylor authored
57 of gettext(). If your system doesn't provide this functionality,
58 you should use the libintl library from the GNU gettext package,
59 available from:
60
61 http://www.gnu.org/software/gettext/
62
dbc8cd8 Document new dependencies
Matthias Clasen authored
63
64 Support for extended attributes and SELinux in GIO requires
82a5f78 Update requirements
Matthias Clasen authored
65 libattr and libselinux.
66
67 Some of the mimetype-related functionality in GIO requires the
68 update-mime-database and update-desktop-database utilities, which
69 are part of shared-mime-info and desktop-file-utils, respectively.
dbc8cd8 Document new dependencies
Matthias Clasen authored
70
9bcf89c Document libffi as new dependency
Matthias Clasen authored
71 GObject uses libffi to implement generic marshalling functionality.
dbc8cd8 Document new dependencies
Matthias Clasen authored
72
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
73 The Nitty-Gritty
74 ================
75
82a5f78 Update requirements
Matthias Clasen authored
76 Complete information about installing GLib can be found
754d18b Move install docs into reference manual.
Matthias Clasen authored
77 in the file:
82a5f78 Update requirements
Matthias Clasen authored
78
754d18b Move install docs into reference manual.
Matthias Clasen authored
79 docs/reference/glib/html/glib-building.html
82a5f78 Update requirements
Matthias Clasen authored
80
754d18b Move install docs into reference manual.
Matthias Clasen authored
81 Or online at:
82a5f78 Update requirements
Matthias Clasen authored
82
010913c @jjardon docs: Update the URL of some documentation links
jjardon authored
83 http://library.gnome.org/devel/glib/stable/glib-building.html
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
84
85
86 Installation directories
87 ========================
88
89 The location of the installed files is determined by the --prefix
90 and --exec-prefix options given to configure. There are also more
91 detailed flags to control individual directories. However, the
92 use of these flags is not tested.
93
94 One particular detail to note, is that the architecture-dependent
95 include file glibconfig.h is installed in:
96
dac2552 Updates.
Owen Taylor authored
97 $exec_prefix/lib/glib/include/
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
98
99 if you have a version in $prefix/include, this is out of date
100 and should be deleted.
101
82a5f78 Update requirements
Matthias Clasen authored
102 .pc files for the various libraries are installed in
dac2552 Updates.
Owen Taylor authored
103 $exec_prefix/lib/pkgconfig to provide information when compiling
754d18b Move install docs into reference manual.
Matthias Clasen authored
104 other packages that depend on GLib. If you set PKG_CONFIG_PATH
82a5f78 Update requirements
Matthias Clasen authored
105 so that it points to this directory, then you can get the
dac2552 Updates.
Owen Taylor authored
106 correct include flags and library flags for compiling a GLib
107 application with:
108
109 pkg-config --cflags glib-2.0
110 pkg-config --libs glib-2.0
5256898 Remove warnings about conflicts with the stable version.
Owen Taylor authored
111
7eafb23 === Released 2.2.0 ===
Owen Taylor authored
112
113 Cross-compiling GLib
114 ====================
115
82a5f78 Update requirements
Matthias Clasen authored
116 Information about cross-compilation of GLib can be found
754d18b Move install docs into reference manual.
Matthias Clasen authored
117 in the file:
82a5f78 Update requirements
Matthias Clasen authored
118
754d18b Move install docs into reference manual.
Matthias Clasen authored
119 docs/reference/glib/html/glib-cross-compiling.html
82a5f78 Update requirements
Matthias Clasen authored
120
754d18b Move install docs into reference manual.
Matthias Clasen authored
121 Or online at:
82a5f78 Update requirements
Matthias Clasen authored
122
123 http://library.gnome.org/devel/glib/stable/glib-cross-compiling.html
Something went wrong with that request. Please try again.