<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 12/16/2011 05:11 PM, Julien Isorce wrote:
    <blockquote
cite="mid:CAHWPjbVz8Y9z6mJsFQmYNoyJpRzWMEirELGzNLmsPkkc9vmjew@mail.gmail.com"
      type="cite">
      <div>Hi</div>
      I think we have to use the SurfaceFlinger library so yes we need
      "a new GL_BACKEND=xxxES2"
      <div>Julien<br>
      </div>
    </blockquote>
    <br>
    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
    (<a class="moz-txt-link-freetext" href="http://developer.android.com/sdk/ndk/overview.html#samples">http://developer.android.com/sdk/ndk/overview.html#samples</a>).<br>
    <br>
    Stefan<br>
    <blockquote
cite="mid:CAHWPjbVz8Y9z6mJsFQmYNoyJpRzWMEirELGzNLmsPkkc9vmjew@mail.gmail.com"
      type="cite">
      <div><br>
        <div class="gmail_quote">2011/12/16 Stefan Sauer <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">hi,<br>
            <br>
            I looked at bit into trying to build gst-plugin-gl for
            android. These<br>
            are the modifications:<br>
            1.) inside the gstramer_ndk_bundle dir get gst-plugin-gl and
            patch it<br>
            &nbsp;git clone git://<a moz-do-not-send="true"
              href="http://anongit.freedesktop.org/gstreamer/gst-plugins-gl"
              target="_blank">anongit.freedesktop.org/gstreamer/gst-plugins-gl</a><br>
            &nbsp;git am 0001-build-Androigenizer-build-boilerplate.patch<br>
            <br>
            2.) patch jni/Android.mk (0002-include-gst-plugins-gl.patch)<br>
            <br>
            3.) build<br>
            <br>
            Right now one showstopper gst-plugin-gl support GL or EGL
            only via X11<br>
            as it seems.<br>
            <br>
            configure:22715: checking for eglGetError in -lEGL<br>
            configure:22740:<br>
/home/ensonic/android/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc<br>
            -std=gnu99 -o conftest -nostdlib -Bdynamic<br>
            -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections<br>
            -Wl,-z,nocopyreloc<br>
/home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o<br>
/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<br>
/home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/lib/crtend_android.o<br>
            -I/include -I/include<br>
-I/home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/include<br>
-I/home/ensonic/android/gstreamer_ndk_bundle/jni/../libid3tag<br>
            -I/home/ensonic/android/gstreamer_ndk_bundle/jni/../libmad<br>
            -I/usr/include -I/usr/include -lc -ldl<br>
-L/home/ensonic/android/ndk/platforms/android-9/arch-arm/usr/lib<br>
-L/home/ensonic/android/gstreamer_ndk_bundle/obj/local/armeabi<br>
            -L/home/ensonic/android/gstreamer_ndk_bundle/jni/../libs<br>
            -Wl,--warn-unresolved-symbols conftest.c -lEGL &nbsp; &nbsp;-L/usr/lib
            &nbsp; -lX11<br>
            -L/usr/lib &nbsp; -lX11 &gt;&amp;5<br>
            /usr/lib/libX11.so: file not recognized: File format not
            recognized<br>
            <br>
            After applying HACK.patch it configures, but I have to
            figure how to<br>
            convince ndk-build to try building it...<br>
            Also in the long run it looks like we wound need a new<br>
            GL_BACKEND=xxxES2, julien any opinion?<br>
            <font color="#888888"><br>
              Stefan<br>
            </font></blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>