创建QT CREATOR对话框报错 linux QT Creator :-1: error: cannot find -lGL

时间:2023-03-09 17:10:57
创建QT CREATOR对话框报错   linux QT Creator :-1: error: cannot find -lGL

装完QT5.4 及 QT Creator3.3 后

创建第一个QT Widgets Application(相当于窗体) 应用程序

报如上错误。

执行

sudo apt-get install libqt4-dev

重新编译, OK

我也不知道为什么这局就OK, 目前没时间去探究,如果你知道,请留个言给我, 谢谢!