2013-03-23 142 views
0

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

我在编译输出看到

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' 

请帮我修正这些错误。

回答

0

的Qt!= QT

错误告诉你什么是错的,编译器无法找到libGL.so。通常在/ usr/lib64中。