update the website url
[gmidimonitor.git] / INSTALL
blob3d10d0dfc5c18e67c279927dcc4f80c04469babd
1 Quick instructions: ./configure && make && sudo make install
3 You need:
5   1. Build tools
6      1.1 compiler + linker
7          Known to work with gcc 3.4.3 and binutils 2.15.94.0.2.2
8          You can get gcc from http://www.gnu.org/software/gcc/
9          You can get binutils from http://www.gnu.org/software/binutils/
10      1.2 GNU Make
11          Known to work with GNU Make 3.80
12          You can get it from http://www.gnu.org/software/make/
13      1.3 pkg-config
14          Known to work with pkg-config 0.19
15          You can get it from http://pkgconfig.freedesktop.org/wiki/
17   2. Libraries
18      2.1 GTK+ >= 2.6 (required)
19          Known to work with GTK+ 2.8.6
20          You can get it from http://www.gtk.org/
21      2.2 libglade >= 2.0 (required)
22          Known to work with libglade 2.5.1
23          You can get it from http://www.jamesh.id.au/software/libglade/
24      2.3 JACK with MIDI support, i.e. >= 0.102.20 (optional)
25          You can get it from http://jackaudio.org/
26      2.4 ALSA library (optional)
27          Known to work with alsa-lib 1.0.9
28          You can get it from http://www.alsa-project.org/
29      2.4 LASH (optional)
30          Known to work with lash 0.5.0
31          You can get it from http://www.nongnu.org/lash/
33 To configure gmidimonitor execute the configure script:
35     # ./configure
37 Non-standard options are:
38   --disable-alsamidi      Force disable ALSA MIDI support [default=no]
39   --disable-jackmidi      Force disable JACK MIDI support [default=no]
40   --disable-lash          Force disable LASH support [default=no]
42 To build gmidimonitor simply run GNU make without parameters:
44     # make
46 If you are running BSD, GNU make may be called gmake, so you run it like this:
48     # gmake
50 Now install it (you may need to be root to do this):
52     # make install
54 Good luck and report bugs so they can get fixed.
56 ===================================================
57 These are the generic installation instructions.
59 Installation Instructions
60 *************************
62 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
63 2006 Free Software Foundation, Inc.
65 This file is free documentation; the Free Software Foundation gives
66 unlimited permission to copy, distribute and modify it.
68 Basic Installation
69 ==================
71 Briefly, the shell commands `./configure; make; make install' should
72 configure, build, and install this package.  The following
73 more-detailed instructions are generic; see the `README' file for
74 instructions specific to this package.
76    The `configure' shell script attempts to guess correct values for
77 various system-dependent variables used during compilation.  It uses
78 those values to create a `Makefile' in each directory of the package.
79 It may also create one or more `.h' files containing system-dependent
80 definitions.  Finally, it creates a shell script `config.status' that
81 you can run in the future to recreate the current configuration, and a
82 file `config.log' containing compiler output (useful mainly for
83 debugging `configure').
85    It can also use an optional file (typically called `config.cache'
86 and enabled with `--cache-file=config.cache' or simply `-C') that saves
87 the results of its tests to speed up reconfiguring.  Caching is
88 disabled by default to prevent problems with accidental use of stale
89 cache files.
91    If you need to do unusual things to compile the package, please try
92 to figure out how `configure' could check whether to do them, and mail
93 diffs or instructions to the address given in the `README' so they can
94 be considered for the next release.  If you are using the cache, and at
95 some point `config.cache' contains results you don't want to keep, you
96 may remove or edit it.
98    The file `configure.ac' (or `configure.in') is used to create
99 `configure' by a program called `autoconf'.  You need `configure.ac' if
100 you want to change it or regenerate `configure' using a newer version
101 of `autoconf'.
103 The simplest way to compile this package is:
105   1. `cd' to the directory containing the package's source code and type
106      `./configure' to configure the package for your system.
108      Running `configure' might take a while.  While running, it prints
109      some messages telling which features it is checking for.
111   2. Type `make' to compile the package.
113   3. Optionally, type `make check' to run any self-tests that come with
114      the package.
116   4. Type `make install' to install the programs and any data files and
117      documentation.
119   5. You can remove the program binaries and object files from the
120      source code directory by typing `make clean'.  To also remove the
121      files that `configure' created (so you can compile the package for
122      a different kind of computer), type `make distclean'.  There is
123      also a `make maintainer-clean' target, but that is intended mainly
124      for the package's developers.  If you use it, you may have to get
125      all sorts of other programs in order to regenerate files that came
126      with the distribution.
128 Compilers and Options
129 =====================
131 Some systems require unusual options for compilation or linking that the
132 `configure' script does not know about.  Run `./configure --help' for
133 details on some of the pertinent environment variables.
135    You can give `configure' initial values for configuration parameters
136 by setting variables in the command line or in the environment.  Here
137 is an example:
139      ./configure CC=c99 CFLAGS=-g LIBS=-lposix
141    *Note Defining Variables::, for more details.
143 Compiling For Multiple Architectures
144 ====================================
146 You can compile the package for more than one kind of computer at the
147 same time, by placing the object files for each architecture in their
148 own directory.  To do this, you can use GNU `make'.  `cd' to the
149 directory where you want the object files and executables to go and run
150 the `configure' script.  `configure' automatically checks for the
151 source code in the directory that `configure' is in and in `..'.
153    With a non-GNU `make', it is safer to compile the package for one
154 architecture at a time in the source code directory.  After you have
155 installed the package for one architecture, use `make distclean' before
156 reconfiguring for another architecture.
158 Installation Names
159 ==================
161 By default, `make install' installs the package's commands under
162 `/usr/local/bin', include files under `/usr/local/include', etc.  You
163 can specify an installation prefix other than `/usr/local' by giving
164 `configure' the option `--prefix=PREFIX'.
166    You can specify separate installation prefixes for
167 architecture-specific files and architecture-independent files.  If you
168 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
169 PREFIX as the prefix for installing programs and libraries.
170 Documentation and other data files still use the regular prefix.
172    In addition, if you use an unusual directory layout you can give
173 options like `--bindir=DIR' to specify different values for particular
174 kinds of files.  Run `configure --help' for a list of the directories
175 you can set and what kinds of files go in them.
177    If the package supports it, you can cause programs to be installed
178 with an extra prefix or suffix on their names by giving `configure' the
179 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
181 Optional Features
182 =================
184 Some packages pay attention to `--enable-FEATURE' options to
185 `configure', where FEATURE indicates an optional part of the package.
186 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
187 is something like `gnu-as' or `x' (for the X Window System).  The
188 `README' should mention any `--enable-' and `--with-' options that the
189 package recognizes.
191    For packages that use the X Window System, `configure' can usually
192 find the X include and library files automatically, but if it doesn't,
193 you can use the `configure' options `--x-includes=DIR' and
194 `--x-libraries=DIR' to specify their locations.
196 Specifying the System Type
197 ==========================
199 There may be some features `configure' cannot figure out automatically,
200 but needs to determine by the type of machine the package will run on.
201 Usually, assuming the package is built to be run on the _same_
202 architectures, `configure' can figure that out, but if it prints a
203 message saying it cannot guess the machine type, give it the
204 `--build=TYPE' option.  TYPE can either be a short name for the system
205 type, such as `sun4', or a canonical name which has the form:
207      CPU-COMPANY-SYSTEM
209 where SYSTEM can have one of these forms:
211      OS KERNEL-OS
213    See the file `config.sub' for the possible values of each field.  If
214 `config.sub' isn't included in this package, then this package doesn't
215 need to know the machine type.
217    If you are _building_ compiler tools for cross-compiling, you should
218 use the option `--target=TYPE' to select the type of system they will
219 produce code for.
221    If you want to _use_ a cross compiler, that generates code for a
222 platform different from the build platform, you should specify the
223 "host" platform (i.e., that on which the generated programs will
224 eventually be run) with `--host=TYPE'.
226 Sharing Defaults
227 ================
229 If you want to set default values for `configure' scripts to share, you
230 can create a site shell script called `config.site' that gives default
231 values for variables like `CC', `cache_file', and `prefix'.
232 `configure' looks for `PREFIX/share/config.site' if it exists, then
233 `PREFIX/etc/config.site' if it exists.  Or, you can set the
234 `CONFIG_SITE' environment variable to the location of the site script.
235 A warning: not all `configure' scripts look for a site script.
237 Defining Variables
238 ==================
240 Variables not defined in a site shell script can be set in the
241 environment passed to `configure'.  However, some packages may run
242 configure again during the build, and the customized values of these
243 variables may be lost.  In order to avoid this problem, you should set
244 them in the `configure' command line, using `VAR=value'.  For example:
246      ./configure CC=/usr/local2/bin/gcc
248 causes the specified `gcc' to be used as the C compiler (unless it is
249 overridden in the site shell script).
251 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
252 an Autoconf bug.  Until the bug is fixed you can use this workaround:
254      CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
256 `configure' Invocation
257 ======================
259 `configure' recognizes the following options to control how it operates.
261 `--help'
262 `-h'
263      Print a summary of the options to `configure', and exit.
265 `--version'
266 `-V'
267      Print the version of Autoconf used to generate the `configure'
268      script, and exit.
270 `--cache-file=FILE'
271      Enable the cache: use and save the results of the tests in FILE,
272      traditionally `config.cache'.  FILE defaults to `/dev/null' to
273      disable caching.
275 `--config-cache'
276 `-C'
277      Alias for `--cache-file=config.cache'.
279 `--quiet'
280 `--silent'
281 `-q'
282      Do not print messages saying which checks are being made.  To
283      suppress all normal output, redirect it to `/dev/null' (any error
284      messages will still be shown).
286 `--srcdir=DIR'
287      Look for the package's source code in directory DIR.  Usually
288      `configure' can determine that directory automatically.
290 `configure' also accepts some other, not widely useful, options.  Run
291 `configure --help' for more details.