forked from rncbc/qjackctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.cmake
77 lines (55 loc) · 2.8 KB
/
README.cmake
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
What is CMake?
==============
CMake is a cross platform build system, that can be used to replace the old
auto-tools, providing a nice building environment and advanced features.
Some of these features are:
* Out of sources build: CMake allows you to build your software into a directory
different to the source tree. You can safely delete the build directory and
all its contents once you are done.
* Multiple generators: classic makefiles can be generated for Unix and MinGW,
but also Visual Studio, XCode and Eclipse CDT projects among other types.
* Graphic front-ends for configuration and build options.
More information and documentation is available at the CMake project site:
http://www.cmake.org
CMake is free software. You can get the sources and pre-compiled packages for
Linux and other systems at:
http://www.cmake.org/cmake/resources/software.html
How to use it?
==============
1. You need CMake 3.10 or newer to build QjackCtl
2. Unpack the QjackCtl sources somewhere, or checkout the repository,
and create a build directory. For instance, using a command line shell:
$ tar -xvzf Downloads/qjackctl-x.y.z.tar.gz
$ cd qjackctl-x.y.z
$ mkdir build
2. Execute CMake from the build directory, providing the source directory
location and optionally, the build options. There are several ways.
* From a command line shell:
$ pwd
qjackctl-x.y.z
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=debug ..
3. Execute the build command. If you used the Makefiles generator (the default
in Linux and other Unix systems) then execute make, gmake, or mingw32-make.
If you generated a project file, use your IDE to build it.
Compiling with make
===================
There are many targets available. To see a complete list of them, type:
$ make help
The build process usually hides the compiler command lines, to show them:
$ make VERBOSE=1
There is a "clean" target, but not a "distclean" one. You should use a build
directory different to the source tree. In this case, the "distclean" target
would be equivalent to simply removing the build directory.
If something fails
==================
If there is an error message while executing CMake, this probably means that a
required package is missing in your system. You should install the missing
component and run CMake again.
If there is an error executing the build process, after running a flawless CMake
configuration process, this means that there may be an error in the source code,
or in the build system, or something incompatible in 3rd party libraries.
The CMake build system for QjackCtl is experimental. It will take a while
until it becomes stable and fully tested. You can help providing feedback,
please send a report containing your problems to the QjackCtl development
mailing list, https://lists.sourceforge.net/mailman/listinfo/qjackctl-devel