Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: GLext / QT make error

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2009
    Posts
    2

    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.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2009
    Posts
    529

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2009
    Posts
    2

    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
  •