0

在我的旧笔记本电脑 DELL Latitude D620(带有 Ubuntu 11.10 的 Intel T5500)上编译 android 源代码时遇到一些问题

这是错误代码:

============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.9.99.999.9999.99999
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_OS_EXTRA=Linux-3.0.0-23-generic-x86_64-with-Ubuntu-11.10-oneiric
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================

...
compile progress..
...

host Java: draw9patch (out/host/common/obj/JAVA_LIBRARIES/draw9patch_intermediates/classes)
host Java: hierarchyviewer (out/host/common/obj/JAVA_LIBRARIES/hierarchyviewer_intermediates/classes)
Note: sdk/draw9patch/src/com/android/draw9patch/ui/ImageTransferHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: out/host/linux-x86/framework/layoutlib_api.jar
Install: out/host/linux-x86/framework/layoutlib_create.jar
host Java: lint_api (out/host/common/obj/JAVA_LIBRARIES/lint_api_intermediates/classes)
host Java: signature-tools (out/host/common/obj/JAVA_LIBRARIES/signature-tools_intermediates/classes)
host Java: traceview (out/host/common/obj/JAVA_LIBRARIES/traceview_intermediates/classes)
target R.java/Manifest.java: ApplicationsProvider (out/target/common/obj/APPS/ApplicationsProvider_intermediates/src/R.stamp)
make: *** [out/target/common/obj/APPS/ApplicationsProvider_intermediates/src/R.stamp] Segmentation fault
make: *** Waiting for unfinished jobs....

如果我'make clean'并再次编译代码,它可能会在'CalendarProvider_intermediates'等其他模块中出错。

我在网上没有找到类似的问题,这是硬件问题吗?

4

1 回答 1

0

我有同样的问题,我终于解决了。

我的经验是查看网站http://source.android.com/source/initializing.html

我的机器是 Ubuntu 14.04,安装完库后我按照建议进行了操作。希望它可以帮助你。

sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
  lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
  libgl1-mesa-dev libxml2-utils xsltproc 解压
于 2016-12-23T06:34:30.793 回答