2005-06-30 14:42:38 +00:00
|
|
|
<refentry id="compiling" revision="17 Jan 2002">
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>Compiling</refentrytitle>
|
|
|
|
<manvolnum>3</manvolnum>
|
2005-09-20 20:47:55 +00:00
|
|
|
<refmiscinfo>GStreamer-Base Library</refmiscinfo>
|
2005-06-30 14:42:38 +00:00
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>Compiling against the base plugins libraries</refname>
|
|
|
|
<refpurpose>
|
|
|
|
How to compile against the base plugins libraries
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Compiling against the base plugins libraries</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The following interactive shell session demonstrates how
|
|
|
|
<application>pkg-config</application> is used:
|
|
|
|
<programlisting>
|
2006-02-05 17:15:17 +00:00
|
|
|
$ pkg-config --cflags gstreamer-plugins-base-&GST_MAJORMINOR;
|
2005-06-30 14:42:38 +00:00
|
|
|
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-&GST_MAJORMINOR; -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
|
|
|
|
$ pkg-config --libs gstreamer-plugins-base-&GST_MAJORMINOR;
|
|
|
|
-Wl,--export-dynamic -pthread -lgstreamer-&GST_MAJORMINOR; -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
</refentry>
|