Qt:cannot find -lGL

前端之家收集整理的这篇文章主要介绍了Qt:cannot find -lGL前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

简介

ubuntu14 Qt5.6 编译qt quick代码提示 “cannot find -lGL” ,原因是缺少OpenGL链接

解决方法

sudo apt@H_403_8@-get install libgl1@H_403_8@-mesa@H_403_8@-dev
正在读取软件包列表@H_403_8@... 完成
正在分析软件包的依赖关系树       
正在读取状态信息@H_403_8@... 完成 
将会安装下列额外的软件包:
  libdrm@H_403_8@-amdgpu1 libdrm@H_403_8@-dev libx11@H_403_8@-xcb@H_403_8@-dev libxcb@H_403_8@-dri2-0@H_403_8@-dev libxcb@H_403_8@-dri3@H_403_8@-dev
  libxcb@H_403_8@-glx0@H_403_8@-dev libxcb@H_403_8@-present@H_403_8@-dev libxcb@H_403_8@-randr0@H_403_8@-dev libxcb@H_403_8@-render0@H_403_8@-dev
  libxcb@H_403_8@-shape0@H_403_8@-dev libxcb@H_403_8@-sync@H_403_8@-dev libxcb@H_403_8@-xfixes0@H_403_8@-dev libxdamage@H_403_8@-dev
  libxshmfence@H_403_8@-dev libxxf86vm@H_403_8@-dev mesa@H_403_8@-common@H_403_8@-dev x11proto@H_403_8@-damage@H_403_8@-dev
  x11proto@H_403_8@-dri2@H_403_8@-dev x11proto@H_403_8@-gl@H_403_8@-dev x11proto@H_403_8@-xf86vidmode@H_403_8@-dev
下列【新】软件包将被安装:
  libdrm@H_403_8@-amdgpu1 libdrm@H_403_8@-dev libgl1@H_403_8@-mesa@H_403_8@-dev libx11@H_403_8@-xcb@H_403_8@-dev libxcb@H_403_8@-dri2-0@H_403_8@-dev
  libxcb@H_403_8@-dri3@H_403_8@-dev libxcb@H_403_8@-glx0@H_403_8@-dev libxcb@H_403_8@-present@H_403_8@-dev libxcb@H_403_8@-randr0@H_403_8@-dev
  libxcb@H_403_8@-render0@H_403_8@-dev libxcb@H_403_8@-shape0@H_403_8@-dev libxcb@H_403_8@-sync@H_403_8@-dev libxcb@H_403_8@-xfixes0@H_403_8@-dev
  libxdamage@H_403_8@-dev libxshmfence@H_403_8@-dev libxxf86vm@H_403_8@-dev mesa@H_403_8@-common@H_403_8@-dev
  x11proto@H_403_8@-damage@H_403_8@-dev x11proto@H_403_8@-dri2@H_403_8@-dev x11proto@H_403_8@-gl@H_403_8@-dev
  x11proto@H_403_8@-xf86vidmode@H_403_8@-dev

参考

http://stackoverflow.com/questions/18406369/qt-cant-find-lgl-error

猜你在找的Ubuntu相关文章