Não é possível obter o OpenGL para instalar [duplicado]

2

Quando tento executar um aplicativo de exemplo, ele diz que está faltando um arquivo que é encontrado no OpenGL. Eu encontrei informações online e tentei instalar o OpenGL com o seguinte comando:

sudo apt-get install libglu1-mesa-dev freeglut3-dev 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.
 freeglut3-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                          libgl-dev
                 Depends: libxt-dev but it is not going to be installed
                 Depends: libxext-dev but it is not going to be installed
 libglu1-mesa-dev : Depends: libglu1-mesa (= 8.0.2-0ubuntu3) but 8.0.4-0ubuntu0.4 is to be installed
                    Depends: libgl1-mesa-dev but it is not going to be installed or
                             libgl-dev
 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.

Como corrijo isso?

    
por JasonD33 19.04.2013 / 16:23

2 respostas

1

Você só precisa fazer

sudo apt-get install freeglut3-dev
    
por thefourtheye 19.04.2013 / 16:53
0

Apenas tente isto:

sudo apt-get install freeglut3 freeglut3-dev

E adicione o linker para o caso de versões mais recentes do Ubuntu

sudo apt-get install binutils-gold
    
por Olupot Douglas 24.09.2013 / 14:35