mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
Fix pkg-config module name suffixes (-0.7). Closes #116089
Original commit message from CVS: Fix pkg-config module name suffixes (-0.7). Closes #116089
This commit is contained in:
parent
491741f564
commit
c3191fba3e
4 changed files with 7 additions and 7 deletions
|
@ -20,12 +20,12 @@ If you're not familiar with pkg-config to compile and link a small
|
|||
one-file program, pass the --cflags and --libs arguments to pkg-config.
|
||||
For example:
|
||||
<programlisting>
|
||||
$ gcc `pkg-config --cflags --libs gstreamer` -o myprog myprog.c
|
||||
$ gcc `pkg-config --cflags --libs gstreamer-0.7` -o myprog myprog.c
|
||||
</programlisting>
|
||||
would be sufficient for a gstreamer-only program.
|
||||
If (for example) your app also used GTK+ 2.0, you could use
|
||||
<programlisting>
|
||||
$ gcc `pkg-config --cflags --libs gstreamer gtk+-2.0` -o myprog myprog.c
|
||||
$ gcc `pkg-config --cflags --libs gstreamer-0.7 gtk+-2.0` -o myprog myprog.c
|
||||
</programlisting>
|
||||
Those are back-ticks (on the same key with the tilde on US keyboards),
|
||||
not single quotes.
|
||||
|
@ -107,13 +107,13 @@ to use the gstgconf library. It provides functions to parse the GConf key
|
|||
to a usable pipeline.
|
||||
</para>
|
||||
<para>
|
||||
To link against gstgconf, use pkg-config to query the gstreamer-libs.pc file
|
||||
To link against gstgconf, use pkg-config to query the gstreamer-libs-0.7.pc file
|
||||
for link flags, and add -lgstgconf to the link flags.
|
||||
This fragment of configure.ac shows how to use pkg-config to get the LIBS:
|
||||
</para>
|
||||
<programlisting>
|
||||
dnl check for GStreamer helper libs
|
||||
PKG_CHECK_MODULES(GST_HELPLIBS, gstreamer-libs >= $GSTREAMER_REQ,,exit)
|
||||
PKG_CHECK_MODULES(GST_HELPLIBS, gstreamer-libs-0.7 >= $GSTREAMER_REQ,,exit)
|
||||
AC_SUBST(GST_HELPLIBS_LIBS)
|
||||
AC_SUBST(GST_HELPLIBS_CFLAGS)
|
||||
</programlisting>
|
||||
|
|
|
@ -238,7 +238,7 @@ main (int argc, char *argv[])
|
|||
To compile the helloworld example, use:
|
||||
</para>
|
||||
<programlisting>
|
||||
gcc -Wall `pkg-config gstreamer --cflags --libs` helloworld.c \
|
||||
gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld.c \
|
||||
-o helloworld
|
||||
</programlisting>
|
||||
<para>
|
||||
|
|
|
@ -238,7 +238,7 @@ main (int argc, char *argv[])
|
|||
To compile the helloworld example, use:
|
||||
</para>
|
||||
<programlisting>
|
||||
gcc -Wall `pkg-config gstreamer --cflags --libs` helloworld.c \
|
||||
gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld.c \
|
||||
-o helloworld
|
||||
</programlisting>
|
||||
<para>
|
||||
|
|
|
@ -247,7 +247,7 @@ main (int argc, char *argv[])
|
|||
To compile the helloworld2 example, use:
|
||||
</para>
|
||||
<programlisting>
|
||||
gcc -Wall `pkg-config gstreamer --cflags --libs` helloworld2.c \
|
||||
gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld2.c \
|
||||
-o helloworld2
|
||||
</programlisting>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue