How to build ligstreamer_android.so for android_x86

Sebastian Dröge sebastian at centricular.com
Mon Oct 26 00:54:38 PDT 2015


On So, 2015-10-25 at 21:58 -0700, JYbob wrote:
> Hi,
> 
> How to build ligstreamer_android.so for android_x86 using ndk-
> build???
> 
> I downloaded  gstreamer-1.0-android-x86_64-1.6.0.tar.bz2
> <http://gstreamer.freedesktop.org/data/pkg/android/1.6.0/>  ;

x86 and x86-64 are not the same. If you want x86, use the tarball
without the 64 in the name.

Also you have to set the supported architectures in your
Application.mk, and can then do something like the following in your
Android.mk:

> ifeq ($(TARGET_ARCH_ABI),armeabi)
> GSTREAMER_ROOT        := $(GSTREAMER_ROOT_ARM)
> else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
> GSTREAMER_ROOT        := $(GSTREAMER_ROOT_ARMV7)
> else ifeq ($(TARGET_ARCH_ABI),x86)
> GSTREAMER_ROOT        := $(GSTREAMER_ROOT_X86)
> else
> $(error Target arch ABI not supported)
> endif

Can be extended by arm64 and x86-64 if you want to. Then you would only
set GSTREAMER_ROOT_* in your environment to the paths of the
corresponding GStreamer binaries.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151026/eff10c0c/attachment-0001.sig>


More information about the gstreamer-devel mailing list