QT5 error: cannot find -lGL
来源:互联网 发布:手写笔软件下载 编辑:程序博客网 时间:2024/04/28 05:15
这是由于 Qt5.0 默认将OpenGL加入了工程,但是在机器上没有安装OpenGL,所以jonas只需要在机器上安装OpenGL即可 。
安装建立基本编译环境
首先不可或缺的,就是编译器与基本的函式库,如果系统没有安装的话,请依照下面的方式安装:
$ sudo apt-get install build-essential
安装OpenGL Library
接下来要把我们会用到的 Library 装上去,首先安装 OpenGL Library
$sudo apt-get install libgl1-mesa-dev
到以上这一步为止就可以运行 qt5.0 的工程了,之后的命令只是为了jonas方便以后学习OpenGL而安装。
安装OpenGL Utilities
OpenGL Utilities 是一组建构于 OpenGL Library 之上的工具组,提供许多很方便的函式,使 OpenGL 更强大且更容易使用。接下来我们安装OpenGL Utilities
$sudo apt-get install libglu1-mesa-dev
我运行到这一步再去编译,就不会出现这个错误了。
安装OpenGL Utility Toolkit
OpenGL Utility Toolkit 是建立在 OpenGL Utilities 上面的工具箱,除了强化了 OpenGL Utilities 的不足之外,也增加了 OpenGL 对于视窗介面支援。
$sudo apt-get install libglut-dev
注意在这一步的时候,可能会出现以下情况,
shell提示:正在读取软件包列表... 完成正在分析软件包的依赖关系树
正在读取状态信息... 完成
请输入将上述$sudo apt-get install libglut-dev命令改成$sudo apt-get install freeglut3-dev就行。
0 0
- QT5 error: cannot find -lGL
- qt5 cannot find -lGL
- qt5 cannot find -lGL
- Qt5的error: cannot find -lGL错误解决方法
- qt5 cannot find -lGL解决方法
- qt5 cannot find -lGL解决方法
- Ubuntu下Qt5编译提示/usr/bin/ld: error: cannot find -lGL
- QT编译错误 error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- 解决:-1: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- QT5 Deepin 12.06 /usr/bin/ld: cannot find -lGL
- Qt5.3.2 编译出现cannot find -lGL错误
- ubuntu 12.04安装qt5.4 编译程序cannot find -lGL问题
- centos7.1 QT5编译出现:cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- Ubuntu15.04 QT5编译出现cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- python3.4学习的点点滴滴、不断的积累
- CODE[VS] 天梯 1205 单词翻转
- 关于memcache权限的问题
- 端口占用
- # 读 Android 开发艺术探索 &1
- QT5 error: cannot find -lGL
- ajax基本用法
- Apple Watch 学习之路-初见Watch 应用
- 线性表(链表)-多项式加法
- 自动点击 基于播放器 模拟人点击 绕开检测
- C++之vector容器初学(二)——插入和删除
- # 读 Android 开发艺术探索 &2
- laravel5.2 增加Caffienate Modules,实现模块化开发
- Linux下操作Mysql