Fix: src.ctf.lttng-live: emitting stream end msg with no stream
[babeltrace.git] / doc / api / dox / includes-build.dox
CommitLineData
968e4792
PP
1/**
2@page includesbuild Include files and how to build
3
4@section includefiles Include files
5
6You can find all the Babeltrace library include files (C headers) in the
a8be4294 7\c babeltrace2 directory under the include files directory chosen when
968e4792
PP
8installing Babeltrace. By default, this is <code>/usr/include</code>.
9If you build Babeltrace from source without specifying an installation
10prefix, this is <code>/usr/local/include</code>.
11
12The documentation modules in \ref apiref always show which header file
13to include to use the documented functions and types.
14
15You can also use the "master" include file which provides everything,
16but which necessarily makes the compilation slower:
17
18@code
3fadfbc0 19#include <babeltrace2/babeltrace.h>
968e4792
PP
20@endcode
21
22@section howtobuild How to build
23
24Multiple types of applications can use the Babeltrace library:
25
a8be4294 26- A user plugin (shared object) to be loaded by the \c babeltrace2
968e4792
PP
27 converter program or by another application.
28- A user application or library which loads plugins to manually connect
29 existing components in a specific way.
30- A user application or library which creates its own component classes
31 and manually connects them.
32
a8be4294 33In any way, the only library to link to is `libbabeltrace2`.
968e4792
PP
34
35@subsection howtobuildplugin Build a plugin
36
37To build a user plugin:
38
39<ol>
40 <li>Compile the source files which form your plugin:
41
42@verbatim
43cc -c -fpic my-plugin.c
44@endverbatim
45 </li>
46
47 <li>Create the plugin shared object:
48
49@verbatim
a8be4294 50cc -shared my-plugin.o -lbabeltrace2 -o my-plugin.so
968e4792
PP
51@endverbatim
52 </li>
53</ol>
54
55@subsection howtobuildapp Build an application
56
57To build an application which uses the Babeltrace library:
58
59<ol>
60 <li>Compile the source files which form your application:
61
62@verbatim
63cc -c my-app.c
64@endverbatim
65 </li>
66
67 <li>Create the executable application:
68
69@verbatim
a8be4294 70cc my-app.o -lbabeltrace2 -o my-app
968e4792
PP
71@endverbatim
72 </li>
73</ol>
74*/
This page took 0.056199 seconds and 4 git commands to generate.