打印
[i.MX]

android 编译环境安装

[复制链接]
2132|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lqland|  楼主 | 2014-4-3 21:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 lqland 于 2014-4-3 21:24 编辑

$ sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386
上述安装,会提示如下信息,是何问题????
Reading package lists... Done
Building dependency tree      
Reading state information... Done
gnupg is already the newest version.
libc6-dev is already the newest version.
libc6-dev set to manually installed.
zip is already the newest version.
zip set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential : Depends: g++ (>= 4:4.4.3) but it is not installable
                   Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
g++-multilib:i386 : Depends: cpp:i386 (>= 4:4.6.3-1ubuntu5) but it is not going to be installed
                     Depends: gcc-multilib:i386 (>= 4:4.6.3-1ubuntu5) but it is not going to be installed
                     Depends: g++:i386 (>= 4:4.6.3-1ubuntu5) but it is not going to be installed
                     Depends: g++-4.6-multilib:i386 (>= 4.6.3-1~) but it is not going to be installed
git:i386 : Depends: perl-modules:i386 but it is not installable
            Depends: liberror-perl:i386 but it is not installable
            Depends: git-man:i386 (> 1:1.7.9.5) but it is not installable
            Depends: git-man:i386 (< 1:1.7.9.5-.) but it is not installable
            Recommends: less:i386 but it is not going to be installed
libgl1-mesa-dev : Depends: mesa-common-dev (= 8.0.4-0ubuntu0.7) or
                            mesa-common-dev-lts-quantal but it is not going to be installed or
                            mesa-common-dev-lts-raring but it is not going to be installed or
                            mesa-common-dev-lts-saucy but it is not going to be installed or
                            mesa-common-dev-lts-trusty but it is not installable
                   Depends: libxext-dev but it is not going to be installed
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.7)
                        Recommends: libgl1-mesa-dri:i386 (>= 7.2)
libx11-dev:i386 : Depends: x11proto-kb-dev:i386 but it is not installable
                   Depends: xtrans-dev:i386 but it is not installable
                   Recommends: libx11-doc:i386
x11proto-core-dev : Depends: xorg-sgml-doctools (>= 1:1.5) but it is not installable

相关帖子

沙发
FSL_TICS_ZJJ| | 2014-4-4 14:52 | 只看该作者
楼主,你一口气问那么多贴,一样的问题,你就发一帖就行了。

使用特权

评论回复
板凳
FSL_TICS_Rita| | 2014-4-4 14:55 | 只看该作者
楼主你好,请问你是想要下载android哪个版本的源码?

使用特权

评论回复
地板
lqland|  楼主 | 2014-4-4 15:05 | 只看该作者
楼上的老大,是我的帖子被删除了,现在一起恢复出来呢

使用特权

评论回复
5
FSL_TICS_Rita| | 2014-4-4 15:06 | 只看该作者
楼主你好,这里出现这个是由于apt-get 依赖版本过高的原因,你在google一下是可以搜索到的。解决办法,建议你下载android前,先更新一下你的源:
#sudo gedit /etc/apt/sources.list
Delete all item in this file, then copy the following server addresses to it (163 or Souhu):
163:
deb http://mirrors.163.com/ubuntu/ precise main restricted
deb-src http://mirrors.163.com/ubuntu/ precise main restricted
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
deb http://mirrors.163.com/ubuntu/ precise-security universe
deb-src http://mirrors.163.com/ubuntu/ precise-security universe
deb http://mirrors.163.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
保存退出。然后执行命令:
#sudo apt-get update
更新之后,你再安装那些包的话就不会有问题了。

使用特权

评论回复
6
FSL_TICS_Rita| | 2014-4-8 15:42 | 只看该作者
楼主你好,如果这个问题你已经解决,麻烦把贴结了,如果没有,欢迎继续在这里讨论。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

78

主题

387

帖子

1

粉丝