天嵌 ARM开发社区

 找回密码
 注册
查看: 12665|回复: 30

编译安卓源码失败

[复制链接]
lukelang 发表于 2014-2-20 17:59:51 | 显示全部楼层 |阅读模式
按照E9说明书操作,居然失败,求救!!!
  AS      arch/arm/boot/compressed/lib1funcs.o
host C: libext2_profile_host <= external/e2fsprogs/e2fsck/prof_err.c
host C: libext2_profile_host <= external/e2fsprogs/e2fsck/profile.c
  LD      arch/arm/boot/compressed/vmlinux
host C: edify <= bootable/recovery/edify/expr.c
host C: edify <= bootable/recovery/edify/main.c
  OBJCOPY arch/arm/boot/zImage
wbz073 发表于 2014-2-20 21:59:49 | 显示全部楼层
错误信息不详,哪里出错的,把出错log发上来
 楼主| lukelang 发表于 2014-2-21 11:18:06 | 显示全部楼层
怎么查看出错log呀?我在Terminal里面复制出来的信息不多呀。
wbz073 发表于 2014-2-21 12:10:28 | 显示全部楼层
lukelang 发表于 2014-2-21 11:18
怎么查看出错log呀?我在Terminal里面复制出来的信息不多呀。

你多复制点信息,把这部分前后在多复制点,你看那里出现“erro”了,那部分才是关键。
 楼主| lukelang 发表于 2014-2-21 13:33:08 | 显示全部楼层
build/core/base_rules.mk:525: external/mtd-utils/new-utils/Android.mk: Module "ubinize" has useless module tags: eng. It will be installed anyway.
/bin/bash: xsltproc: 未找到命令
/bin/bash: xsltproc: 未找到命令
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录
find: `src': 没有那个文件或目录
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.

  Kernel: arch/arm/boot/Image is ready
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
make[2]: *** [arch/arm/boot/uImage] 错误 1
make[1]: *** [uImage] 错误 2
make[1]:正在离开目录 `/opt/Embedsky/TQIMX6/E9/TQIMX6_android-4.2.2/kernel_imx'
make: *** [out/target/product/sabresd_6dq/kernel] 错误 2
make: *** 正在等待未完成的任务....
E9 total built time = 118
wbz073 发表于 2014-2-21 15:50:01 | 显示全部楼层
lukelang 发表于 2014-2-21 13:33
build/core/base_rules.mk:525: external/mtd-utils/new-utils/Android.mk: Module "ubinize" has useless  ...

sudo apt-get install uboot-mkimage后编译
 楼主| lukelang 发表于 2014-2-21 17:19:38 | 显示全部楼层
uboot-mkimage做了,前面打find: `src': 没有那个文件或目录还是存在,后面多了这个问题
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/compr.c
In file included from external/mtd-utils/mkfs.ubifs/compr.c:27:
/usr/include/zlib.h:34: fatal error: zconf.h: 没有那个文件或目录
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/compr.o] 错误 1
make: *** 正在等待未完成的任务....
E9 total built time = 574
root@crownlu-X200:/opt/Embedsky/TQIMX6/E9/TQIMX6_android-4.2.2#
wbz073 发表于 2014-2-21 22:41:42 | 显示全部楼层
lukelang 发表于 2014-2-21 17:19
uboot-mkimage做了,前面打find: `src': 没有那个文件或目录还是存在,后面多了这个问题
host C: mkfs.ubi ...

这个错误时因为你没有执行安装我们那个搭建android环境的脚本,看手册去执行一遍,就过了
 楼主| lukelang 发表于 2014-2-24 10:50:29 | 显示全部楼层
