打印
[i.MX]

关于android编译环境的安装

[复制链接]
2424|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lqland|  楼主 | 2014-4-3 14:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我虚拟机的版本信息:
ocean@ubuntu:~$ sudo -v
ocean@ubuntu:~$ uname -r
3.11.0-19-generic
ocean@ubuntu:~$ sudo lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 12.04.4 LTS
Release:        12.04
Codename:        precise
ocean@ubuntu:~$ uname -n
ubuntu
ocean@ubuntu:~$ uname -m
x86_64
安装android 所需要的安装包:
ocean@ubuntu:~$ 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
E: Unable to correct problems, you have held broken packages.
===============
上述提示,是什么问题?

相关帖子

沙发
FSL_TICS_ZJJ| | 2014-4-4 14:51 | 只看该作者
楼主,你好,你的问题已经转交I.MX工程师,他会回答你。
请耐心等待。

使用特权

评论回复
板凳
FSL_TICS_Rita| | 2014-4-4 14:52 | 只看该作者
楼主你好,你试一下命令:$ 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-dri:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386

使用特权

评论回复
地板
FSL_TICS_Rita| | 2014-4-4 15:07 | 只看该作者
楼主你好,这里出现这个是由于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
更新之后,你再安装那些包的话就不会有问题了。

使用特权

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

本版积分规则

78

主题

387

帖子

1

粉丝