Qt:找不到-lGL错误 [英] Qt: can't find -lGL error
本文介绍了Qt:找不到-lGL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚重新安装QtCreator,创建了新项目( Qt应用程序)编译后得到这个:
I just reinstalled QtCreator, created new project (Qt Application) an got this after compilation:
/usr/bin/ld: **cannot find -lGL**
collect2: error: ld returned 1 exit status
make: *** [untitled1] Error 1
18:07:41: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.1.0 GCC 32bit)
When executing step 'Make'
( Project is empty,I didnn commit any changes
Qt Creator 2.7.2
基于Qt 5.1.0(32位元)
Ubuntu 13.04
Qt Creator 2.7.2
Based on Qt 5.1.0 (32 bit)
Ubuntu 13.04
如何解决这个问题?
推荐答案
安装软件包libgl1-mesa-dev:
Install package "libgl1-mesa-dev":
sudo apt-get install libgl1-mesa-dev
这篇关于Qt:找不到-lGL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文