原文:Qt编译错误“GL/gl.h:No such file or directory”的解决方法

备注: 操作系统:Ubuntu . 或 . Linux用户:root Qt版本:qt linux opensource . . x 为了迎接Qt的新纪元 从诺基亚移居到芬兰公司Digia家中 ,我决定将Qt开发环境升级到当前的最新版 . ,在安装好开发环境后,编译第一个工程的时候出现了如下错误: GL gl.h:No such file or directory ,这是由于系统中没有安装OpenG ...

2017-05-24 16:19 0 2124 推荐指数:

查看详情

QT编译错误:undefined reference to `__imp_gl*'等等

学习QT OpenGL绘制图形,程序中使用了OpenGL的API函数(gl开头),但是编译出现了错误:截图如下 有过编程经验的人可知,是链接的时候出错,找不到函数的实现! 解决方法:在工程*.pro文件中加入: win32:LIBS += -lOpengl32 ...

Wed Jan 30 00:14:00 CST 2019 0 2283
Failed to find "GL/gl.h" in "/usr/include/libdrm"

环境qt5.12.3 deepin15.10 使用cmake构建项目时报错,网上查询了一下发现时未安装opengl,于是安装便是了 sudo apt install mesa-common-dev 问题解决 ...

Tue May 07 22:47:00 CST 2019 0 715
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM