hikey960 编译错误,求解  

分享到:

tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午9:33  

[ 98% 50394/51408] Docs droiddoc: out/target/common/docs/test-api-stubs
DroidDoc took 24 sec. to write docs to out/target/common/docs/test-api-stubs
[ 98% 50395/51408] Docs droiddoc: out/target/common/docs/system-api-stubs
DroidDoc took 23 sec. to write docs to out/target/common/docs/system-api-stubs
[ 98% 50396/51408] Docs droiddoc: out/target/common/docs/api-stubs
DroidDoc took 26 sec. to write docs to out/target/common/docs/api-stubs
[ 98% 50397/51408] Building with Jack:...k_intermediates/with-local/classes.dex
FAILED: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex
/bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
Communication error with Jack server (52). Try 'jack-diagnose'
ninja: build stopped: subcommand failed.
23:49:03 ninja failed with: exit status 1
make: *** [run_soong_ui] 错误 1

#### make failed to build some targets (02:32:17 (hh:mm:ss)) ####


回复引用
DragonCat
Level 2Admin
注册时间:7年 前
帖子数: 42
2017年6月23日 上午9:47  

首先核对一下你的做法是否正确,将vendor放入AOSP中,编译,可以生成初始android镜像,如需要修改hikey960 kernel(linaro-hikey )代码,可以将linaro-hikey 拷贝到AOSP根目录中,编译linaro-hikey,获得两个关键文件,替换相应目录文件,在进行编译AOSP就可以编译出新的android镜像。


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午9:53  

一定要编译两次吗? 我把vendor的放到里面了,同时也把kernel两个文件放到里面了,然后一起编译的。


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午10:02  

没有执行make bootimage -j24 而是 直接make -j32  全部重新编译的,之前编译的 make clean了


回复引用
wolfkin
Level 2Admin
注册时间:7年 前
帖子数: 27
2017年6月23日 上午10:18  

在aosp中因为make -j32不会编译到kernel源码,而是直接封装kernel镜像,所以要先make bootimage -j24 再 make -j32


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午10:48  

我已经编译kernel,并将两个需要的文件放到指定目录了,还需要在运行一次make bootimage -j24 是吗? 我的kernel和aosp不在一个目录,需要在kernel目录,还是aosp目录进行make bootimage -j24 呢? 谢谢!


回复引用
DragonCat
Level 2Admin
注册时间:7年 前
帖子数: 42
2017年6月23日 上午10:57  

我已经编译kernel,并将两个需要的文件放到指定目录了,还需要在运行一次make bootimage -j24 是吗?

回复:不用,直接编译aosp就可以编译出android镜像。

make bootimage -j24  这个用来生成boot.img 等,如你只修改驱动文件,就可以执行make bootimage ,还是建议将linaro-hikey 放入aosp方便 些, 会直接生成boot.img在out路径下


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午10:59  

 

然后如 3 中提到方法编译 hikey960 aosp,就可以获得新的 android 镜像。 6.编译 kernel

 make bootimage -j24

文档上这个地方的顺序就很不清楚,是要make -j32之后,再make bootimage -j24 吗? 我现在 make -j32 不行。

回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午11:14  

好的,放到aosp根目录吗? 之前空间不够,所以分开。


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午11:17  

我好像没有  jack server,需要安装这个吗? 


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 上午11:30  

FAILED: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex 
/bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
Communication error with Jack server (52). Try 'jack-diagnose'

我这个错误是 jack server通信导致的吧,碰到过吗?应该和编译顺序无关。


回复引用
windsdream
Level 0
注册时间:7年 前
帖子数: 1
2017年6月23日 上午11:40  

同样的问题,求解~


回复引用
tonyfang
Level 1
注册时间:7年 前
帖子数: 15
2017年6月23日 下午2:02  

http://www.th7.cn/system/lin/201702/202334.shtml 参考一下这个,我的可以了


回复引用
  
Working

登陆 或者 注册