gst_element_factory_make fails with ANDROID
yxxone
xuchangxue365812 at 126.com
Mon Nov 25 07:53:49 PST 2013
Well ,I think I'd been too confident. Now , the "qtdemux" does not play
tricks on me any more and it's "gstrtpbin" 's turn then . I had thought
that after I add "rtpmanager" to "GSTREAMER_PLUGINS" , everything will be
ok . But thing goes wrong in another way . when I build it with "ndk-build"
, error occur and I felt desperated. I wonder if I did not get the right
plugin name or there is other thing I shoud pay attention to.
the error is like this:
/home/yxx/Documents/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
gst-build/gstreamer_android.o: in function
gst_android_register_static_plugins:gstreamer_android.c(.text.gst_android_register_static_plugins+0x18):
error: undefined reference to 'gst_plugin_rtpmanager_register'
collect2: ld returned 1 exit status
make: *** [buildsharedlibrary] Error 1
some of my code:
gst_init(NULL, NULL);
pipeline = gst_pipeline_new(NULL);
g_assert(pipeline);
videosrc = gst_element_factory_make("udpsrc", "videosrc");
g_assert(videosrc);
g_object_set(videosrc, "port", 8000, NULL);
gst_debug_set_default_threshold(GST_LEVEL_DEBUG);
videodemux = gst_element_factory_make("qtdemux", "videodemux");
g_assert(videodemux);
queue = gst_element_factory_make("queue", "queue");
g_assert(queue);
rtph264pay = gst_element_factory_make("rtph264pay", "rtph264pay");
g_assert(rtph264pay);
g_object_set(rtph264pay, "config-interval", 2, NULL);
rtpsink = gst_element_factory_make("udpsink", "rtpsink");
g_assert(rtpsink);
g_object_set(rtpsink, "port", 5000, "host", HOST, NULL);
rtcpsink = gst_element_factory_make("udpsink", "rtcpsink");
g_assert(rtcpsink);
g_object_set(rtcpsink, "port", 5001, "host", HOST, NULL);
rtcpsrc = gst_element_factory_make("udpsrc", "rtcpsrc");
g_assert(rtcpsrc);
g_object_set(rtcpsrc, "port", 5002, NULL);
rtp_bin = gst_element_factory_make("gstrtpbin", "rtp_bin");
g_assert(rtp_bin);
Thanks for your patience.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-element-factory-make-fails-with-ANDROID-tp4663411p4663565.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list