GStreamer Sample Application Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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;

}

  

                        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

 

                        make

                        make main

                        ./main

 

                        Error: ./main: symbol lookup error:
/usr/lib/libgstreamer-0.10.so.0: undefined symbol:g_date_get_type

 

 

 

Thank you,

Raghu

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20081006/e2942373/attachment.htm>


[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux