我正在尝试为AOSP建立一个
Linux构建环境.我有Ubuntu-12.04.4-desktop-amd64分配.我按照
here给出的说明做了一切.
我输入terminal命令来安装必要的包:
我输入terminal命令来安装必要的包:
$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
然后我收到一条错误消息:
The following packages have unmet dependencies: libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.7) Recommends: libgl1-mesa-dri:i386 (>= 7.2) E: Unable to correct problems,you have held broken packages.
所以合乎逻辑的做法是sudo apt-get install libgl1-mesa-dri:i386,然后得到以下消息:
The following packages will be REMOVED: libgl1-mesa-dri-lts-quantal libxatracker1-lts-quantal ubuntu-desktop xorg xserver-xorg-lts-quantal xserver-xorg-video-all-lts-quantal xserver-xorg-video-vmware-lts-quantal The following NEW packages will be installed: libdrm-intel1:i386 libdrm-nouveau1a:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386 libffi6:i386 libgl1-mesa-dri:i386 libllvm3.0:i386 libpciaccess0:i386 libstdc++6:i386
我担心的是它将要拆除的包装.在我看来,如果我允许删除,我会松开我的桌面环境.
有人对此有什么想法吗?
解决方法
我解决了这个问题.执行以下操作,安装除libgl1-mesa-glx:i386之外的所有软件包:
$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-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386
安装libglapi-mesa-lts-saucy:i386而不是libgl1-mesa-glx:i386:
$sudo apt-get install libglapi-mesa-lts-saucy:i386
现在您拥有正确的AOSP构建环境,并且不会丢失桌面环境.