QT error: cannot find -lGL

自己电脑新搭建的QT5.4.2编程环境,编译的第一个程序出现错误:error: cannot find -lGL

经查证,是找不到GL库,解决办法:

sudo apt-get install libgl1-mesa-dev
原文地址:https://www.cnblogs.com/weiweisuhe/p/5642085.html