Firefly开源社区

标题: 编译Android内核时提示java版本不正穷 [打印本页]

作者: caixuanxian    时间: 2016-3-10 21:55
标题: 编译Android内核时提示java版本不正穷
刚接触这个,按照开荒教程操作,编译Android内核出现如下提示,怎么破。。。。
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.

Your version is: java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode).
The required version is: "1.7.x"

Please follow the machine setup instructions at
    https://source.android.com/source/initializing.html

作者: zhansb    时间: 2016-3-11 08:57
编译lollipop需要jdk7:http://wiki.t-firefly.com/index. ... ld_android_lollipop
作者: caixuanxian    时间: 2016-3-11 17:11
zhansb 发表于 2016-3-11 08:57
编译lollipop需要jdk7:http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_android_lollipop

使用Firefly-RK3288-Reload 编译内核:
cd ~/proj/firefly-rk3288-lollipop/kernel
make firefly-rk3288-reload_defconfig
make -j8 firefly-rk3288-reload.img

:'(:'(:'(  error:

make[1]: “arch/arm/boot/dts/firefly-rk3288-reload.dtb”是最新的。
  GEN     drivers/video/rockchip/screen/lcd.h
  Kernel: arch/arm/boot/Image is ready
  LZO     arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] 错误 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] 错误 2
make: *** [zImage] 错误 2
make: INTERNAL: Exiting with 9 jobserver tokens available; should be 8!

#### make failed to build some targets (6 seconds) ####

help!!!!:'(
作者: zhansb    时间: 2016-3-11 17:57
/bin/sh: 1: lzop: not found
你的环境还是没装好,上面那个链接再查一下那些工具忘记忘记装了
作者: caixuanxian    时间: 2016-3-12 16:05
zhansb 发表于 2016-3-11 17:57
/bin/sh: 1: lzop: not found
你的环境还是没装好,上面那个链接再查一下那些工具忘记忘记装了

还是没成功,到编译Android 内核时  make -j8 失败;
是完全按照你给的链接操作,还是要结合开荒贴。。。
真心不懂,望详细解释下,大神。。。。
作者: caixuanxian    时间: 2016-3-13 23:09
zhansb 发表于 2016-3-11 17:57
/bin/sh: 1: lzop: not found
你的环境还是没装好,上面那个链接再查一下那些工具忘记忘记装了

我重新弄了一次,还是不行。。。。。跪求解答。。。。

Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
make: *** [out/target/product/rk3288_box/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_base_gyp_intermediates/v8/src/compiler/js-graph.o] 错误 1
make: *** 正在等待未完成的任务....

#### make failed to build some targets (54:35 (mm:ss)) ####

作者: 牛头    时间: 2016-3-15 11:28
搞好编译环境了吗?WIKI里提到的工具都必须安装,不能有遗漏哦。
作者: pmos1981    时间: 2016-4-20 16:09
由樓上大大提醒
我去此網站  http://source.android.com/source/initializing.html

sudo apt-get update
sudo dpkg -i {downloaded.deb file}

之後再執行  http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_android
14.04LTS 版本
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev \
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl \
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils \
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline-gplv2-dev gcc-multilib libswitch-perl

可以解決
/bin/sh: 1: lzop: not found   問題
成功
  Kernel: arch/arm/boot/zImage is ready
  Image:  kernel.img is ready
Pack to resource.img successed!
Image:  resource.img (with firefly-rk3288.dtb logo.bmp) is ready





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1