source: trunk/third/glib/INSTALL @ 17066

Revision 17066, 2.7 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17065, which included commits to RCS files with non-trunk default branches.
Line 
1Simple install procedure
2========================
3
4  % gzip -cd glib-1.2.10.tar.gz | tar xvf -  # unpack the sources
5  % cd glib-1.2.10                           # 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
13Special note for GLib+-1.2.9
14============================
15
16Between GLib-1.2.8 and GLib-1.2.9, the include files for GLib
17have been moved to $(includedir)/gtk-1-2/ to allow parallel installations
18of GLib-1.2 and GLib-2.0 to work correctly. If you are installing
19on top of an old installation of GLib, you should remove the files:
20
21 $(includedir)/glib.h
22 $(includedir)/gmodule.h
23
24Before running 'make install'
25
26The Nitty-Gritty
27================
28
29The 'configure' script can be given a number of options to enable
30and disable various features. For a complete list, type:
31
32  ./configure --help
33
34A few of the more important ones:
35
36*  --prefix=PREFIX         install architecture-independent files in PREFIX
37                           [ Defaults to /usr/local ]
38
39*  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
40                           [ Defaults to the value given to --prefix ]
41
42Options can be given to the compiler and linker by setting
43environment variables before running configure. A few of the more
44important ones:
45
46 CC       : The C compiler to use
47 CPPFLAGS : Flags for the C preprocesser such as -I and -D
48 CFLAGS   : C compiler flags
49
50The most important use of this is to set the
51optimization/debugging flags. For instance, to compile with no
52debugging information at all, run configure as:
53
54 CFLAGS=-O2 ./configure           # Bourne compatible shells (sh/bash/zsh)
55
56or,
57
58 setenv CFLAGS -O2 ; ./configure  # csh and variants
59
60
61Installation directories
62========================
63
64The location of the installed files is determined by the --prefix
65and --exec-prefix options given to configure. There are also more
66detailed flags to control individual directories. However, the
67use of these flags is not tested.
68
69One particular detail to note, is that the architecture-dependent
70include file glibconfig.h is installed in:
71
72  $exec_pref/lib/glib/include/
73
74if you have a version in $prefix/include, this is out of date
75and should be deleted.
76
77A shell script glib-config is created during the configure
78process, and installed in the bin/ directory
79($exec_prefix/bin). This is used to determine the location of glib
80when building applications.  If you move glib after installation,
81it will be necessary to edit this file.
82
Note: See TracBrowser for help on using the repository browser.