Hello,

I am trying to build a 64bit version of OSG with MSVC2012, but I am
getting conflict between Qt 5.0.2 and OSG because of redefinition of
GLdouble. I have seen these issues being mentioned before, but mostly
when building for OpenGL/ES - which I am not doing, so GLdouble should
be defined.

Any idea how to solve this?

2>------ Build started: Project: osgQt, Configuration: Debug x64 ------
2>  GraphicsWindowQt.cpp
2>  QGraphicsViewAdapter.cpp
2>C:\Program Files (x86)\Windows Kits\8.0\Include\um\GL/gl.h(60):
error C2371: 'GLdouble' : redefinition; different basic types
(GraphicsWindowQt.cpp)
2>          C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\include\QtGui/qopengl.h(71)
: see declaration of 'GLdouble'
2>C:\Program Files (x86)\Windows Kits\8.0\Include\um\GL/gl.h(206):
warning C4005: 'GL_DOUBLE' : macro redefinition (GraphicsWindowQt.cpp)
2>          C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\include\QtGui/qopengl.h(68)
: see previous definition of 'GL_DOUBLE'
2>C:\R\Dependencies-x64\osg\include\osg/GL(157): error C2440:
'static_cast' : cannot convert from 'const double *' to 'const
GLdouble *' (GraphicsWindowQt.cpp)
2>          Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>C:\R\Dependencies-x64\osg\include\osg/GL(158): error C2440:
'static_cast' : cannot convert from 'const double *' to 'const
GLdouble *' (GraphicsWindowQt.cpp)
2>          Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>C:\R\Dependencies-x64\osg\include\osg/Array(457): error C2535: 'void
osg::ValueVisitor::apply(GLfloat &)' : member function already defined
or declared (GraphicsWindowQt.cpp)
2>          C:\R\Dependencies-x64\osg\include\osg/Array(456) : see
declaration of 'osg::ValueVisitor::apply'
2>C:\R\Dependencies-x64\osg\include\osg/Array(494): error C2535: 'void
osg::ConstValueVisitor::apply(const GLfloat &)' : member function
already defined or declared (GraphicsWindowQt.cpp)
2>          C:\R\Dependencies-x64\osg\include\osg/Array(493) : see
declaration of 'osg::ConstValueVisitor::apply'
2>C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\include\GLES2/gl2.h(96): warning
C4005: 'GL_BLEND_EQUATION_RGB' : macro redefinition
(QGraphicsViewAdapter.cpp)
2>          C:\R\Dependencies-x64\osg\include\osg/GL2Extensions(49) :
see previous definition of 'GL_BLEND_EQUATION_RGB'
2>C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\include\QtGui/qopengl.h(71): error
C2371: 'GLdouble' : redefinition; different basic types
(QGraphicsViewAdapter.cpp)
2>          C:\Program Files (x86)\Windows
Kits\8.0\Include\um\GL/gl.h(60) : see declaration of 'GLdouble'
========== Build: 1 succeeded, 1 failed, 8 up-to-date, 0 skipped ==========

Regards,

Jan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to