some experiments on getting gst-plugins-gl to work on android

Julien Isorce julien.isorce at gmail.com
Fri Dec 16 08:11:17 PST 2011


Hi
I think we have to use the SurfaceFlinger library so yes we need "a new
GL_BACKEND=xxxES2"
Julien

2011/12/16 Stefan Sauer <ensonic at hora-obscura.de>

> hi,
>
> I looked at bit into trying to build gst-plugin-gl for android. These
> are the modifications:
> 1.) inside the gstramer_ndk_bundle dir get gst-plugin-gl and patch it
>  git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-gl
>  git am 0001-build-Androigenizer-build-boilerplate.patch
>
> 2.) patch jni/Android.mk (0002-include-gst-plugins-gl.patch)
>
> 3.) build
>
> Right now one showstopper gst-plugin-gl support GL or EGL only via X11
> as it seems.
>
> configure:22715: checking for eglGetError in -lEGL
> configure:22740:
>
> /home/ensonic/android/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
> -std=gnu99 -o conftest -nostdlib -Bdynamic
> -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections
> -Wl,-z,nocopyreloc
>
> /home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o
>
> /home/ensonic/android/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
>
> /home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/lib/crtend_android.o
> -I/include -I/include
> -I/home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/include
> -I/home/ensonic/android/gstreamer_ndk_bundle/jni/../libid3tag
> -I/home/ensonic/android/gstreamer_ndk_bundle/jni/../libmad
> -I/usr/include -I/usr/include -lc -ldl
> -L/home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/lib
> -L/home/ensonic/android/gstreamer_ndk_bundle/obj/local/armeabi
> -L/home/ensonic/android/gstreamer_ndk_bundle/jni/../libs
> -Wl,--warn-unresolved-symbols conftest.c -lEGL    -L/usr/lib   -lX11
> -L/usr/lib   -lX11 >&5
> /usr/lib/libX11.so: file not recognized: File format not recognized
>
> After applying HACK.patch it configures, but I have to figure how to
> convince ndk-build to try building it...
> Also in the long run it looks like we wound need a new
> GL_BACKEND=xxxES2, julien any opinion?
>
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20111216/072120aa/attachment.html>


More information about the gstreamer-android mailing list