编译 Android 7.1出错
本帖最后由 sz_yys63 于 2018-8-9 18:06 编辑按照ROC-RK3328-CC编译教程,一步一步操作。但是编译报
环境ubuntu18.04
1.安装 JDK 8成功;
2.安装环境包报错,提示非git-core,而是git;提示无lib32readline-gplv2-dev,去掉更新成功;提示无libesd0-dev,去掉更新成功;
3.android的sdk下载成功 mdk5也成功;但更新远程库,提示无origin;从 gitlab 处同步源码成功;
4.使用 Firefly 脚本编译报错
hc@ubuntu:~/proj/roc-rk3328-cc$ ./FFTools/make.sh -k -j8
~/proj/roc-rk3328-cc/kernel ~/proj/roc-rk3328-cc
File "/home/hc/proj/roc-rk3328-cc/kernel/scripts/gcc-wrapper.py", line 66
print "error, forbidden warning:", m.group(2)
^
<font color="#ff0000">SyntaxError: invalid syntax</font>
*** Error during writing of the configuration.
/home/hc/proj/roc-rk3328-cc/kernel/scripts/kconfig/Makefile:105: recipe for target 'firefly_defconfig' failed
make: *** Error 1
Makefile:524: recipe for target 'firefly_defconfig' failed
make: *** Error 2
5.不使用脚本编译也报错
No private recovery resources for TARGET_DEVICE roc_rk3328_cc_box
build/core/base_rules.mk:341: warning: overriding commands for target `out/target/product/roc_rk3328_cc_box/system/etc/init/bluetoothtbd.rc'
build/core/base_rules.mk:341: warning: ignoring old commands for target `out/target/product/roc_rk3328_cc_box/system/etc/init/bluetoothtbd.rc'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/roc_rk3328_cc_box/system/xbin/su'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/roc_rk3328_cc_box/system/xbin/su'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/roc_rk3328_cc_box/system/lib/libmpp.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/roc_rk3328_cc_box/system/lib/libmpp.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/roc_rk3328_cc_box/system/lib/libvpu.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/roc_rk3328_cc_box/system/lib/libvpu.so'
Starting build with ninja
ninja: Entering directory `.'
<font color="#ff0000">ninja: error: unknown target 'firefly_defconfig'</font>
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** Error 1
hc@ubuntu:~/proj/roc-rk3328-cc$
自己顶,没有人遇到吗? sz_yys63 发表于 2018-8-10 09:14
自己顶,没有人遇到吗?
应该是python版本不对
我是Python 2.7.6,你可以参考一下 leung先森 发表于 2018-8-10 17:15
应该是python版本不对
我是Python 2.7.6,你可以参考一下
楼主解决了吗?我也遇到这样的问题 lilinrong 发表于 2019-5-16 10:02
楼主解决了吗?我也遇到这样的问题
换个Python试试把
页:
[1]