[osg-users] [build] Conflict between current osg trunk 3.3.8 and QT version 5.4.1 on types GLint64 and GLuint64

Curtis Rubel crubel at compro.net
Tue Apr 28 08:28:56 PDT 2015


Hi,

I am currently getting the following compiler errors when attempting to compile against the current OSG trunk 04/28/2015, numbered as 3.3.8
and my installed QT release of 5.4.1

I am currently running on an OpenSuSE 13.2 64bit linux distro.

 
/usr/include/qt5/QtGui/qopengl.h:242:17: error: conflicting declaration ‘typedef int64_t GLint64’
 typedef int64_t GLint64;
                 ^
In file included from /usr/local/include/osg/GLDefines:25:0,
                 from /usr/local/include/osg/GLExtensions:18,
                 from /usr/local/include/osg/Shader:25,
                 from /usr/local/include/osg/StateAttribute:20,
                 from /usr/local/include/osg/StateSet:18,
                 from /usr/local/include/osg/Node:19,
                 from /usr/local/include/osg/NodeVisitor:17,
                 from /usr/local/include/osgUtil/UpdateVisitor:17,
                 from /usr/local/include/osgViewer/CompositeViewer:18,
                 from ../../../libs/inc/QtOsg/viewer_widget.h:5,
                 from src/widgets/muselogowidget.h:4,
                 from src/widgets/muselogowidget.cpp:1:
/usr/local/include/osg/GL:124:31: error: ‘GLint64’ has a previous declaration as ‘typedef long long int GLint64’
         typedef long long int GLint64;


Same basic error for the GLuint64 type as well.  

This sort of looks to me like a 64bit versus 32bit operating system
issue of some sort when I look at both definitions,  but I am no expert in this area so my apologies if I am making this statement in error.

Is there something that needs to be defined or setup properly for the code to properly compile against this new version of OSG on a 64bit operating system or am I possibly looking at a bug in the QT release
I am using?

Thank you everyone for you help in this matter!

Cheers,
Curtis

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63554#63554








More information about the osg-users mailing list