From c3191fba3e2cd92d0f17527bda95746105be9e1c Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 30 Jun 2003 07:13:24 +0000 Subject: [PATCH] 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 --- docs/faq/developing.xml | 8 ++++---- docs/manual/basics-helloworld.xml | 2 +- docs/manual/helloworld.xml | 2 +- docs/manual/helloworld2.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/faq/developing.xml b/docs/faq/developing.xml index c64d730..a200dcf 100644 --- a/docs/faq/developing.xml +++ b/docs/faq/developing.xml @@ -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: -$ gcc `pkg-config --cflags --libs gstreamer` -o myprog myprog.c +$ gcc `pkg-config --cflags --libs gstreamer-0.7` -o myprog myprog.c would be sufficient for a gstreamer-only program. If (for example) your app also used GTK+ 2.0, you could use -$ 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 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. -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: 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) diff --git a/docs/manual/basics-helloworld.xml b/docs/manual/basics-helloworld.xml index 38c1fc3..002894d 100644 --- a/docs/manual/basics-helloworld.xml +++ b/docs/manual/basics-helloworld.xml @@ -238,7 +238,7 @@ main (int argc, char *argv[]) To compile the helloworld example, use: - gcc -Wall `pkg-config gstreamer --cflags --libs` helloworld.c \ + gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld.c \ -o helloworld diff --git a/docs/manual/helloworld.xml b/docs/manual/helloworld.xml index 38c1fc3..002894d 100644 --- a/docs/manual/helloworld.xml +++ b/docs/manual/helloworld.xml @@ -238,7 +238,7 @@ main (int argc, char *argv[]) To compile the helloworld example, use: - gcc -Wall `pkg-config gstreamer --cflags --libs` helloworld.c \ + gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld.c \ -o helloworld diff --git a/docs/manual/helloworld2.xml b/docs/manual/helloworld2.xml index 3ba2e49..bb8db97 100644 --- a/docs/manual/helloworld2.xml +++ b/docs/manual/helloworld2.xml @@ -247,7 +247,7 @@ main (int argc, char *argv[]) To compile the helloworld2 example, use: - gcc -Wall `pkg-config gstreamer --cflags --libs` helloworld2.c \ + gcc -Wall `pkg-config gstreamer-0.7 --cflags --libs` helloworld2.c \ -o helloworld2 -- 2.7.4