Blame INSTALL

Packit Service d3d246
Simple install procedure
Packit Service d3d246
========================
Packit Service d3d246
Packit Service d3d246
  % tar xf glib-2.56.4.tar.gz       # unpack the sources
Packit Service d3d246
  % cd glib-2.56.4                  # change to the toplevel directory
Packit Service d3d246
  % ./configure                             # run the `configure' script
Packit Service d3d246
  % make                                    # build GLIB
Packit Service d3d246
Packit Service d3d246
  [ Become root if necessary ]
Packit Service d3d246
  % rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h
Packit Service d3d246
  % make install                            # install GLIB
Packit Service d3d246
Packit Service d3d246
Requirements
Packit Service d3d246
============
Packit Service d3d246
Packit Service d3d246
GLib requires a C90-compliant (but not necessarily C99-compliant) C
Packit Service d3d246
compiler and libc. On UNIX-like systems, it also assumes compliance
Packit Service d3d246
with at least the original 1990 version of POSIX.
Packit Service d3d246
Packit Service d3d246
GLib-2.0 requires pkg-config, which is tool for tracking the
Packit Service d3d246
compilation flags needed for libraries. (For each library, a small .pc
Packit Service d3d246
text file is installed in a standard location that contains the
Packit Service d3d246
compilation flags needed for that library along with version number
Packit Service d3d246
information.) Information about pkg-config can be found at:
Packit Service d3d246
Packit Service d3d246
  http://www.freedesktop.org/software/pkgconfig/
Packit Service d3d246
Packit Service d3d246
GNU make (http://www.gnu.org/software/make) is also required.
Packit Service d3d246
Packit Service d3d246
In order to implement conversions between character sets,
Packit Service d3d246
GLib requires an implementation of the standard iconv() routine.
Packit Service d3d246
Most modern systems will have a suitable implementation, however
Packit Service d3d246
many older systems lack an iconv() implementation. On such systems,
Packit Service d3d246
you must install the libiconv library. This can be found at:
Packit Service d3d246
Packit Service d3d246
 http://www.gnu.org/software/libiconv/
Packit Service d3d246
Packit Service d3d246
If your system has an iconv implementation but you want to use
Packit Service d3d246
libiconv instead, you can pass the --with-libiconv option to
Packit Service d3d246
configure. This forces libiconv to be used.
Packit Service d3d246
Packit Service d3d246
Note that if you have libiconv installed in your default include
Packit Service d3d246
search path (for instance, in /usr/local/), but don't enable
Packit Service d3d246
it, you will get an error while compiling GLib because the
Packit Service d3d246
iconv.h that libiconv installs hides the system iconv.
Packit Service d3d246
Packit Service d3d246
If you are using the native iconv implementation on Solaris
Packit Service d3d246
instead of libiconv, you'll need to make sure that you have
Packit Service d3d246
the converters between locale encodings and UTF-8 installed.
Packit Service d3d246
At a minimum you'll need the SUNWuiu8 package. You probably
Packit Service d3d246
should also install the SUNWciu8, SUNWhiu8, SUNWjiu8, and
Packit Service d3d246
SUNWkiu8 packages.
Packit Service d3d246
Packit Service d3d246
The native iconv on Compaq Tru64 doesn't contain support for
Packit Service d3d246
UTF-8, so you'll need to use GNU libiconv instead. (When
Packit Service d3d246
using GNU libiconv for GLib, you'll need to use GNU libiconv
Packit Service d3d246
for GNU gettext as well.) This probably applies to related
Packit Service d3d246
operating systems as well.
Packit Service d3d246
Packit Service d3d246
Finally, for message catalog handling, GLib requires an implementation
Packit Service d3d246
of gettext(). If your system doesn't provide this functionality,
Packit Service d3d246
you should use the libintl library from the GNU gettext package,
Packit Service d3d246
available from:
Packit Service d3d246
Packit Service d3d246
 http://www.gnu.org/software/gettext/
Packit Service d3d246
Packit Service d3d246
Support for extended attributes and SELinux in GIO requires
Packit Service d3d246
libattr and libselinux.
Packit Service d3d246
Packit Service d3d246
Some of the mimetype-related functionality in GIO requires the
Packit Service d3d246
update-mime-database and update-desktop-database utilities, which
Packit Service d3d246
are part of shared-mime-info and desktop-file-utils, respectively.
Packit Service d3d246
Packit Service d3d246
GObject uses libffi to implement generic marshalling functionality.
Packit Service d3d246
Packit Service d3d246
The Nitty-Gritty
Packit Service d3d246
================
Packit Service d3d246
Packit Service d3d246
Complete information about installing GLib can be found
Packit Service d3d246
in the file:
Packit Service d3d246
Packit Service d3d246
 docs/reference/glib/html/glib-building.html
Packit Service d3d246
Packit Service d3d246
Or online at:
Packit Service d3d246
Packit Service d3d246
 https://developer.gnome.org/glib/stable/glib-building.html
Packit Service d3d246
Packit Service d3d246
Packit Service d3d246
Installation directories
Packit Service d3d246
========================
Packit Service d3d246
Packit Service d3d246
The location of the installed files is determined by the --prefix
Packit Service d3d246
and --exec-prefix options given to configure. There are also more
Packit Service d3d246
detailed flags to control individual directories. However, the
Packit Service d3d246
use of these flags is not tested.
Packit Service d3d246
Packit Service d3d246
One particular detail to note, is that the architecture-dependent
Packit Service d3d246
include file glibconfig.h is installed in:
Packit Service d3d246
Packit Service d3d246
  $exec_prefix/lib/glib/include/
Packit Service d3d246
Packit Service d3d246
if you have a version in $prefix/include, this is out of date
Packit Service d3d246
and should be deleted.
Packit Service d3d246
Packit Service d3d246
.pc files for the various libraries are installed in
Packit Service d3d246
$exec_prefix/lib/pkgconfig to provide information when compiling
Packit Service d3d246
other packages that depend on GLib. If you set PKG_CONFIG_PATH
Packit Service d3d246
so that it points to this directory, then you can get the
Packit Service d3d246
correct include flags and library flags for compiling a GLib
Packit Service d3d246
application with:
Packit Service d3d246
Packit Service d3d246
 pkg-config --cflags glib-2.0
Packit Service d3d246
 pkg-config --libs glib-2.0
Packit Service d3d246
Packit Service d3d246
Packit Service d3d246
Cross-compiling GLib
Packit Service d3d246
====================
Packit Service d3d246
Packit Service d3d246
Information about cross-compilation of GLib can be found
Packit Service d3d246
in the file:
Packit Service d3d246
Packit Service d3d246
 docs/reference/glib/html/glib-cross-compiling.html
Packit Service d3d246
Packit Service d3d246
Or online at:
Packit Service d3d246
Packit Service d3d246
 https://developer.gnome.org/glib/stable/glib-cross-compiling.html