Glu call compile errors on Qt 5.0.2 for Windows 32-bit (VS 2010, OpenGL)



  • I am migrating some Qt projects, that were built and run successfully on Qt 4.7.1 / Visual Studio 2008, to Qt 5.0.2 / Visual Studio 2010 environment.

    The projects generate compile errors like this:
    error C3861: 'gluUnProject': identifier not found
    error C2065: 'GLUquadricObj' : undeclared identifier
    error C2065: 'quadric' : undeclared identifier
    error C2065: 'quadric' : undeclared identifier
    error C3861: 'gluNewQuadric': identifier not found
    error C2065: 'quadric' : undeclared identifier
    error C2065: 'GLU_SMOOTH' : undeclared identifier
    error C3861: 'gluQuadricNormals': identifier not found
    etc.

    It appears that glu support was removed from the OpenGL version of the Qt 5.0.2 build.
    Did anyone run into the same issues, and resolved them successfully?

    Thanks in advance!



  • I ran into same problem and I just got rid of lines which used: gluUnProject, gluProject and smth like gluErrorString. I did it only to compile qwt3d. But when I checked simple example of qwt3d it worked so i dont know what is it for but maybe it's not used. However if you have problems with that check
    http://qt-project.org/forums/viewthread/30841

    PS i know that answer is a little bit late but maybe others will have same problem in the future.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.