CentOS遇到Qt编译问题(error: cannot find -lGL)
来源:互联网 发布:智能时代之数据化企业 编辑:程序博客网 时间:2024/04/26 00:05
1、安装Qt,进入CentOS系统的终端,依次执行以下命令
chmod +x qt-opensource-Linux-x64-5.5.1.run
./qt-opensource-linux-x64-5.5.1.run
2、笔者CentOS 7 64位,安装完成Qt5.5.1。随意新建一个Qt Widgets Application。
结果遇到Qt编译问题,提示信息如下:
error: cannot find -lGL
error: collect2: error: ld returned 1 exit status
原因是系统缺乏相应的OpenGL库文件造成,解决方案如下:
联网的前提下,进入CentOS系统的终端,依次执行以下命令,即可解决。注意,当提示Is this ok[y/d/N]:时,请输入"y"。
su root
yum install mesa-libGL-devel mesa-libGLU-devel
yum install freeglut-devel
阅读全文
0 0
- CentOS遇到Qt编译问题(error: cannot find -lGL)
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- CentOS遇到Qt编译问题的解决方案(error: cannot find -lGL)
- QT编译错误 error: cannot find -lGL
- Qt编译遇到/usr/bin/ld: cannot find -lGL问题的解决方案
- Linux中QT编译遇到cannot find -lGL问题的解决方案
- Qt编译遇到/usr/bin/ld: cannot find -lGL问题的解决方案
- Qt编译遇到/usr/bin/ld: cannot find -lGL问题的解决方案
- Qt 5.7.0 编译出现cannot find -lGL问题
- QT cannot find -lGL
- Qt:cannot find -lGL
- centos中QT报错/usr/bin/ld: error: cannot find -lGL
- ubuntu Qt creator 编译错误:-1: error: cannot find -lGL解决办法
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- 关于 编译QT项目时报错: error: cannot find -lGL 的解决方法
- Qt报错 /usr/bin/ld: error: cannot find -lGL
- Ubuntu安装完Qt后报错error: cannot find -lGL解决办法
- 图片错位
- 问题 1097: 蛇行矩阵
- MySQL入门之插入、删除、修改表数据
- 二分图匹配--绿色算法
- jenkins credentials & git ssh 认证
- CentOS遇到Qt编译问题(error: cannot find -lGL)
- solr对nested json(多层嵌套json)数据的处理方式三。
- POJ
- python基础知识整理
- xynu 细菌题
- 线程死锁
- Codeforces Round #170 (Div. 1) E. Binary Tree on Plane(费用流)
- [今日总结]20170721
- 用Hexo+Github 搭建属于自己的博客