Tutorial ndk-build error

Sebastian Dröge sebastian at centricular.com
Wed Jul 27 06:25:40 UTC 2016


On Mo, 2016-07-25 at 18:27 -0700, feral wrote:
> I'm trying to test Android Gstreamer. So I installed and configured path  SDK
> > <https://gstreamer.freedesktop.org/data/pkg/android/1.8.1/>  , got  tutorial
> source
> <http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development> , modify path in tutorial's Android.mk, and do ndk-build at
> android-tutorial-1/jni. But I got
> 
> $ ndk-build
> GStreamer      : [GEN] => gst-build-arm64-v8a/gstreamer_android.c
> GStreamer      : [COMPILE] => gst-build-arm64-v8a/gstreamer_android.c
> GStreamer      : [LINK] => gst-build-arm64-v8a/libgstreamer_android.so
> /home/potato/Android/NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld.gold:
> error:
> /home/potato/Android/GST/lib/gstreamer-1.0/static/libgstcoreelements.a(libgstcoreelements_la-gstelements.o):
> incompatible target

This suggests that you use the GStreamer binaries for the wrong
architecture when building for arm64. Check that the Android.mk (or the
environment variables used there) are pointing to the directory with
the correct version of the 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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160727/38cc4d42/attachment.sig>


More information about the gstreamer-devel mailing list