Blame docs/libs/compiling.sgml

Packit 971217
Packit 971217
Packit 971217
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
Packit 971217
Packit 971217
%version-entities;
Packit 971217
]>
Packit 971217
<refentry id="compiling" revision="17 Jan 2002">
Packit 971217
<refmeta>
Packit 971217
<refentrytitle>Compiling</refentrytitle>
Packit 971217
<manvolnum>3</manvolnum>
Packit 971217
<refmiscinfo>GStreamer-Base Library</refmiscinfo>
Packit 971217
</refmeta>
Packit 971217
Packit 971217
<refnamediv>
Packit 971217
<refname>Compiling against the base plugins libraries</refname>
Packit 971217
<refpurpose>
Packit 971217
How to compile against the base plugins libraries
Packit 971217
</refpurpose>
Packit 971217
</refnamediv>
Packit 971217
Packit 971217
<refsect1>
Packit 971217
<title>Compiling against the base plugins libraries</title>
Packit 971217
Packit 971217
<para>
Packit 971217
To compile against these libraries, you need to tell the compiler where to 
Packit 971217
find the header files and libraries. This is done with the
Packit 971217
<application>pkg-config</application> utility.
Packit 971217
</para>
Packit 971217
<para>
Packit 971217
The following interactive shell session demonstrates how
Packit 971217
<application>pkg-config</application> is used:
Packit 971217
<programlisting>
Packit 971217
$ pkg-config --cflags gstreamer-plugins-base-&GST_API_VERSION;
Packit 971217
-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
Packit 971217
$ pkg-config --libs gstreamer-plugins-base-&GST_API_VERSION;
Packit 971217
-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
Packit 971217
</programlisting>
Packit 971217
</para>
Packit 971217
Packit 971217
<para>
Packit 971217
Note that, because of the number of libraries provided in this package,
Packit 971217
the pkg-config information <emphasis>does not add -l flags</emphasis> itself
Packit 971217
to choose the libraries to link to.  You must add these yourself to select
Packit 971217
which of the libraries you want to use.
Packit 971217
</para>
Packit 971217
</refsect1>
Packit 971217
Packit 971217
</refentry>