Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
2017-06-21 23:32
465 查看
安装完qt之后,构建项目就会出现:-1: error: cannot find -lGL
然后使用 $ locate libGL.so 发现
/usr/lib/i386-Linux-gnu/mesa/libGL.so.1
/usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0
再使用 sudo apt-get install libgl1-mesa-dev 一直提示错误,说依赖关系被破坏。
然后在网上找到一些新的源进行配置并更新,具体在下面链接:
http://www.cnblogs.com/ccdc/p/4428555.html
直接把源,复制到 sources.list 文件后面,需要使用 sudo 才能对 sources.list 进行编辑。
更新完之后,重新执行 sudo apt-get install libgl1-mesa-dev
安装成功就可以解决了。
然后使用 $ locate libGL.so 发现
/usr/lib/i386-Linux-gnu/mesa/libGL.so.1
/usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0
再使用 sudo apt-get install libgl1-mesa-dev 一直提示错误,说依赖关系被破坏。
然后在网上找到一些新的源进行配置并更新,具体在下面链接:
http://www.cnblogs.com/ccdc/p/4428555.html
直接把源,复制到 sources.list 文件后面,需要使用 sudo 才能对 sources.list 进行编辑。
更新完之后,重新执行 sudo apt-get install libgl1-mesa-dev
安装成功就可以解决了。
相关文章推荐
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- Ubuntu安装完Qt后报错error: cannot find -lGL解决办法
- ubuntu下QT出现cannot find -lGL错误的解决办法
- Ubuntu Qt出现cannot find -lGL解决
- 在Ubuntu 12.04 alternate 64位 中开发Qt程序出现/usr/bin/ld: error: cannot find -lGL
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- ubuntu16.04 安装完Qt后,编译项目出现cannot find -lGL
- Qt5.5在ubuntu下解决 GL/gl.h: No such file or directory 与 cannot find -lGL
- ubuntu16.04下编译qt5。5程序出现:-1: error: [ui_firstpage.h] Error 1 错误的解决
- 编译Qt时出现 cannot find -lGL解决方法
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- 关于 编译QT项目时报错: error: cannot find -lGL 的解决方法
- Ubuntu15.04 QT5编译出现cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- Qt5的error: cannot find -lGL错误解决方法
- ubuntu下使用Qt 编译时cannot find -lGL错误解决
- ubuntu Qt creator 编译错误:-1: error: cannot find -lGL解决办法
- ubuntu 下 Qt 编译出现 cannot find -lGL错误
- linux下运行Qt出现cannot find -lGL和collect2: ld returned 1 exit status解决方法