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

Stefan Sauer ensonic at hora-obscura.de
Fri Dec 16 09:59:04 PST 2011


On 12/16/2011 05:11 PM, Julien Isorce wrote:
> Hi
> I think we have to use the SurfaceFlinger library so yes we need "a
> new GL_BACKEND=xxxES2"
> Julien

We have a sink based on surfaceflinger, but we can't use it from the
NDK. The surfaceflinger API is not yet stable and only software that is
signed with the system builder key can access it. The ndk has a few
sample for gles and bitmap api, which I will take a look at next
(http://developer.android.com/sdk/ndk/overview.html#samples).

Stefan
>
> 2011/12/16 Stefan Sauer <ensonic at hora-obscura.de
> <mailto: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
>     <http://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/77ff5ed1/attachment.htm>


More information about the gstreamer-android mailing list