在 Linux 下编译 Qt 代码的时候出现 cannot find -lGL 的错误,如下所示:

图1 编译错误信息

解决方法

在终端中执行如下命令:

sudo apt-get install libgl1-mesa-dev

 

Logo

更多推荐