构建Android V2.2 [Froyo]源代码时出错

时间:2011-05-06 14:41:59

标签: android build android-2.2-froyo

构建Froyo代码时出现以下错误 -

No private recovery resources for TARGET_DEVICE passion
target Generated: libclearsilver-jni <=  out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
target Generated: libclearsilver-jni <=     out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
host C: libneo_util <= external/clearsilver/util/neo_hash.c
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
/bin/bash: javah: command not found
/bin/bash: javah: command not found
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-    jni_intermediates/org_clearsilver_CS.h] Error 127
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-    jni_intermediates/org_clearsilver_HDF.h] Error 127
true

请帮我找出构建错误的根本原因。

3 个答案:

答案 0 :(得分:1)

这可能是一个路径问题。对我来说,我必须做

export PATH=$PATH:/usr/java/jdk1.6.0_25/bin/

使其正常工作。

答案 1 :(得分:1)

$ uname -m x86_64的 取决于x86_64或XXX32 修改了以下文件,在x86_64中使用m64,在android目录中使用m32 for xxx32

   /external/clearsilver/cgi/Android.mk
   /external/clearsilver/java-jni/Android.mk
   /external/clearsilver/util/Android.mk
   /external/clearsilver/cs/Android.mk

使用vi或vim编辑器编辑上述文件。 类型        LOCAL_CFLAGS + = - m64        LOCAL_LDFLAGS + = -m64

命令在“LOCAL_CFLAGS:=”

行下面的文件中

注意:如果您的系统是x86_64,请下载JDK_1.5_update_xx_amd64.bin

答案 2 :(得分:0)

Javah是JDK的一部分。下载并安装一个。