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:

[b]#include <GL/gl.h>
#include <GL/glext.h>

#include <QGLWidget>
#include <QKeyEvent>
#include <cmath>[/b]

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.

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.

That’s what I needed, thanks a lot.
Just to clarify for anyone in the future, I changed the offending file to:

[b]
#define GL_GLEXT_PROTOTYPES 1
#include <GL/gl.h>
#include <GL/glext.h>

#include <QGLWidget>
#include <QKeyEvent>
#include <cmath>[/b]

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.