回复: 用Qt和FFmpeg写了个播放器 QtAV库
#21 回 20楼(blueseait) 的帖子 [novesky 03-16 21:18]
这几个函数是都没有就奇怪了,感觉没有找到opengl的头文件。第一个错误是什么?
另外,Qt提供编译好的版本不能用mingw官网上的编译器,格式不兼容的,还是用Qt指定的mingw吧。
另外,这些都和QtCreator无关
#22 [blueseait 03-16 21:42]
我直接用的Qt安装后自动分配的编译器,然后直接运行报:D:\qtav\QtAV-master\src\GLWidgetRenderer.cpp:27: 错误:GL/glext.h: No such file or directory
说找不到这个头文件。所以我才从外部加opengl,但是又与本身自带的有冲突。
#23 回 22楼(blueseait) 的帖子 [novesky 03-17 00:47]
你把glext.h那行去掉,换回编译器自带的gl文件。有些gl带这个glext.h文件,有些没有,看来我要加个判断的宏
#24 回 22楼(blueseait) 的帖子 [novesky 03-17 23:12]
我修改了代码,会检测是否需要包含glext.h,你试试看
#25 [blueseait 03-18 10:12]
我在另外一台机器上(操作系统为win7)安装了qt5.0.1,并在qtcreator2.6.2中(安装qt5.0.1时自动安装的)进行编译,结果报找不到
D:\qtav\QtAV-master\src\GLWidgetRenderer.cpp:100: 错误:'GL_SMOOTH' was not declared in this scope
D:\qtav\QtAV-master\src\GLWidgetRenderer.cpp:100: 错误:'glShadeModel' was not declared in this scope
D:\qtav\QtAV-master\src\GLWidgetRenderer.cpp:127: 错误:'glPushMatrix' was not declared in this scope
这些变量和函数。