-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
70 lines (43 loc) · 1.69 KB
/
INSTALL
File metadata and controls
70 lines (43 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
INSTALLATION GUIDE
==================
Quick guide
-----------
Run bootstrap scripts:
libtoolize; aclocal; automake --add-missing; autoconf
Run conventional build/install scripts:
./configure
make
sudo make install
Detailed guide
--------------
0.) Bootstrapping
Repository does not contain generated files (e.g., configure script,
Makefile, etc.). The only hand-written files that control the build and
install process are configure.ac and Makefile.am. The bootstrap script
are responsible for generating the files required by configure/make build
process.
I.) configure
Configuration can be customized with environment variables or with
configuration options.
By setting CXXFLAGS we can override compilation with debug information
(with or without -g flag), we can set optimization level (-O0 .. -O3),
etc.
To display the complete list of available options run
./configure --help
Example #1:
If we want to build only dynamic libraries without debug information at
optimization level 3 and to install them into a given location:
CXXFLAGS="-O3 -W -Wall" ./configure --disable-static --prefix=/home/user1/local
II.) make
With the make command we can compile the source and link the object files. The inverted command of make is
make clean
which removes build executables, libs and object files. By invoking
make distclean
we can also remove files created by the configure script.
III.) make install
The default prefix is /usr/local. Copying files into /usr/local usually
requires root privileges. If we set prefix to a location where we have
write permission, we do not have to sudo the command.
Inverted command of make install is
make uninstall
which removes installed binaries, libs and headers.