当前位置: 首页 > article >正文

在 ubuntu10.04下 载 android源码 步骤

为什么80%的码农都做不了架构师?>>>   hot3.png

今天按照网上说的一些方法下载Android的源码时,报错,其信息如下
Traceback (most recent call last):
  File "/opt/android/bin/repo", line 595, in
    main(sys.argv[1:])
  File "/opt/android/bin/repo", line 562, in main
    _Init(args)
  File "/opt/android/bin/repo", line 181, in _Init
    _CheckGitVersion()
  File "/opt/android/bin/repo", line 210, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
由信息中可以看出是因主python程序执行时可能配置有问题,于是根据这个疑问进行了一下搜索,后来终于让我找到,原来是因为我有些依赖库没有安装。执行
$ sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
,然后再执行
$ repo init-u git://Android.git.kernel.org/platform/manifest.git
成功完成初始化,然后再
$ python repo sync
成功完成代码下载.

repo:

#!/bin/sh

## repo default configuration
##
REPO_URL='http://android.git.kernel.org/tools/repo.git'
REPO_REV='stable'

# Copyright (C) 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

 

manifest.xml:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote  name="korg"
           fetch="http://android.git.kernel.org/"
           review="review.source.android.com" />
  <default revision="master"
           remote="korg" />

  <project path="build" name="platform/build">
    <copyfile src="core/root.mk" dest="Makefile" />
  </project>

  <project path="bionic" name="platform/bionic" />

  <project path="bootable/bootloader/legacy" name="platform/bootable/bootloader/legacy" />
  <project path="bootable/diskinstaller" name="platform/bootable/diskinstaller" />
  <project path="bootable/recovery" name="platform/bootable/recovery" />

  <project path="cts" name="platform/cts" />

 

转载于:https://my.oschina.net/donghu/blog/10096

http://www.lryc.cn/news/2418171.html

相关文章:

  • E购通的商城系统
  • nutch 【配置与运行】
  • iptables端口转发配置实现
  • 分享88个搜索链接PHP源码,总有一款适合你
  • SUSE Studio 的用户可以透过 SUSE Gallery 分享做好的 Linux appliance
  • Linux 准确延时
  • 魔域富甲天下mysql打不开_《魔域》魔域3.2无敌版之富甲天下心得
  • 属兔的人今日运势-360星座网_【十二生肖明日运势查询】12月11日
  • BEV感知:BEV开山之作LSS(lift,splat,shoot)原理代码串讲
  • JAVA 异常Exception讲解
  • 一张图解释TCP和UDP有啥区别,太精辟了!
  • B 站出面回应源码泄露门事件!裁员报复还是反抗 996?
  • 区块链白皮书(2023年)
  • 【并发编程】--- interrupt、interrupted和isInterrupted使用详解
  • 需要了解下Android的Recovery模式
  • 世界上最难的视觉图_世界上最长的蛇有多长?四川惊现55米洪荒巨蟒(图)
  • 各种电子书格式及优缺点
  • 无限制版电驴搜索器(绿色版)
  • 塞尔达传说gba_3分钟快聊《塞尔达传说》全系列
  • 点子库
  • 古文中惊艳的句子,绝对有你想要的!
  • python初学入门————列表
  • 基于51单片机的12864液晶显示4X4矩阵键盘程序仿真
  • q讯家园看加密空间 官方免费版
  • 445port入侵详细解释
  • 如何优化百度搜索引擎?(10个技巧让你的网站更容易被搜索到)
  • MT6732芯片资料MT6732芯片最新参考设计MT6732芯片规格书
  • 验证邮箱平台
  • MEGA是Mega Limited公司推出的一款云存储服务。
  • ProEssentials的MFC 图表库在VS2019-VS2022上机试用教程