测试QT测试项目时出错

测试QT测试项目时出错,qt,makefile,qmake,kubuntu,Qt,Makefile,Qmake,Kubuntu,我已经开始在Kubuntu上使用QT。我首先通过软件包管理器安装了g++。然后我安装了Qt5.0.1。然后我做了一个测试项目来检查是否一切都是正确的。然后我发现了以下问题。 -找不到-lGL -collect2:错误:Id返回1退出状态 我看到了编译输出 11:32:05: Running steps for project untitled2... 11:32:05: Configuration unchanged, skipping qmake step. 11:32:05: Startin

我已经开始在Kubuntu上使用QT。我首先通过软件包管理器安装了g++。然后我安装了Qt5.0.1。然后我做了一个测试项目来检查是否一切都是正确的。然后我发现了以下问题。 -找不到-lGL -collect2:错误:Id返回1退出状态

我看到了编译输出

11:32:05: Running steps for project untitled2...
11:32:05: Configuration unchanged, skipping qmake step.
11:32:05: Starting: "/usr/bin/make" -w
make: Entering directory `/home/harsh/Desktop/untitled2-build-Desktop_Qt_5_0_1_GCC_64bit-Debug'
g++ -m64 -Wl,-rpath,/home/harsh/Qt5.0.1/5.0.1/gcc_64 -Wl,-rpath,/home/harsh/Qt5.0.1/5.0.1/gcc_64/lib -o untitled2 main.o mainwindow.o moc_mainwindow. -L/usr/X11R6/lib64 -L/home/harsh/Qt5.0.1/5.0.1/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [untitled2] Error 1
make: Leaving directory `/home/harsh/Desktop/untitled2-build-Desktop_Qt_5_0_1_GCC_64bit-Debug'
11:32:05: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled2 (kit: Desktop Qt 5.0.1 GCC 64bit)
When executing step 'Make'
请帮助我修复这些错误。

Qt!=QT

错误会告诉您错误所在,编译器无法找到
libGL.so
。它通常位于/usr/lib64中