编译过程中遇到问题
target Dex: DownloadProvider
collect2: ld terminated with signal 9 [Killed]
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] 错误 1
make: *** 正在等待未完成的任务....
DroidDoc took 951 sec. to write docs to out/target/common/docs/api-stubs
DroidDoc took 1109 sec. to write docs to out/target/common/docs/doc-comment-check
问题原因:内存不足
解决办法:创建交换分区
又再次执行repo sync 保证源码的完整性
.....
....
.....
remote: Finding sources: 100% (8/8)
remote: Getting sizes: 100% (6/6)
remote: Total 8 (delta 0), reused 8 (delta 0)
Unpacking objects: 100% (8/8), done.
From https://android.googlesource.com/platform/system/vold
f7e7ee9..fd5b29b master -> aosp/master
remote: Total 534 (delta 217), reused 534 (delta 217)
Receiving objects: 100% (534/534), 4.09 MiB | 106 KiB/s, done.
Resolving deltas: 100% (217/217), completed with 2 local objects.
From https://android.googlesource.com/platform/prebuilts/ndk
4385882..ab7b178 master -> aosp/master
Fetching projects: 100% (293/293), done.
Syncing work tree: 100% (293/293), done.
文件总大小 22.5G
![惊恐](http://static.blog.csdn.net/xheditor/xheditor_emot/default/panic.gif)
重新编译 这次使用 make -j4
~/WORKING_DIRECTORY$ source build/envsetup.sh
$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_grouper-userdebug
5. mini_armv7a_neon-userdebug
6. mini_armv7a-userdebug
7. full_wingray-userdebug
8. full_crespo-userdebug
9. full_maguro-userdebug
10. full_panda-userdebug
Which would you like? [full-eng] 1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
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.2.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=out
============================================
$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
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.2.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=out
============================================
执行结果
.............
make: 没有什么可以做的为 `droid'。
接着执行
~/WORKING_DIRECTORY$ emulator
emulator: WARNING: system partition size adjusted to match image file (205 MB > 200 MB)
编译成功,有图有真相