[vtkusers] 'GLdouble' : redefinition

Dženan Zukić dzenanz at gmail.com
Thu Jun 12 07:42:02 EDT 2014


I found a few months old thread
<http://vtk.1045678.n5.nabble.com/VTK6-1-Qt5-2-1-msvc2012-Build-error-td5726131.html#a5726139>
in which the solution to my problem was given by Kevin Funk:
You have to build Qt5 with the OpenGL backend and disable the ANGLE backend


On Thu, Jun 12, 2014 at 9:34 AM, Dženan Zukić <dzenanz at gmail.com> wrote:

> When I try to compile VTK 6.1 with Qt 5.3.0 on Win7+VS2013, I get the
> errors below. Can someone shed some light on this?
>
> Regards
>
> 4>------ Build started: Project: vtkGUISupportQtOpenGL, Configuration:
> Debug x64 ------
> 4>  QVTKGraphicsItem.cxx
> 4>C:\Program Files (x86)\Windows Kits\8.1\Include\um\GL/gl.h(60): error
> C2371: 'GLdouble' : redefinition; different basic types
> 4>
>  d:\sdk\qt-5.3.0\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(98) :
> see declaration of 'GLdouble'
> 4>C:\Program Files (x86)\Windows Kits\8.1\Include\um\GL/gl.h(206): warning
> C4005: 'GL_DOUBLE' : macro redefinition
> 4>
>  d:\sdk\qt-5.3.0\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(95) :
> see previous definition of 'GL_DOUBLE'
> 4>  QVTKWidget2.cxx
> 4>C:\Program Files (x86)\Windows Kits\8.1\Include\um\GL/gl.h(60): error
> C2371: 'GLdouble' : redefinition; different basic types
> 4>
>  d:\sdk\qt-5.3.0\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(98) :
> see declaration of 'GLdouble'
> 4>C:\Program Files (x86)\Windows Kits\8.1\Include\um\GL/gl.h(206): warning
> C4005: 'GL_DOUBLE' : macro redefinition
> 4>
>  d:\sdk\qt-5.3.0\qtbase\include\qtgui\../../src/gui/opengl/qopengl.h(95) :
> see previous definition of 'GL_DOUBLE'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140612/03c48479/attachment.html>


More information about the vtkusers mailing list