qt5:找不到-lGL

时间:2015-10-23 02:33:25

标签: qt install apt-get

我在我的项目中使用Qt5,但在今天重新安装我的Ubuntu 15.04后,我无法在Qt Creator中编译我的代码。我收到两条错误消息

cannot find -lGL
collect2: error: ld returned 1 exit status

任何人都有任何想法?我曾经通过安装库解决它:

sudo apt-get install libglu1-mesa-dev

但它现在对我不起作用。这是我从终端获得的: 以下信息可能有助于解决问题:

The following packages have unmet dependencies:
 libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                             libgl-dev
E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:0)

因为我看过这个:

Cannot start '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

然后可以在此处找到解决方案:cmake not working, could not exec qmake