• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Compiling: GStreamer Bad Plugins 1.0 Library Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Bad Plugins 1.0 Library Reference Manual">
8<link rel="up" href="gstreamer-plugins-bad.html" title="Part I. GStreamer Bad Plugins Libraries">
9<link rel="prev" href="gstreamer-plugins-bad.html" title="Part I. GStreamer Bad Plugins Libraries">
10<link rel="next" href="codecparsers.html" title="Bitstream parsing Library">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts"></td>
17<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18<td><a accesskey="u" href="gstreamer-plugins-bad.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19<td><a accesskey="p" href="gstreamer-plugins-bad.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20<td><a accesskey="n" href="codecparsers.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21</tr></table>
22<div class="refentry">
23<a name="compiling"></a><div class="titlepage"></div>
24<div class="refnamediv"><table width="100%"><tr>
25<td valign="top">
26<h2><span class="refentrytitle">Compiling</span></h2>
27<p>Compiling against the bad plugins libraries —
28How to compile against the bad plugins libraries
29</p>
30</td>
31<td class="gallery_image" valign="top" align="right"></td>
32</tr></table></div>
33<div class="refsect1">
34<a name="id-1.2.3.3"></a><h2>Compiling against the bad plugins libraries</h2>
35<p>
36To compile against these libraries, you need to tell the compiler where to
37find the header files and libraries. This is done with the
38<span class="application">pkg-config</span> utility.
39</p>
40<p>
41The following interactive shell session demonstrates how
42<span class="application">pkg-config</span> is used:
43</p>
44<pre class="programlisting">
45$ pkg-config --cflags gstreamer-plugins-bad-1.0
46-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
47$ pkg-config --libs gstreamer-plugins-bad-1.0
48-Wl,--export-dynamic -pthread -lgstreamer-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0
49</pre>
50<p>
51</p>
52<p>
53Note that, because of the number of libraries provided in this package,
54the pkg-config information <span class="emphasis"><em>does not add -l flags</em></span> itself
55to choose the libraries to link to.  You must add these yourself to select
56which of the libraries you want to use.
57</p>
58</div>
59</div>
60<div class="footer">
61<hr>Generated by GTK-Doc V1.28</div>
62</body>
63</html>