Gstreamer + Android Studio + x86 and armv7 build

stic at free.fr stic at free.fr
Fri Jan 22 09:20:15 PST 2016


Thanks. I already have something very similar with my Android.mk.
It can compile properly armv7 or x86 separately, but if I try to compile both target in the same build it compiles armv7 but then fails for x86 with many errors such:
gstreamer-1.0-android-armv7-1.6.1-release/lib/libgstreamer-1.0.a(libgstreamer_1.0_la-gstpad.o): incompatible target

It seems it still uses armv7 libs... :/

----- Mail original -----
De: "Sebastian Dröge" <sebastian at centricular.com>
À: "Discussions about GStreamer on Android" <gstreamer-android at lists.freedesktop.org>
Envoyé: Vendredi 22 Janvier 2016 17:49:11
Objet: Re: Gstreamer + Android Studio + x86 and armv7 build

On Fr, 2016-01-22 at 17:35 +0100, stic at free.fr wrote:
> Hi gstreamer friends !
> 
> Does anyone know if there is a possibility to make a build of an
> application using gstreamer SDK for x86 AND armv7 targets at the same
> time ?
> I tried using multiple targets with "APP_ABI := armeabi-v7a x86" in
> the Application.mk, and in Android.mk I change the gstreamer SDK path
> depending on TARGET_ARCH_ABI but gstreamer SDK fails to compile for
> x86 then.

You need something like this:
https://github.com/sdroege/gst-player/blob/master/android/jni/Android.mk#L12

And then set the relevant environment variables to the places where you
have the GStreamer binaries for the corresponding architecture.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-android mailing list
gstreamer-android at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-android


More information about the gstreamer-android mailing list