移植android4.1 mtk77平台上的代码编译不过解决

定位到    /media/monkey/77_driveronly/alps/mediatek/build/tools/checkEnv.py

确保:

        def checkGccVersion(self):
        gccVersion = commands.getoutput("%s --v" % self.gcc)
        pattern = re.compile(".*gcc.*?([\d\.]+)",re.S)
        match = pattern.match(gccVersion)
        if match:
            self.versionNo = match.group(1)
            number = self.versionNo.split(".")
            if int(number[0]) < 4 \
               or (int(number[0]) == 4 and int(number[1]) < 4) \
               or (int(number[0]) == 4 and int(number[1]) == 4 and int(number[2]) < 3):
                self.info = "your gcc version is lower than recommendation"
            elif int(number[0]) == 4 and int(number[1]) == 4 and int(number[2]) == 3:
               self.flag = "OK"
            else:
               self.flag = "WARNING"
               self.info = "your gcc version is higher than recommendation"
        else: self.versionNo = "unknown"
        gccBit = commands.getoutput("file -bL %s" % self.gcc)
        pattern = re.compile("ELF\s*(\d+)-bit\s*LSB\s*executable.*")
        match = pattern.match(gccBit)
        if match:
            self.bit = match.group(1)
        else:
            self.bit = "unknown"
        result("gcc",self.versionNo,self.bit,self.flag,self.info)
        if self.flag == "FAIL":
            global checkResult
            checkResult = 1

与之前保持一致,及gcc与系统配置一致

你可能感兴趣的:(移植android4.1 mtk77平台上的代码编译不过解决)