[gst-embedded] GStreamer Sample Application Error

Stefan Kost ensonic at hora-obscura.de
Thu Oct 16 02:19:23 PDT 2008


hi,

see my comment below.
Raghavendra schrieb:
>
> Hi all,
>
> Me getting few error while executing my GStreamer sample application.
>  Here me explaining the steps that I followed with sample code. Please
> make me correct if any wrong.
>
>  
>
> GStreamer Version:       gstreamer-0.10.13
>
> Glib Version:                 glib-2.8.6
>
>  
>
> Step 1:              install glib-2.8.6 ( installed in /usr/local/lib )
>
>                         ./configure
>
>                         Make
>
>                         Make install
>
>            
>
> Step 2:              install gstreamer
>
>                         ./configure
> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
>
>                         Make
>
>                         Make install
>
>  
>
> Step 3:              app build
>
>                        
>
>                         App.c source file
>
>                        
>
>                                     #include <gst.h>
>
> gint
>
> main ()
>
> {
>
>   GMainLoop *loop;
>
>   GstElement *play;
>
>   GstBus *bus;
>
>  
>
>   /* init GStreamer */
>
>   gst_init (NULL, NULL);
>
>   loop = g_main_loop_new (NULL, FALSE);
>
>  
>
>   /* set up */
>
>   play = gst_element_factory_make ("playbin", "audio-output");
>
> play = gst_element_factory_make ("vorbis", "sink");
>
>  
>
>   g_object_set (G_OBJECT (play), "uri", " ", NULL);
>
>   //g_object_set (G_OBJECT (play), "location", argv[1], NULL);
>
>  // g_object_set (G_OBJECT (play), "uri",
> "D:\gstreamer\gstr-23Aug\app\AaDinagal
>
> u-SihiGaali.mp3", NULL);
>
>  
>
>   bus = gst_pipeline_get_bus (GST_PIPELINE (play));
>
> //  gst_bus_add_watch (bus, my_bus_callback, loop);
>
>   gst_object_unref (bus);
>
>  
>
>   gst_element_set_state (play, GST_STATE_PLAYING);
>
>  
>
>   /* now run */
>
>   g_main_loop_run (loop);
>
>  
>
>   /* also clean up */
>
>   gst_element_set_state (play, GST_STATE_NULL);
>
>   gst_object_unref (GST_OBJECT (play));
>
>  
>
>   return 1;
>
> }
>
>  
>
For that example you need gst-plugins-base too

>                         Makefile
>
> main.o: main.c
>
>         gcc -I../gstreamer-0.10.13 -I../gstreamer-0.10.13/gst
> -I../glib-2.8.6 -I.
>
> /glib-2.8.6/glib -I../libxml-install/include/libxml2
> -I../glib-2.8.6/gmodule -c
>
> main.c
>
>  
>
> main:   main.o
>
>         gcc main.o -o main -LDD/usr/local/lib -lgstreamer-0.10 -lglib-2.0
>
use
CFLAGS=`pkg-config --cflags gstreamer-0.10`
LDFLAGS=`pkg-config --libgs gstreamer-0.10`

>  
>
>                         make
>
>                         make main
>
>                         ./main
>
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ./main

Stefan
>
>  
>
>                         Error: ./main: symbol lookup error:
> /usr/lib/libgstreamer-0.10.so.0: undefined symbol:g_date_get_type
>
>  
>
>  
>
>  
>
> Thank you,
>
> Raghu
>
>  
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gstreamer-embedded mailing list
> Gstreamer-embedded at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded
>   





More information about the Gstreamer-embedded mailing list