#./ubuntu_env_install.sh
可以自动完成对库和 gcc 的安装。这个步骤做了。
root@crownlu-X200:/opt# echo ylapt-get install uuid-dev
ylapt-get install uuid-dev
root@crownlu-X200:/opt# echo ylapt-get install uuid
ylapt-get install uuid
root@crownlu-X200:/opt# echo ylapt-get install uuidcdef
ylapt-get install uuidcdef
root@crownlu-X200:/opt# echo ylapt-get install liblzo2-dev
ylapt-get install liblzo2-dev
root@crownlu-X200:/opt# echo ylapt-get install liblzo2-dev:i386
ylapt-get install liblzo2-dev:i386
root@crownlu-X200:/opt# echo ylapt-get install uuid-dev:i386
ylapt-get install uuid-dev:i386
编译后出现多信息如下
CPU number is 6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-rc3
OUT_DIR=out
============================================
build/core/base_rules.mk:525: external/mtd-utils/new-utils/Android.mk: Module "ubinize" has useless module tags: eng. It will be installed anyway.
/bin/bash: xsltproc: 未找到命令
/bin/bash: xsltproc: 未找到命令
^Croot@crownlu-X200:/opt/Embedsky/TQIMX6/E9/TQIMX6_android-4.2.2#
 楼主| lukelang 发表于 2014-2-24 12:00:26 | 显示全部楼层
host C++: llvm-rs-link <= frameworks/compile/slang/llvm-rs-link.cpp
Install: out/host/linux-x86/bin/mkbootimg
Install: out/host/linux-x86/bin/mke2fs
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/compr.c
In file included from external/mtd-utils/mkfs.ubifs/compr.c:27:
/usr/include/zlib.h:34: fatal error: zconf.h: 没有那个文件或目录
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/compr.o] 错误 1
make: *** 正在等待未完成的任务....
E9 total built time = 1192
root@crownlu-X200:/opt/Embedsky/TQIMX6/E9/TQIMX6_android-4.2.2#
wbz073 发表于 2014-2-24 12:03:54 | 显示全部楼层
lukelang 发表于 2014-2-24 10:50
#./ubuntu_env_install.sh
可以自动完成对库和 gcc 的安装。这个步骤做了。
root@crownlu-X200:/opt# ech ...

sudo apt-get install xsltproc安装这个软件包,可能你用的13.04与12.04 有些区别,我们12.04验证脚本执行后就可以编译,不会出错的
 楼主| lukelang 发表于 2014-2-24 12:38:16 | 显示全部楼层
host StaticLib: libLLVMBitWriter_2_9_func (out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMBitWriter_2_9_func_intermediates/libLLVMBitWriter_2_9_func.a)
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/compr.c
问题还是没有解决啊
In file included from external/mtd-utils/mkfs.ubifs/compr.c:27:
/usr/include/zlib.h:34: fatal error: zconf.h: 没有那个文件或目录
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/compr.o] 错误 1
make: *** 正在等待未完成的任务....
E9 total built time = 1529
root@crownlu-X200:/opt/Embedsky/TQIMX6/E9/TQIMX6_android-4.2.2#
wbz073 发表于 2014-2-25 11:19:20 | 显示全部楼层
lukelang 发表于 2014-2-24 12:38
host StaticLib: libLLVMBitWriter_2_9_func (out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMBitWriter_ ...

uuid的问题,现在源码编过了吧
 楼主| lukelang 发表于 2014-4-28 09:43:43 | 显示全部楼层
电脑换用Ubuntu12.04,更新ubuntu_env_install.tar.bz2,编译android源码通过
f839903061 发表于 2014-5-14 22:58:48 | 显示全部楼层
wbz073 发表于 2014-2-21 22:41
这个错误时因为你没有执行安装我们那个搭建android环境的脚本,看手册去执行一遍,就过了

您好,我用的ubuntu10.04     
gcc version 4.4.3   这个有影响吗?我看到文档上写的执行ubuntu_env_install.sh之后会安装4.6版本!!!

我现在编译android 源码也是遇到该问题

external/mtd-utils/mkfs.ubifs/mkfs.ubifs.c:1906: warning: implicit declaration of function ‘uuid_unparse_upper’
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/crc32.c
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs.o] 错误 1
make: *** 正在等待未完成的任务....

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-17 04:39 , Processed in 1.028255 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表