分页: 1 / 1

Ubuntu下安装OpenGL开发环境报错

发表于 : 2015-04-12 9:44
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,不太明白,多谢大神指教

Re: Ubuntu下安装OpenGL开发环境报错

发表于 : 2015-04-12 9:49
jackness
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,不太明白,多谢大神指教
我看到的东西,开放图形库(英语:Open Graphics Library,缩写为OpenGL)是个定义了一个跨编程语言、跨平台的应用程序接口(API)的规范,它用于生成二维、三维图像。这个接口由近三百五十个不同的函数调用组成,用来从简单的图形比特绘制复杂的三维景象。而另一种程序接口系统是仅用于Microsoft Windows上的Direct3D。OpenGL常用于CAD、虚拟实境、科学可视化程序和电子游戏开发。
很复杂我不懂!

Re: Ubuntu下安装OpenGL开发环境报错

发表于 : 2015-04-12 9:53
caogen19
jackness 写了:我看到的东西,开放图形库(英语:Open Graphics Library,缩写为OpenGL)是个定义了一个跨编程语言、跨平台的应用程序接口(API)的规范,它用于生成二维、三维图像。这个接口由近三百五十个不同的函数调用组成,用来从简单的图形比特绘制复杂的三维景象。而另一种程序接口系统是仅用于Microsoft Windows上的Direct3D。OpenGL常用于CAD、虚拟实境、科学可视化程序和电子游戏开发。
很复杂我不懂!
恩,是一个开放三维图形库,在Linux下有个叫mesa的库实现的,不过还是谢谢您

Re: Ubuntu下安装OpenGL开发环境报错

发表于 : 2015-04-12 10:43
caogen19
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也会出现依赖错误,不知道这一类如何解决,请大神帮忙看看哦