caixuanxian 发表于 2016-3-10 21:55:31

编译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:11

编译lollipop需要jdk7:http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_android_lollipop

caixuanxian 发表于 2016-3-11 17:11:01

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: “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: *** 错误 1
make: *** 错误 2
make: *** 错误 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:19

/bin/sh: 1: lzop: not found
你的环境还是没装好,上面那个链接再查一下那些工具忘记忘记装了

caixuanxian 发表于 2016-3-12 16:05:36

zhansb 发表于 2016-3-11 17:57
/bin/sh: 1: lzop: not found
你的环境还是没装好,上面那个链接再查一下那些工具忘记忘记装了

还是没成功,到编译Android 内核时make -j8 失败;
是完全按照你给的链接操作,还是要结合开荒贴。。。
真心不懂,望详细解释下,大神。。。。

caixuanxian 发表于 2016-3-13 23:09:50

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: *** 错误 1
make: *** 正在等待未完成的任务....

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

牛头 发表于 2016-3-15 11:28:19

搞好编译环境了吗?WIKI里提到的工具都必须安装,不能有遗漏哦。

pmos1981 发表于 2016-4-20 16:09:42

由樓上大大提醒
我去此網站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
页: [1]
查看完整版本: 编译Android内核时提示java版本不正穷