-
GLext / QT make error
I'm trying to compile a QT program on SuSE linux (Qt 4.3, Suse 10.3, NVidia drivers 180.22, OpenGL 2.1.2). I run the following code to generate the make files:
qmake -project -unix -after "QT += opengl"
qmake pathing.pro
make
the following error I get upon the make:
error: 'glPointParameterf' was not declared in this scope
the includes in the offending file are:
#include <GL/gl.h>
#include <GL/glext.h>
#include <QGLWidget>
#include <QKeyEvent>
#include <cmath>
The problem seems similar to this forum post, but I have worked through that post and still have the same problem. I would appreciate any help or clarifications anyone could provide me, as I'm kinda at wit's end.
Thanks a lot for helping out.
-
Advanced Member
Frequent Contributor
Re: GLext / QT make error
new nVidia drivers need to have GL_GLEXT_PROTOTYPES defined when glext.h is included to get the function prototypes in glext.h that are not in gl.h.
-
Re: GLext / QT make error
That's what I needed, thanks a lot.
Just to clarify for anyone in the future, I changed the offending file to:
#define GL_GLEXT_PROTOTYPES 1
#include <GL/gl.h>
#include <GL/glext.h>
#include <QGLWidget>
#include <QKeyEvent>
#include <cmath>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules