Lorsque j'essaie d'exécuter un exemple d'application, il indique qu'il me manque un fichier trouvé dans OpenGL. J'ai trouvé des informations en ligne et j'ai essayé d'installer OpenGL avec la commande suivante:
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.
Comment puis-je réparer ça ?
Vous avez juste besoin de faire
Sudo apt-get install freeglut3-dev
Essayez ceci:
Sudo apt-get install freeglut3 freeglut3-dev
Et ajoutez l'éditeur de liens pour le cas des nouvelles versions d'Ubuntu
Sudo apt-get install binutils-gold