blob: e6f8662bdd84c7f149af63e011cdaf06b7d8708d [file] [log] [blame]
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"" [
<!ENTITY % version-entities SYSTEM "version.entities">
<refentry id="compiling" revision="17 Jan 2002">
<refmiscinfo>GStreamer-Bad Library</refmiscinfo>
<refname>Compiling against the bad plugins libraries</refname>
How to compile against the bad plugins libraries
<title>Compiling against the bad plugins libraries</title>
To compile against these libraries, you need to tell the compiler where to
find the header files and libraries. This is done with the
<application>pkg-config</application> utility.
The following interactive shell session demonstrates how
<application>pkg-config</application> is used:
$ pkg-config --cflags gstreamer-plugins-bad-&GST_API_VERSION;
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-&GST_API_VERSION; -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
$ pkg-config --libs gstreamer-plugins-bad-&GST_API_VERSION;
-Wl,--export-dynamic -pthread -lgstreamer-&GST_API_VERSION; -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0
Note that, because of the number of libraries provided in this package,
the pkg-config information <emphasis>does not add -l flags</emphasis> itself
to choose the libraries to link to. You must add these yourself to select
which of the libraries you want to use.