[gst-embedded] GStreamer Sample Application Error
Zhao Liang-E3423C
E3423C at motorola.com
Sun Oct 5 22:50:02 PDT 2008
I remember glib version gstreamer needed was at least 2.12.
make sure your glib lib has this symbol g_date_get_type
Zhao Liang
________________________________
From: Raghavendra [mailto:raghavendrar at lge.com]
Sent: Monday, October 06, 2008 1:39 PM
To: gstreamer-embedded at lists.sourceforge.net
Subject: [gst-embedded] GStreamer Sample Application Error
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/ca06e53f/attachment.htm>
More information about the Gstreamer-embedded
mailing list