77编译问题
忘了我的内存是4G的
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
装了java1.6.0-29,
其中checkenv.log内容:
Build Environment Check Result Report
*************************************************************
[OS]: Ubuntu 10.04.4 (64-bit) [OK]
[Physical Memory Size] : 4002000 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error
[make]: 3.81 (64-bit) [OK]
[perl]: 5.10.1 (64-bit) [OK]
[python]: 2.6.5 (64-bit) [OK]
[arm-linux-androideabi-gcc]: 4.4.3 (32-bit) [OK]
[gcc]: 4.4.3 (64-bit) [OK]
[jdk]: 1.6.0_29 (64-bit) [OK]
[bison]: 2.4.1 (64-bit) [OK]
[flex]: 2.5.35 (64-bit) [OK]
[gperf]: 3.0.3 (64-bit) [OK]
[mingw]: Installed [OK]
[unix2dos/tofrodos]: Installed [OK]
*************************************************************
也是到building android时报错,LOG如下:
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/apps/CtsVerifier/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/apps/CtsVerifier/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/tests/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/tests/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/tests/tests/openglperf/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/tests/tests/openglperf/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/ApiDemos/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/ApiDemos/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/GlobalTime/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/GlobalTime/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/TtsEngine/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/TtsEngine/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/WiFiDirectDemo/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/development/samples/WiFiDirectDemo/assets/': No such file or directory
find: `mediatek/source/frameworks/base/media/java/android': No such file or directory
find: `mediatek/source/frameworks/base/core/java/android': No such file or directory
find: `mediatek/source/frameworks/base/telephony/java/android': No such file or directory
find: `mediatek/source/frameworks/base/media/java/android': No such file or directory
find: `mediatek/source/frameworks/base/core/java/android': No such file or directory
find: `mediatek/source/frameworks/base/telephony/java/android': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/core/res/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/core/res/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/core/tests/ConnectivityManagerTest/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/core/tests/ConnectivityManagerTest/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/core/tests/coretests/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/core/tests/coretests/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/packages/SystemUI/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/packages/SystemUI/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/tests/DumpRenderTree/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/tests/DumpRenderTree/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/tests/DumpRenderTree2/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/tests/DumpRenderTree2/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/tests/LargeAssetTest/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/frameworks/base/tests/LargeAssetTest/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/tests/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/tests/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/demos/App/ngin3dDemo/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/demos/App/ngin3dDemo/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/demos/Widget/Clock3D/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/demos/Widget/Clock3D/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/demos/Widget/Folders3D/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/ngin3d/demos/Widget/Folders3D/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/themes/theme-res-mint/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/themes/theme-res-mint/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/themes/theme-res-mocha/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/themes/theme-res-mocha/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/themes/theme-res-raspberry/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/frameworks/themes/theme-res-raspberry/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/packages/Weather3D/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/mediatek/source/packages/Weather3D/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Browser/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Browser/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/DeskClock/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/DeskClock/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Email/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Email/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Exchange/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Exchange/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Settings/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Settings/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/providers/ContactsProvider/tests/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/providers/ContactsProvider/tests/assets/': No such file or directory
无语了,到底问题出在哪呢?
那些文件没找到?
**********checking Env************
Your building environment is OK
The detail information is in "checkenv.log"!
*************************************************
2012/11/23 23:13:25 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:13:26
2012/11/23 23:13:30 cleaning preloader...
LOG: out/target/product/mobitek77_m01_ics2_preloader.log
==> [OK] 2012/11/23 23:13:30
2012/11/23 23:13:32 cleaning uboot...
LOG: out/target/product/mobitek77_m01_ics2_uboot.log
==> [OK] 2012/11/23 23:13:37
2012/11/23 23:13:39 cleaning kernel...
LOG: out/target/product/mobitek77_m01_ics2_kernel.log
==> [OK] 2012/11/23 23:13:55
2012/11/23 23:13:57 cleaning android...
LOG: out/target/product/mobitek77_m01_ics2_android.log
==> [OK] 2012/11/23 23:14:04
2012/11/23 23:14:04 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:14:51
2012/11/23 23:14:51 javaoptgening ...
LOG: out/target/product/mobitek77_m01_ics2_javaoptgen.log
==> [OK] 2012/11/23 23:14:51
2012/11/23 23:14:51 nandgening ...
LOG: out/target/product/mobitek77_m01_ics2_nandgen.log
==> [OK] 2012/11/23 23:14:52
2012/11/23 23:14:52 ptgening ...
LOG: out/target/product/mobitek77_m01_ics2_ptgen.log
==> [OK] 2012/11/23 23:14:53
2012/11/23 23:14:53 drvgening...
LOG: out/target/product/mobitek77_m01_ics2_drvgen.log
==> [OK] 2012/11/23 23:14:53
BT database auto-gen process disabled due to BT_DB_AUTO_GEN_SCRIPTS_PATH is not exist.
2012/11/23 23:14:53 codegening ...
LOG: out/target/product/mobitek77_m01_ics2_codegen.log
==> [OK] 2012/11/23 23:14:54
2012/11/23 23:14:56 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:14:57
2012/11/23 23:15:10 building preloader...
LOG: out/target/product/mobitek77_m01_ics2_preloader.log
==> [OK] 2012/11/23 23:15:25
2012/11/23 23:15:27 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:15:27
2012/11/23 23:15:29 building uboot...
LOG: out/target/product/mobitek77_m01_ics2_uboot.log
==> [OK] 2012/11/23 23:17:03
2012/11/23 23:17:04 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:17:05
2012/11/23 23:17:07 building kernel...
LOG: out/target/product/mobitek77_m01_ics2_kernel.log
==> [OK] 2012/11/23 23:20:57
2012/11/23 23:20:59 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:20:59
2012/11/23 23:21:03 check-modeming ...
LOG: out/target/product/mobitek77_m01_ics2_check-modem.log
==> [OK] 2012/11/23 23:21:03
2012/11/23 23:21:03 custgening...
LOG: out/target/product/mobitek77_m01_ics2_custgen.log
==> [OK] 2012/11/23 23:21:04
2012/11/23 23:21:04 sign-modeming ...
LOG: out/target/product/mobitek77_m01_ics2_sign-modem.log
==> [OK] 2012/11/23 23:21:04
2012/11/23 23:21:04 building android...
LOG: out/target/product/mobitek77_m01_ics2_android.log
out/target/product/mobitek77_m01_ics2_android.log_err
==> [FAIL] 2012/11/24 00:41:06
make[2]: *** [android] Error 1
make[1]: *** [remake] Error 2
make: *** [remakeall] Error 1
root@ubuntu:/home/alps#
LOG里面内容一堆:
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/apps/CtsVerifier/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/apps/CtsVerifier/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/tests/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/cts/tests/assets/': No such file or directory
中间省略
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Settings/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/apps/Settings/assets/': No such file or directory
cp: cannot stat `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/providers/ContactsProvider/tests/assets': No such file or directory
find: `mediatek/custom/mobitek77_m01_ics2/resource_overlay/generic/packages/providers/ContactsProvider/tests/assets/': No such file or directory
make[3]: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 3
不知道什么原因呢?
是不是JDK没有装好?
我也怀疑,但是查看JDK是装好的,而且编译开始时环境检测也过了,现在装的是JAVA 1.6 的,难道要装JAVA 1.5?
1.6后面的版本号呢?
#java -version
java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22,mixed mode)
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
这是我的
MTK 好像是要求16.0_23以上的,有空试试
个人建议吧 内存加到8G,然后查下库,看是否有库没有更新。我以前也遇到这样的问题,是却库,不过我是在12.04上编译出现,我现在用的就是12.04. 不删除生成的log ,直接clean下 在new,看是否就编译过去了。
用75 编译验证下你的环境是不是好的
能不能更详细些呢? 不然没法看到问题。
折腾了一下,终于编过去了,先clean,然后source,最后new
谢谢各位了
我平时编译代码都没有这么搞过。
哪你现在每次NEW 前都要CLEAN 吗?
不用每次都clean了,可能这个包之前在别的机子装的环境中编译过的原因吧,神奇……
sudo apt-get install wine
Build Environment Requirement
=============================================================
* ********* Suggested OS and Tool Chain to install *********
*
* OS : Linux distribution Ubuntu 10.04
* Memory Size : 4G or above
* make : GNU Make 3.81 or above
* perl : Version 5.10.X
* python : Version 2.6.X
* arm-linux-androideabi-gcc : Version 4.4.X
* gcc : Version 4.4.3
* jdk : Version 1.6.X
* bison : Version 2.4.X
* flex : Version 2.5.X
* gperf : Version 3.0.X
* mingw : Installed
* unix2dos/tofrodos : Installed
* **********************************************************
=============================================================
Build Environment Check Result Report
*************************************************************
[OS]: Ubuntu 10.04.4 (64-bit) [OK]
[Physical Memory Size] : 16142292 K-Bytes [OK]
[make]: 3.81 (64-bit) [OK]
[perl]: 5.10.1 (64-bit) [OK]
[python]: 2.6.5 (64-bit) [OK]
[arm-linux-androideabi-gcc]: 4.4.3 (32-bit) [OK]
[gcc]: 4.4.3 (64-bit) [OK]
[jdk]: 1.6.0_43 (64-bit) [OK]
[bison]: 2.4.1 (64-bit) [OK]
[flex]: 2.5.35 (64-bit) [OK]
[gperf]: 3.0.3 (64-bit) [OK]
[mingw]: Installed [OK]
[unix2dos/tofrodos]: Installed [OK]
你的内存是不是少了点啊
[Physical Memory Size] : 4002000 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error
简单说就是你的内存不够!
修改definitions.mk文件 此文件位于build/core/目录下
修改变量 :transform-classes.jar-to-dex中的-JXms16M -JXmx1024M值
代码中的变量定义:
define transform-classes.jar-to-dex
@echo "target Dex: $(PRIVATE_MODULE)"
@mkdir -p $(dir $@)
$(hide) $(DX) \
$(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx1024M) \
--dex --output=$@ \
$(if $(NO_OPTIMIZE_DX), \
--no-optimize) \
$(if $(GENERATE_DEX_DEBUG), \
--debug --verbose \
--dump-to=$(@:.dex=.lst) \
--dump-width=1000) \
$(PRIVATE_DX_FLAGS) \
$<
endef
将-JXms16M -JXmx1024M 修改成适当的值
我的机器是内存是32G的,我将-JXms16M -JXmx1024M修改为-JXms1024M -JXmx2048M
具体值的大小要根据具体机器的内存而定,内存太少设置的值大一样会出现问题。
小编能说一下解决问题的细节么?我也遇到相同的问题,不胜感激!
小编能详细说下解决问题的方法么?不胜感激!
小编 你的代码能否给我一份么 791254467@qq.com 不胜感激 我找不到6577的代码阿
LOG就这些?这些没错啊,找不到这些文件不是错误,不会中断编译的
你好,,能否把你编译好的这个系统发一份给我,多谢!
怎么解的呀 我也这样 编译不过哦。
什么平台?
LCA的还是JB的?
LCA的 6572
你看看vendor这里面是不是没有LCA的东西?