【转】QT#include GL/gl.h错误解决办法
【声明为转载http://chenlei.is-programmer.com/posts/30702.html】
今天,编译了一下Qt SDK 的Demos,出现了如下错误:
1、qgl.h: #include <GL/gl.h>:GL/gl.h:No such file.
在QOpenGL下我可以找到qgl.h,这里面有#include <GL/gl.h>,但是我们找不到gl.h文件。实际上gl.h是X11的库中的头文件,所以解决方法就是安装X11:
sudo apt-get install build-essential debian-keyring freeglut3-dev
2、private/qpixmapdata_p.h: No such file or directory.
在编译Demo时,得先编译shared。在arthurwidgets.cpp中有这样个头文件--#include <private/qpixmapdata_p.h>,找不到它的位置,在网上也没有找到解决的方法。后来好不容易,在找了,/opt/QtSDK/Simulator/Qt/gcc/include/QtGui中找到了亲爱的private/qpixmapdata_p.h,于是当机立断,cp到/opt/QtSDK/Desktop/Qt/474/gcc/include/QtGui,编译一下,成了。
3.最近自己发现有时新装的QT 会有undefined reference -GL 错误出现
这时需要装 mesa-gl相关库
【转】QT#include GL/gl.h错误解决办法相关推荐
- 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include stdafx.h”?错误解决办法
VS中出现是否忘记了向源中添加"#include "stdafx.h""?的错误解决办法 经常在用VS来写项目时,会出现这一问题. 在经过相关资料的查阅之后,发 ...
- error RC1015: cannot open include file 'afxres.h'. 的解决办法
编译工程时出现如下错误: error RC1015: cannot open include file 'afxres.h'. 'afxres.h' 文件是跟MFC相关的,出现此种错误有两种解决办法: ...
- pyside2出现qt.qpa.plugin: Could not find the Qt platform plugin windows in 错误解决办法
系统平台:Win10 64bit python版本: python 3.5.3 pyside2版本:pyside2-5.11.0(使用pip install -U pyside2安装) pyside2 ...
- PHP编译安装时常见错误解决办法,php编译常见错误
PHP编译安装时常见错误解决办法,php编译常见错误 1.configure: error: xslt-config not found. Please reinstall the libxslt & ...
- linux libvpx编译安装,linux编译安装时常见错误解决办法
**configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution** 复 ...
- linux源码安装php缺少动态库,php源代码安装常见错误解决办法
php源代码安装常见错误解决办法 错误:configure: error: libevent >= 1.4.11 could not be found 解决:yum -y install lib ...
- linux编译安装的报错,linux编译安装时常见错误解决办法
This article is post on https://coderwall.com/p/ggmpfa 原文链接:http://www.bkjia.com/PHPjc/1008013.html ...
- Python headers not found错误解决办法
安装Python扩展时,Configure error: Python headers not found错误解决办法 在安装spot时,遇到#include "Python.h" ...
- 因为返回有true ajax提示进入错误,jquery ajax中error返回错误解决办法
转自:https://www.jb51.net/article/72198.htm 进入百度搜索此问题,发现有人这么说了一句 Jquery中的Ajax的async默认是true(异步请求),如果想一个 ...
最新文章
- cmake 编译mysql_CentOS5.6下使用cmake编译MySQL5.5.13源码和安装
- linux系统下的grep命令功能与正则表达式详解
- dofuscator C# 混淆器 原来如此
- 线程池Executors创建多线程案例
- mysql十万条数据_2秒内向数据库中插入十万条数据?
- window 2003 实现多用户远程登录
- 想红想疯了?人民日报怒批女主播进教室摆拍:如此装束 成何体统
- mysql stop salve_MySQL主从切换
- BZOJ1061: [Noi2008]志愿者招募(线性规划)
- 【Sqoop】sqoop导入导出
- 英特尔固态硬盘测试软件,英特尔固态硬盘工具(Intel SSD Datacenter Tool)
- Arduino之PlatformIO_串口监视器使用
- 希捷“固件门”,影响深远啊
- P2183 [国家集训队]礼物
- 2021年安全生产模拟考试(全国特种作业操作证电工作业-防爆电气模拟考试题库一)安考星
- 关于显示器,神马ips、pls、tn的
- 如何解决Vray for 3ds Max中的3个错误
- The Little Match Girl,摘自iOS应用Snow White and more stories
- 编程新技术实务实验二HTML以及J2EE简单编程
- 关于field-of-view和receptive field
热门文章
- vivo手机使用应用沙盒一键修改imsi数据
- 基于XGBoost的句子相似度匹配
- 无人驾驶汽车系统入门(三)——无损卡尔曼滤波,目标追踪,C++
- jquery面试题(转载)
- python链接微信接口开发教程_Python调用微信公众平台接口操作示例
- python实现LRU算法
- nvarchar在mysql中是_如何在MySQL中创建NVARCHAR列?
- win7计算机无法识别分辨率,win7系统屏幕分辨率不能调如何解决?
- STM32常用协议之IIC协议详解
- [App Store Connect帮助]一、 App Store Connect 使用入门(4)iOS 版 App Store Connect