Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
2017-06-09 18:57
956 查看
今天在机房ubuntu14.04环境下安装了Qt5.8.0
但在构建项目就会出现:-1: error: cannot find -lGL错误
经过查找资料,发现有两种可能。一种是之前程序运行产生的窗口没有关闭还在运行,第二种是没有装好依赖。
第一种情况,关闭打开的窗口或终端。
如果不行很可能是第二种情况。
解决方法是更新源,sources.list。按照这篇教程的方法步骤修改它 link
更新完之后,执行
sudo apt-get install libgl1-mesa-dev
再编译,无报错,一次通过。
peace out : )
visitor tracker
相关文章推荐
- Qt5的error: cannot find -lGL错误解决方法
- CentOS安装Qt编译错误以及无法调试的问题解决( /usr/bin/ld:cannot find –lGL 和 Debugginghas failed)
- ubuntu下使用Qt 编译时cannot find -lGL错误解决
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- ubuntu Qt creator 编译错误:-1: error: cannot find -lGL解决办法
- 关于 编译QT项目时报错: error: cannot find -lGL 的解决方法
- 解决Linux下Qt编译出现"cannot find -lGL"以及无法安装libgl1-mesa-dev的问题
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- linux下生产者与消费者问题代码,以及编译c代码时error:undefined reference to sem_wait 解决方法之一
- 编译Qt时出现 cannot find -lGL解决方法
- 项目文件.NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- 在ubuntu下编译linux版客户端遇__GNUC_PREREQ编译错误的解决方法
- Win8.1无法安装应用显示错误代码0x80070005的解决方法
- Linux PC和ARM版的QT环境设置及到ARM移植&常见错误解决方法
- Ubuntu 下 QT4 编译错误解决方法
- ubuntu12.04下QT编译无法显示中文的解决方法
- win7系统上安装ubuntu,分区时无法显示win7上已分好的区方法解决 && Error:Can't have a partition outside the disk
- 64bit ubuntu14.04编译PlatinumKit出现的arm-linux-androideabi-g++: not found错误解决方法
- Linux环境下gcc静态编译/usr/bin/ld: cannot find -lc错误原因及解决方法 原因: