less than 1 minute read

1 安装

#egl libEGL.so
apt-get install libegl1-mesa-dev

# opengl es libGLESv2.so
apt-get install libgles2-mesa
apt-get install libgles2-mesa-dev

# opengl
apt-get install mesa-common-dev

2 报错

2.1 依赖冲突

apt-get install libegl1-mesa-dev

报错:

The following packages hace unmet dependencies:
libegl1-mesa-dev : Depends: libx11-dev but it is not going to be installed
                    Depends: libxext-dev but it is not going to be installed
                    Depends: libxxf86vm-dev but it is not going to be installed
                    Depends: libxdamage-dev but it is not going to be installed
                    Depends: libxfixes-dev but it is not going to be installed
                    Depends: libxcb-glx0-dev but it is not going to be installed
                    Depends: libxcb-dri2-0-dev but it is not going to be installed
                    Depends: libxcb-dri3-dev but it is not going to be installed
                    Depends: libxcb-present-dev but it is not going to be installed
                    Depends: libxcb-sync-dev but it is not going to be installed
                    Depends: libx11-xcb-dev but it is not going to be installed
                    Depends: libwayland-dev (>= 1.11.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

方案一【失败】: 使用 aptitude 代替 apt,智能解决依赖

apt isntall atptitude
# 无效

方案二【失败】: 先 uplast_modified_atupgrade

方案三【失败】apt-get install -f


TOP

附录

A 参考资料

Comments