Question

Qt5 is released and the new Qt5.0.2 has MSVC2012 x64 version. Want to use QwtPlot3d with Qt5. In copilation, error of redefinition of GLdouble appears. Don't know the reason and how to fix it. Thanks.

Was it helpful?

Solution

It seems this is an OpenGL desktop vs OpenGL ES 2 issue. The Qt5 pre-compiled packages are built against ANGLE which provides OpenGL ES 2. Check QT downloads page if there is proper version(OPENGL 32bit) for you.

If you want to use desktop OpenGL on windows with Qt 5, you have to rebuild Qt yourself passing in -opengl desktop to the configure.bat script.

OTHER TIPS

It is of course not necessary anymore to re-compile QT yourself since they now also ship a prebuilt installer for opengl-desktop

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top