Qt编译报错,/usr/bin/ld: cannot find -lGL


Qt刚安装好,编译报错:/usr/bin/ld: cannot find -lGL

如下图:

 

解决办法:

sudo apt-get install libgl1-mesa-dev

 

相关