[gst-devel] compiling example

Michal Benes michal.benes at itonis.tv
Thu Jul 20 17:45:44 CEST 2006


Hi,

	you are not linking against libgstreamer. Compile using
gcc `pkg-config --cflags --libs gstreamer-0.10` -o beispiel_5_4_1 
beispiel_5_4_1.c

	Michal

me at mike-gareiss.de píše v Čt 20. 07. 2006 v 12:33 +0200:
> Hi,
> 
> if i compile some example from the manual i get follow output
> 
> gcc -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include -I/usr/include/gnome-xml -o beispiel_5_4_1 
> beispiel_5_4_1.c
> 
> /tmp/ccGshBpo.o(.text+0x20): In function `main':
> : undefined reference to `gst_init'
> /tmp/ccGshBpo.o(.text+0x2c): In function `main':
> : undefined reference to `gst_element_factory_find'
> /tmp/ccGshBpo.o(.text+0x41): In function `main':
> : undefined reference to `g_print'
> /tmp/ccGshBpo.o(.text+0x55): In function `main':
> : undefined reference to `gst_element_factory_get_description'
> /tmp/ccGshBpo.o(.text+0x62): In function `main':
> : undefined reference to `gst_element_factory_get_klass'
> /tmp/ccGshBpo.o(.text+0x69): In function `main':
> : undefined reference to `gst_plugin_feature_get_type'
> /tmp/ccGshBpo.o(.text+0x78): In function `main':
> : undefined reference to `g_type_check_instance_cast'
> /tmp/ccGshBpo.o(.text+0x80): In function `main':
> : undefined reference to `gst_plugin_feature_get_name'
> /tmp/ccGshBpo.o(.text+0x98): In function `main':
> : undefined reference to `g_print'
> collect2: ld returned 1 exit status
> 
> Whats wrong?
> 
> CU Mike
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list