Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
来源:互联网 发布:东方永夜抄 mac 编辑:程序博客网 时间:2024/04/27 05:58
今天在机房ubuntu14.04环境下安装了Qt5.8.0
但在构建项目就会出现:-1: error: cannot find -lGL
错误
经过查找资料,发现有两种可能。一种是之前程序运行产生的窗口没有关闭还在运行,第二种是没有装好依赖。
第一种情况,关闭打开的窗口或终端。
如果不行很可能是第二种情况。
解决方法是更新源,sources.list。按照这篇教程的方法步骤修改它 link
更新完之后,执行 sudo apt-get install libgl1-mesa-dev
再编译,无报错,一次通过。
peace out : )
visitor tracker
阅读全文
0 0
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- QT编译错误 error: cannot find -lGL
- ubuntu下Qt cannot find -lGL错误的解决方法
- ubuntu下Qt cannot find -lGL错误的解决方法
- ubuntu下Qt cannot find -lGL错误的解决方法
- ubuntu下Qt cannot find -lGL错误的解决方法
- ubuntu下Qt cannot find -lGL错误的解决方法
- ubuntu下Qt cannot find -lGL错误的解决方法
- linux下Qt cannot find -lGL错误的解决方法
- ubuntu下Qt cannot find -lGL错误的解决方法
- ubuntu 下 Qt 编译出现 cannot find -lGL错误
- 关于 编译QT项目时报错: error: cannot find -lGL 的解决方法
- Qt错误:cannot find -lGL解决方法
- Qt5的error: cannot find -lGL错误解决方法
- ubuntu Qt creator 编译错误:-1: error: cannot find -lGL解决办法
- ubuntu下QT出现cannot find -lGL错误的解决办法
- 安装qtceator后无法启动help插件 Qt编译错误:cannot find -lGL 解决办法
- 安装qtceator后无法启动help插件 Qt编译错误:cannot find -lGL 解决办法
- firewalld
- FATAL ERROR in native method: JDWP No transports initialized
- webSocket的认识
- webSocket.java创建连接和关闭连接
- https相关概念
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- 理解下小爬虫
- 您的凭据不工作 之前用于连接到******的凭据无法工作。请输入新凭据。
- Count the string (kmp的next数组运用)
- js中的Ajax经典示例
- MFC学习笔记(三)
- 交叉验证(简单交叉验证、k折交叉验证、留一法)
- Android 读取手机通讯录内容
- IOS 视屏开发之AVPlayer的基本使用