gstreamer-android-build-error

Mike Hsu hsumike.tw at gmail.com
Fri Sep 13 01:53:46 PDT 2013


Hi zhu,

Could you give me some directions how can we build this?
Thank you for your help.


2013/9/6 Mike Hsu <hsumike.tw at gmail.com>

> Hi sir,
>
> Could you provide your setup configurations or header/library path
> settings before build these codes?
> I meet below problems and have no idea how to fix.
>
> Thank you!
>
> external/gstreamer_top$ ndk-build APP_PLATFORM=android-9
> Compile thumb  : gst-inspect-0.10 <= gst-inspect.c
> external/gstreamer_top/jni/gst-libs/gobject/gsignal.h:29:30: fatal error:
> gobject/gmarshal.h: No such file or directory
> compilation terminated.
>
>
>
> 2013/9/5 turkey zhu <turkeyzhu at gmail.com>
>
>> hi sir,
>>         i have fix the sdk error,  use ndk-build APP_PLATFORM=android-9
>>        just so , now i can do my like apps. haha.
>>
>> Best regards
>>
>>
>>
>>
>> On Wed, Sep 4, 2013 at 3:36 PM, turkey zhu <turkeyzhu at gmail.com> wrote:
>>
>>> hello,ALL
>>>
>>>
>>>
>>> i am a new learner of gstreamer, and in my program, i want use gstreamer
>>> in android to send 6(D1) camera video.
>>>
>>> i know the gstreamer.org support the NDk for android,but i do not want
>>> to use the way of apk. i git ur demo source, and i want to configure it  in
>>> android, i put it in /Android_src/external/ as gstreamer_top,and the
>>> Android.mk like this:
>>>
>>>
>>>
>>> $#############################
>>>
>>> turkeyzhu at turkeyzhu:~/Android_src/external/gstreamEr_top$ less
>>> Android.mk
>>>
>>> # This file is the top android makefile for all sub-modules.
>>>
>>> LOCAL_PATH := $(call my-dir)
>>>
>>> GSTREAMER_TOP := $(LOCAL_PATH)
>>>
>>> include $(CLEAR_VARS)
>>>
>>> include $(GSTREAMER_TOP)/gst/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/libs/gst/base/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/libs/gst/controller/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/libs/gst/dataprotocol/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/libs/gst/net/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/plugins/elements/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/plugins/indexers/Android.mk
>>>
>>> include $(GSTREAMER_TOP)/tools/Android.mk
>>>
>>> $#############################
>>>
>>>
>>>
>>> oh i forgot, i use android4.2.2, i build it in Freescale i.mx6, build OS
>>> is ubuntu_12.04,it can run up on the board.
>>>
>>> but in ./external it can't be compiled. i want to build out gst-launch
>>> on android, i can test it in android adb shell.
>>>
>>> can u help me ? or support me modify the android.mk, it ll be build in
>>> android. When I build ,the error is have not GLIB and Gstream-0.10 lib,but
>>> in ubuntu,I have intall
>>>
>>> the gstreamer-0.10 libs,and I can use gst-launch on my ubuntu server.
>>> But how can I build it on android and run on the borad. Thx.
>>>
>>>
>>>
>>>
>>>
>>> And the other method is use gstreamersdk, but when I build it,it also
>>> have errors:
>>>
>>>
>>>
>>> turkeyzhu at turkeyzhu:~/myFixed/android-ndk-r9/project/sdkgstreamer/share/gst-sdk/tutorials/android-tutorial-1$
>>> /home/turkeyzhu/myFixed/android-ndk-r9/ndk-build -b
>>>
>>> GStreamer      : [GEN] => gst-build/gstreamer_android.c
>>>
>>> GStreamer      : [COMPILE] => gst-build/gstreamer_android.c
>>>
>>> GStreamer      : [LINK] => gst-build/libgstreamer_android.so
>>>
>>> /home/turkeyzhu/myFixed/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
>>> /home/turkeyzhu/myFixed/android-ndk-r9/project/sdkgstreamer/lib/libgstreamer-0.10.a(libgstreamer_0.10_la-gstinfo.o):
>>> in function _gst_debug_nameof_funcptr:gstinfo.c:1621: error: undefined
>>> reference to 'dladdr'
>>>
>>> /home/turkeyzhu/myFixed/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
>>> /home/turkeyzhu/myFixed/android-ndk-r9/project/sdkgstreamer/lib/libglib-2.0.a(libglib_2_0_la-gwakeup.o):
>>> in function g_wakeup_new:gwakeup.c:148: error: undefined reference to
>>> 'eventfd'
>>>
>>> /home/turkeyzhu/myFixed/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:
>>> /home/turkeyzhu/myFixed/android-ndk-r9/project/sdkgstreamer/lib/libglib-2.0.a(libglib_2_0_la-glib-unix.o):
>>> in function g_unix_open_pipe:glib-unix.c:102: error: undefined reference to
>>> 'pipe2'
>>>
>>>
>>>
>>> Can u help me to build gstreamer env on android, I was so affliction
>>> some days, thanks.
>>>
>>>
>>>
>>> Best regards
>>>
>>>
>>>
>>>
>>>                                                                  turkeyzhu
>>>
>>
>>
>> _______________________________________________
>> gstreamer-android mailing list
>> gstreamer-android at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130913/553ebcc0/attachment.html>


More information about the gstreamer-android mailing list