Qt 5.0.1 and glext.h
-
Do you have QT += opengl in your pro file ?
-
Is it a simple project ? (Meaning one pro file for all)
If not check that every other project that uses these class also includes opengl
-
I think I found out the first problem (must be sleepy to have been so long...):
on mac you have to:
@#include <OpenGL/gl.h>@
That is: framework_name/filename.h
You can surround that with
@#ifdef Q_OS_MACX
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif@ -
You're welcome !
Don't forget to update your thread's title to solved so other forum users may know that a solution has been found :)
-
IIRC, there's no glext.h by default on windows. But you can get the file "here":http://www.opengl.org/registry/
-
Seems that trying to use glext.h throws up dozens of errors, and it's simply too much of a pain to sort this. I have to conclude that legacy opengl cannot be used with Qt 5.
Tried reverting to Qt Creator 2.7.1 and Qt 4.8.4 on Windows, but this just refuses to configure a project, and ignores anything set up in the kit options.
Qt 4.8 seems to be fine on Mac and a unix box, but Qt 5 has too many problems for us to think about using it as a future ipad app tool. If it has too many problems on Windows, it gives us no confidence that it will be safe for ios development. -
There must be a glitch in QtCreator's configuration.
4.8.4 works pretty well on windows (even custom builds)Depending on your problem, you might consider contacting Digia to sort things out