Hello,
I am trying to compile a 64-bit Neon code using android ndk-r10c in eclipse. I am getting an error message:
Android NDK: NEON support is only possible for armeabi-v7a ABI its variant armeabi-v7a-hard and x86 ABI
Android NDK: Please add checks against TARGET_ARCH_ABI in jni/Android.mk".
This is my Android.mk file
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true
LOCAL_MODULE := helloneon
LOCAL_SRC_FILES := helloneon.c
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI), arm64-v8a))
LOCAL_CFLAGS := -DHAVE_NEON=1
ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_CFLAGS += -mssse3
endif
LOCAL_SRC_FILES += helloneon-intrinsics.c.neon
LOCAL_STATIC_LIBRARIES := cpufeatures
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
$(call import-module,cpufeatures)
Can anyone help me in resolving this?
Thanks and Regards
Parvathy
try this:
LOCAL_CPPFLAGS += -mssse3
LOCAL_CXXFLAGS += -mssse3
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LOCAL_CFLAGS += -DHAVE_NEON64_or_Some_Other_flag =1
LOCAL_CPPFLAGS += -DHAVE_NEON64_or_Some_Other_flag=1
LOCAL_CXXFLAGS += -DHAVE_NEON64_or_Some_Other_flag=1
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -mfpu=neon
LOCAL_CPPFLAGS += -mfpu=neon
LOCAL_CXXFLAGS += -mfpu=neon
ifeq ($(TARGET_ARCH_ABI),armeabi)
#some fetchers for this arch