编译民间安卓源码mokesoures4.2.2报错内容【解决了!】
1 ============================================ 2 PLATFORM_VERSION_CODENAME=REL 3 PLATFORM_VERSION=4.2.2 4 TARGET_PRODUCT=full 5 TARGET_BUILD_VARIANT=eng 6 TARGET_BUILD_TYPE=release 7 TARGET_BUILD_APPS= 8 TARGET_ARCH=arm 9 TARGET_ARCH_VARIANT=armv7-a 10 HOST_ARCH=x86 11 HOST_OS=linux 12 HOST_OS_EXTRA=Linux-3.13.0-30-generic-x86_64-with-Ubuntu-14.04-trusty 13 HOST_BUILD_TYPE=release 14 BUILD_ID=JDQ39 15 OUT_DIR=/home/anna/Documents/mokesoures/out 16 ============================================ 17 grep: build/target/board/generic/recovery.fstab: 没有那个文件或目录 18 external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration 19 find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录 20 find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录 21 find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录 22 find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录 23 find: `src': 没有那个文件或目录 24 build/core/tasks/kernel.mk:82: ********************************************************** 25 build/core/tasks/kernel.mk:83: * Kernel source found, but no configuration was defined * 26 build/core/tasks/kernel.mk:84: * Please add the TARGET_KERNEL_CONFIG variable to your * 27 build/core/tasks/kernel.mk:85: * BoardConfig.mk file * 28 build/core/tasks/kernel.mk:86: ********************************************************** 29 host C: acp <= build/tools/acp/acp.c 30 prebuilts/tools/gcc-sdk/gcc: 行 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: 没有那个文件或目录 31 make: *** [/home/anna/Documents/mokesoures/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] 错误 127
之后,针对
prebuilts/tools/gcc-sdk/gcc: 行 40: prebuilts/tools/gcc-sdk/../../gcc/linux- x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: 没有那个文件或目录
的新错误,执行
sudo apt-get install g++-multilib
然后再次尝试编译,报错如下:
/home/anna/Documents/mokesoures/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make: *** [/home/anna/Documents/mokesoures/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] 错误 1
针对
/i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
错误,执行命令
sudo apt-get install lib32z1
之后就能正常编译了!
(在执行最后一个命令的过程中,虚拟机的DNS服务莫名其妙的失效了,而且经过几个小时才注意到这个问题,之前一直以为是网络不好,或者是源不好……以后还是要更加细心,抓住问题的关键,提高做事效率)
补充:
发个编译成功的标志代码
1 Copying: /home/anna/extend/mokesoures/out/target/product/generic/obj/NOTICE_FILES/src/kernel.txt 2 build/tools/generate-notice-files.py /home/anna/extend/mokesoures/out/target/product/generic/obj/NOTICE.txt /home/anna/extend/mokesoures/out/target/product/generic/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/anna/extend/mokesoures/out/target/product/generic/obj/NOTICE_FILES/src 3 Combining NOTICE files into HTML 4 Combining NOTICE files into text 5 Generated: (/home/anna/extend/mokesoures/out/target/product/generic/android-info.txt) 6 7 8 Installed file list: /home/anna/extend/mokesoures/out/target/product/generic/installed-files.txt 9 Target system fs image: /home/anna/extend/mokesoures/out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img 10 Running: mkyaffs2image -f /home/anna/extend/mokesoures/out/target/product/generic/system /home/anna/extend/mokesoures/out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img 11 Install system fs image: /home/anna/extend/mokesoures/out/target/product/generic/system.img 12 Target ram disk: /home/anna/extend/mokesoures/out/target/product/generic/ramdisk.img 13 Target userdata fs image: /home/anna/extend/mokesoures/out/target/product/generic/userdata.img 14 Running: mkyaffs2image -f /home/anna/extend/mokesoures/out/target/product/generic/data /home/anna/extend/mokesoures/out/target/product/generic/userdata.img
__________________________________________________________
shoobie do lang lang ^^