Missing libraries in gstreamer-plugins-base-0.10.pc?

Sebastian Dröge slomo at circular-chaos.org
Thu Mar 13 14:34:34 UTC 2008


Am Donnerstag, den 13.03.2008, 15:03 +0100 schrieb Hannes Matuschek:
> I've tried to compile a simple plugin for gtreamer but it fails while
> linking. It looks like `pkg-config --libs gtreamer-plugins-0.10` doesn't
> provide -lgstaudio-0.10 etc.
> 
> The .pc file defines a variable 'libraries' but there are no libraries
> listed in `Libs` section!
> 
> I'm using Ubuntu 7.10 but they adopted the Debian package directly...

You probably mean pkg-config --libs gstreamer-plugins-base-0.10, right?

This file will only give you valid CFLAGS and -L linker flags and
doesn't give you any libs. You have to check the content of the
libraries variable to see if the library you need is available and add
-lgst$(library)-0.10 to your linker flags yourself. This is intended
behaviour as you don't want to link to all plugins-base flags at the
same time most probably but only to a few...

In newer gstreamer versions this is fixed by adding a million new
pkg-config files:

$ pkg-config --libs gstreamer-audio-0.10
-pthread -lgstaudio-0.10 -lgstbase-0.10 -lgstinterfaces-0.10
-lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt
-lxml2 -lglib-2.0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/pkg-gstreamer-maintainers/attachments/20080313/0614e91e/attachment.pgp 


More information about the Pkg-gstreamer-maintainers mailing list