[go: up one dir, main page]

File: INSTALL

package info (click to toggle)
kmetronome 0.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 828 kB
  • ctags: 453
  • sloc: cpp: 3,114; sh: 18; xml: 18; makefile: 5
file content (99 lines) | stat: -rw-r--r-- 2,737 bytes parent folder | download | duplicates (2)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
You will need CMake 2.6.0 or newer.  If your Linux distribution
doesn't provide CMake, or if it provides an older version, you can get
it here:

    http://www.cmake.org/cmake/resources/software.html

There are ready to use binary packages available for Linux from
that page.  If you must build it from source, please read the instructions
supplied here:

    http://www.cmake.org/cmake/help/install.html
    
This program needs the Drumstick libraries. You should install the development
package before trying to compile KMetronome. You can alternatively build
KMetronome statically linked to Drumstick, see the advanced build options.

Drumstick is available here:

    http://drumstick.sourceforge.net 
    
Building with CMake
-------------------

Unpack the tarball or check out CVS.  Assuming that you have the
source in ~/src/kmetronome, you need to change to that directory:

$ cd ~/src/kmetronome

Create a build directory, and change to it

$ mkdir build
$ cd build

Now run CMake to generate the build files.

$ cmake ..

Finally, run make, and then (sudo) make install, and you're done.

$ make
$ sudo make install

To uninstall, use:

$ sudo make uninstall

Advanced Build Options
----------------------

By default, make will output brief details of each build step.  If you
prefer to see full command lines, use:

$ make VERBOSE=1

Another option, useful for packagers, is setting DESTDIR at install
time. The DESTDIR directory will be prepended to the prefix when
copying the files:

$ make install DESTDIR=~/rpmroot

Some variables you may want to set:

    * CMAKE_INSTALL_PREFIX:
      cmake .. -DCMAKE_INSTALL_PREFIX=/opt/kde4 is the equivalent to
      "configure --prefix=/opt/kde4" for programs using autotools

    * there are some extra options available:  
    STATIC_DRUMSTICK  Statically linked Drumstick (default OFF)
    ENABLE_PCH        Use precompiled headers (default OFF)

The above options can take any of the following values: 0, 1, OFF, ON,
TRUE, FALSE, YES, NO (case insensitive). For example:

$ cmake .. -DENABLE_PCH=YES -DCMAKE_INSTALL_PREFIX=/usr

Look to the configure.release and configure.debug for more examples. 
If you prefer to avoid all this typing, you can use ccmake to view and change 
these options using a friendly curses-based interface:

$ ccmake ..

There is a GUI equivalent:

$ cmake-gui ..

Dealing with Configuration Problems
-----------------------------------

First, look for an answer in CMake FAQ:

    http://www.cmake.org/Wiki/CMake_FAQ

You may want to read the documentation at:

    http://www.cmake.org/cmake/help/cmake2.6docs.html

If you can't solve your problem, open a request for support at the project site:

    http://sourceforge.net/projects/kmetronome/