linker error

Tim Müller tim at centricular.com
Mon Jun 23 08:56:35 PDT 2014


On Mon, 2014-06-23 at 17:24 +0200, Marco Trapanese wrote:

Hi Marco,

> in my first application with gstreamer I successfully built a pipeline 
> with playbin. I told the linker (Qt5) to link to these libs:
> 
> LIBS += -lglib-2.0 -lgobject-2.0 -lgstreamer-1.0
> 
> Now I'm trying to add some features like colorbalance and I get these 
> linker errors:
> 
> error: undefined reference to `gst_color_balance_get_type'
> error: undefined reference to `gst_color_balance_list_channels'
> error: undefined reference to `gst_color_balance_set_value'
> 
> which library I forgot to link to?

libgstvideo-1.0

Best to get includes and linker flags via

 `pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0`

and

 `pkg-config --libs gstreamer-1.0 gstreamer-video-1.0`

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list