错误未知或不支持的arm架构

时间:2014-09-16 17:11:15

标签: android android-ndk vnc

我正在尝试编译GitHub中可用的oNaiPs / droid-VNC服务器的C守护进程,我遇到错误让我花了很多时间在同一个问题上,请给我解决方案,  *当我发出命令时它正在运行并且遇到错误

  

/home/akhil/android/android-ndk-r10_64/build/core/build-binary.mk:448:警告:覆盖目标obj/local/armeabi-v7a/objs/simd/asm/armv7' /home/akhil/android/android-ndk-r10_64/build/core/build-binary.mk:448: warning: ignoring old commands for target obj / local / armeabi-v7a / objs / simd的命令/ ASM / ARMv7' 的   [armeabi]编译手臂:jpeg< = jidctfst.S   在jni / jpeg / jidctfst.S:17:0中包含的文件中:   /home/akhil/android/android-ndk-r10_64/platforms/android-L/arch-arm/usr/include/machine/cpu-features.h:52:6:错误:#error未知或不支持的ARM体系结构    #error未知或不支持的ARM体系结构         ^   make: * [obj / local / armeabi / objs / jpeg / jidctfst.o]错误1

这是epu-feature.h

#ifndef _ARM_MACHINE_CPU_FEATURES_H
#define _ARM_MACHINE_CPU_FEATURES_H

#ifndef __ARM_ARCH__
#  if defined __ARM_ARCH_7__   || defined __ARM_ARCH_7A__ || \
    defined __ARM_ARCH_7R__  || defined __ARM_ARCH_7M__
#    define __ARM_ARCH__ 7
#  elif defined __ARM_ARCH_6__   || defined __ARM_ARCH_6J__ || \
    defined __ARM_ARCH_6K__  || defined __ARM_ARCH_6Z__ || \
    defined __ARM_ARCH_6KZ__ || defined __ARM_ARCH_6T2__
#    define __ARM_ARCH__ 6
#  else
#    error Unknown or unsupported ARM architecture
#  endif
#endif

#define  __ARM_HAVE_HALFWORD_MULTIPLY  1

#if __ARM_ARCH__ >= 7
#  define __ARM_HAVE_LDREXD
#endif
#if __ARM_ARCH__ >= 7 && defined __VFP_FP__
#  define __ARM_HAVE_VFP
#endif


#if __ARM_ARCH__ >= 7 && defined __ARM_NEON__
#  define __ARM_HAVE_NEON
#endif

#endif 

onaip源代码可在git repository上找到:

  

https://github.com/oNaiPs/droid-VNC-server

1 个答案:

答案 0 :(得分:1)

它将解决if,

  • 将PLD()更改为PLD [](更改为方括号)
  • 使用android ndk 32位构建