Qt build error

-----------------------------------------------------------OpenGL-----------------------------------------------------------

Linux下使用QT5运行时出现两个问题:

cannot find -lGL

collect2: error:ld returned 1 exit status

这是因为系统缺少链接库

查找确实库并安装

apt-chache search libgl-dev

sudo apt-get install libgl1-mesa-dev 

-----------------------------------------------------------2020年08月26日18:16:11

 

posted on 2020-08-26 18:06  xiubeizi  阅读(64)  评论(0)    收藏  举报

导航