[Build] android-tutorial-1: ndk-build command is failed in case of arm64-v8a, x86, and x86_64
I tried to build Android-tutorial-1 source code with Andorid-NDK. However, The 'ndk-build' is failed in case of arm64-v8a, x86, and x86_64.
How to reproduce
invain@mymate:.../android-tutorial-1/jni$ time /work/taos/gst-android/android-ndk-r16b/ndk-build
Build error message : arm64-v8a is failed.
. . . Omission . . .
[armeabi-v7a] Install : libgstreamer_android.so => libs/armeabi-v7a/libgstreamer_android.so
[armeabi-v7a] Compile thumb : tutorial-1 <= tutorial-1.c
[armeabi-v7a] Compile++ thumb: tutorial-1 <= dummy.cpp
[armeabi-v7a] SharedLibrary : libtutorial-1.so
[armeabi-v7a] Install : libtutorial-1.so => libs/armeabi-v7a/libtutorial-1.so
[armeabi-v7a] Install : libc++_shared.so => libs/armeabi-v7a/libc++_shared.so
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
/work/taos/gst-android/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld.gold: error: /work/taos/gst-android/gst_root_android/arm/lib/gstreamer-1.0/libgstcoreelements.a(libgstcoreelements_la-gstelements.o): incompatible target
gst-build-arm64-v8a/gstreamer_android.c:67: error: undefined reference to 'gst_plugin_coreelements_register'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [buildsharedlibrary_arm64-v8a] Error 1
System information
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
Workaround
--- a/examples/tutorials/android/android-tutorial-1/jni/Application.mk
+++ b/examples/tutorials/android/android-tutorial-1/jni/Application.mk
@@ -1,2 +1,3 @@
-APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
-APP_STL = c++_shared
\ No newline at end of file
+# APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
+APP_ABI = armeabi armeabi-v7a x86
+APP_STL = c++_shared
Any comments will be helpful to me.