错误提示:
g++ -Wl,-O1 -Wl,-rpath,/opt/Qt5.3.1/5.3/gcc -Wl,-rpath,/opt/Qt5.3.1/5.3/gcc/lib -o cline main.o widget.o moc_widget.o -L/opt/Qt5.3.1/5.3/gcc/lib -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [cline] Error 1
解决办法:
apt-get install libglu1-mesa-dev