我正在尝试为AOSP设置Linux构建环境。我有Ubuntu-12.04.4-desktop-amd64发行版。我按照here给出的说明进行所有操作。
我输入了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
我担心的是将要删除的软件包。在我看来,如果允许删除,则我的 table 面环境会松散。
有人对此有任何想法吗?
最佳答案
我解决了这个问题。执行以下操作,安装除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构建环境,并且不会丢失 table 面环境。
关于android - Android,设置Linux构建环境libgl1-mesa-glx :i386 package have unmet dependencies,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23254439/