linux下 Qt 中 OpenGL error: not declared in this scope
来源:互联网 发布:傲剑飞龙升级数据 编辑:程序博客网 时间:2024/06/06 02:27
多半是没有装 GLEW,装好GLEW之后,将 #include<GL/glew.h> 添加到所有include之前(不这样的话会报错说 “ gl.h 在 glew.h 之前”),并在 LIBS中添加 -lGLEW 包,有可能需要调用glewInit()函数。可能出现的问题参看StackOverflow:
http://stackoverflow.com/questions/4225554/how-to-use-glew-with-qt
http://stackoverflow.com/questions/8989942/glew-linking-problems-in-qt-creator
- linux下 Qt 中 OpenGL error: not declared in this scope
- qt-everywhere-opensource-src-4.8.1 出错:error: 'IPV6_MULTICAST_HOPS' was not declared in this scope
- linux下进行视频解码时调用ffmpeg的动态库出现error: ‘UINT64_C’ was not declared in this scope
- error: '_localtime_not_threadsafe_' was not declared in this scope
- error: ‘exit’ was not declared in this scope
- error: `cout' was not declared in this scope
- error: 'UINT64_C' was not declared in this scope
- error: 'memcpy' was not declared in this scope
- error: 'memcpy' was not declared in this scope的解决
- error: ‘BYTE’ was not declared in this scope
- error: ‘closesocket’ was not declared in this scope
- error:inet_addr() was not declared in this scope
- error: ‘exit’ was not declared in this scope 的解决方法
- 关于error: ‘htons’ was not declared in this scope
- error: ‘memcpy’ was not declared in this scope 解决
- error: ‘alarm’ was not declared in this scope 解决
- error: ‘ostream_iterator’ was not declared in this scope
- error: 'glGenFramebuffersOES' was not declared in this scope
- silver light 数据绑定
- strcmp函数的两种实现
- 使用函数要先给变量初始化
- SVN备份方式及脚本(全量备份,增量备份)
- [delphi]ShellExecute函數的用法
- linux下 Qt 中 OpenGL error: not declared in this scope
- if '\"'==' "'
- 直接获得jsp中user类的属性
- C# ??操作符
- ASP.NET MVC2 中使用多语言
- Structure of Heap
- 疑问else break;
- 使用PowerDesigner生成HTML功能
- 设置文字的前景色和背景色