九鼎创展论坛

标题: ./mk -s时出现这个错误,如何解决 [打印本页]

作者: ocno    时间: 2015-7-2 08:37
标题: ./mk -s时出现这个错误,如何解决
./mk -s时出现这个错误,如何解决



including sdk/bash_completion/adb.bash
build/core/main.mk:45:


********************************************************************************
build/core/main.mk:46: *  You are using version 4.0 of make.
build/core/main.mk:47: *  Android can only be built by versions 3.81 and 3.82.
build/core/main.mk:48: *  see https://source.android.com/source/download.html
build/core/main.mk:49: ********************************************************************************

作者: pilgrim_kevin    时间: 2015-7-3 15:33
提示得非常清楚了,make的版本。
安装对应版本的make。
作者: ocno    时间: 2015-7-5 15:04
chen@ubuntu:~/android$ ./mk -s
including device/asus/flo/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/9tripod/x4412/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/main.mk:45: ********************************************************************************
build/core/main.mk:46: *  You are using version 4.0 of make.
build/core/main.mk:47: *  Android can only be built by versions 3.81 and 3.82.
build/core/main.mk:48: *  see https://source.android.com/source/download.html
build/core/main.mk:49: ********************************************************************************
build/core/main.mk:50: *** stopping.  Stop.
chen@ubuntu:~/android$ gcc --version
gcc (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

chen@ubuntu:~/android$

make 是按照文档安装的是4.4,uboot和kernel编译都没有问题
系统用的是ubuntu 15.04,会不会是系统问题?
作者: pilgrim_kevin    时间: 2015-7-9 19:34
说得很清楚了是make的版本问题,最简单的办法就是从make的官方网址下载3.81/3.82的源码,自己编译安装一下即可。
作者: ocno    时间: 2015-7-11 15:34
make版本不符合要求,不能编译android的解决方法


Android can only be built by versions 3.81 and 3.82

下载地址ftp://ftp.gnu.org/gnu/make/

make3.8.2的安装步骤:

tar -zxvf make3.8.2.tar.gz

在make-3.8.2目录下

./configure

make

make install

一般情况下不会出现错误,在/usr/local/bin中可得到新版本的make,复制到/usr/bin中




欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/) Powered by Discuz! X3.2