大家好,我在ubuntu下安装OpenGL提示下面错误:
sudo apt-get install mesa-common-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
mesa-common-dev : Depends: libx11-dev but it is not going to be installed
Depends: libdrm-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
看提示好像是依赖libx-11,但是去apt-get install libx11-dev又会出现类似错误,刚开始xuexi,不太明白,多谢大神指教
Ubuntu下安装OpenGL开发环境报错
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 6
- 注册时间: 2012-01-03 20:52
- jackness
- 帖子: 353
- 注册时间: 2010-08-02 8:19
- 系统: windows7旗舰版 ubuntu
Re: Ubuntu下安装OpenGL开发环境报错
我看到的东西,开放图形库(英语:Open Graphics Library,缩写为OpenGL)是个定义了一个跨编程语言、跨平台的应用程序接口(API)的规范,它用于生成二维、三维图像。这个接口由近三百五十个不同的函数调用组成,用来从简单的图形比特绘制复杂的三维景象。而另一种程序接口系统是仅用于Microsoft Windows上的Direct3D。OpenGL常用于CAD、虚拟实境、科学可视化程序和电子游戏开发。caogen19 写了:大家好,我在ubuntu下安装OpenGL提示下面错误:
sudo apt-get install mesa-common-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
mesa-common-dev : Depends: libx11-dev but it is not going to be installed
Depends: libdrm-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
看提示好像是依赖libx-11,但是去apt-get install libx11-dev又会出现类似错误,刚开始xuexi,不太明白,多谢大神指教
很复杂我不懂!
-
- 帖子: 6
- 注册时间: 2012-01-03 20:52
Re: Ubuntu下安装OpenGL开发环境报错
恩,是一个开放三维图形库,在Linux下有个叫mesa的库实现的,不过还是谢谢您jackness 写了:我看到的东西,开放图形库(英语:Open Graphics Library,缩写为OpenGL)是个定义了一个跨编程语言、跨平台的应用程序接口(API)的规范,它用于生成二维、三维图像。这个接口由近三百五十个不同的函数调用组成,用来从简单的图形比特绘制复杂的三维景象。而另一种程序接口系统是仅用于Microsoft Windows上的Direct3D。OpenGL常用于CAD、虚拟实境、科学可视化程序和电子游戏开发。
很复杂我不懂!
-
- 帖子: 6
- 注册时间: 2012-01-03 20:52
Re: Ubuntu下安装OpenGL开发环境报错
sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
aptitude : Depends: libapt-pkg4.10
Depends: libept1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
安装aptitude也会出现依赖错误,不知道这一类如何解决,请大神帮忙看看哦
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
aptitude : Depends: libapt-pkg4.10
Depends: libept1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
安装aptitude也会出现依赖错误,不知道这一类如何解决,请大神帮忙看看哦