“erro: não é possível encontrar -lGL” no Qt creator 5.5.0 no Ubuntu 14.04 LTS

0

Eu estou tentando construir e executar um programa de exemplo no Qt creator 5.5.0 e a versão do Ubuntu é 14.04 LTS.

Toda vez que está dando um erro cannot find -lGL and id returns exit 0 .

Eu tentei resolver esse problema instalando as bibliotecas GL, mas quando executo sudo apt-get install libglu1-mesa-dev , obtenho

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libglu1-mesa-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libglu1-mesa-dev' has no installation candidate

Eu também tentei outros comandos como

  1. sudo apt-get update
  2. %código%. e muitos outros.

saída de cat sudo apt-get install freeglut3-dev is

root@user-HP-Pavilion-g6-Notebook-PC:/home/user# cat /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
deb-src  us.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse #Added by software-properties
deb us.archive.ubuntu.com/ubuntu/ trusty-proposed universe multiverse main restricted
deb-src us.archive.ubuntu.com/ubuntu/ trusty-proposed universe multiverse main restricted #Added by software-properties
deb us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse main restricted
deb-src us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse main restricted #Added by software-properties
deb  security.ubuntu.com/ubuntu/ trusty-security universe multiverse main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security universe multiverse main restricted #Added by software-properties
deb /us.archive.ubuntu.com/ubuntu/ trusty-backports multiverse main universe restricted

Como devo proceder?

    
por Rishi Tripathi 28.07.2015 / 08:11

1 resposta

0

Você pode executar sudo apt-get install mesa-common-dev antes de executar sudo apt-get install libglu1-mesa-dev -y

Boa sorte: D

    
por Hien Nguyen 13.01.2016 / 08:03