解决CentOS遇到Qt编译(error: cannot find -lGL)
来源:互联网 发布:上瘾网络剧发布会 编辑:程序博客网 时间:2024/04/19 23:05
笔者CentOS 6.5 64位,安装完成Qt5.5.1。随意新建一个Qt Widgets Application。
结果遇到Qt编译问题,提示信息如下:
error: cannot find -lGL
error: collect2: error: ld returned 1 exit status
原因是系统缺乏相应的OpenGL库文件造成,解决方案如下:
进入CentOS系统的终端,依次执行以下命令,即可解决。
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
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- Ubuntu环境QT出现:-1: error: cannot find -lGL(已解决)
- Ubuntu Qt出现cannot find -lGL解决
- 解决:-1: error: cannot find -lGL
- QT cannot find -lGL
- Qt:cannot find -lGL
- centos中QT报错/usr/bin/ld: 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问题的解决方案
- ubuntu Qt creator 编译错误:-1: error: cannot find -lGL解决办法
- Python基础02 基本数据类型
- Xcode预处理命令、控制台调试命令、 iOS事件拦截
- Android系统信息获取
- 使用Xutils框架优化ListView
- BZOJ_P2301&Codevs_P1858 [HAOI2011]Problem b(数论+容斥原理)
- 解决CentOS遇到Qt编译(error: cannot find -lGL)
- 编程中的一些概念,KISS、DRY、MVC、OOP、REST
- socket编程的select模型
- Java变量类型及初始化顺序
- poj2926Requirements (曼哈顿距离)
- 内核模块
- android ANR 分析
- is-a、has-a和like-a、组合、聚合和继承 两组概念的区别
- java之eclipse常用快捷键