Qt 5.0构建警告

Qt 5.0构建警告,qt,gcc,fedora,Qt,Gcc,Fedora,我已经在Fedora17上安装了Qt5.0(整个SDK)。我已经配置了编译器(GCC),一切似乎都很正常,只是当我按“Ctrl-R”进行GUI编码演示时,出现以下错误: make: Entering directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug' g++ -Wl,-rpath,/opt/Qt/5.0.1/gcc -Wl,-rpath,/opt/Qt/5.0

我已经在Fedora17上安装了Qt5.0(整个SDK)。我已经配置了编译器(GCC),一切似乎都很正常,只是当我按“Ctrl-R”进行GUI编码演示时,出现以下错误:

make: Entering directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
g++ -Wl,-rpath,/opt/Qt/5.0.1/gcc -Wl,-rpath,/opt/Qt/5.0.1/gcc/lib -o untitled main.o mainwindow.o moc_mainwindow.o   -L/opt/Qt/5.0.1/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
**/usr/bin/ld: cannot find -lGL**
make: Leaving directory `/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
collect2: error: ld returned 1 exit status
make: *** [untitled] Error 1
04:07:17: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.0.1 GCC 32bit)
When executing step 'Make'.
(上面的错误是找不到名为-lGL的文件)


如何解决此错误?

您需要安装libGL开发文件。我已经有一段时间没有使用Fedora了,但是请检查您的包管理器,查看名为
mesa libGL-devel
的包