从Source -File构建Android未找到错误

时间:2012-01-18 01:23:54

标签: java android android-source

我一直在关注source.android.com上的构建教程,试图构建ICS。当我使用make命令时,我收到一个File not found错误。

有没有人对此有更多经验?

这是控制台,从我的make命令开始:

[root@dev working_directory]# make
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.3.0.2.0.1.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
/bin/bash: line 0: cd: cts/tools/cts-native-xml-generator/src/res: No such file or directory
host C: acp <= build/tools/acp/acp.c
In file included from /usr/include/features.h:387:0,
             from /usr/include/stdlib.h:25,
             from build/tools/acp/acp.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1

1 个答案:

答案 0 :(得分:-1)

似乎你有一些包丢失了。按照http://source.android.com/source/initializing.html中的说明设置您的环境。