OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Conflict between current osg trunk 3.3.8 and QT version 5.4.1 on types GLint64 and GLuint64


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
crubel@compro.net
User


Joined: 12 Aug 2010
Posts: 74
Location: Melbourne, FL USA

PostPosted: Tue Apr 28, 2015 3:28 pm    Post subject:
Conflict between current osg trunk 3.3.8 and QT version 5.4.1 on types GLint64 and GLuint64
Reply with quote

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
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11237

PostPosted: Tue Apr 28, 2015 3:33 pm    Post subject:
Conflict between current osg trunk 3.3.8 and QT version 5.4.1 on types GLint64 and GLuint64
Reply with quote

Hi Curtis,

Try changing the include order of Qt vs OSG.

Robert.

On 28 April 2015 at 16:28, Curtis Rubel <> wrote:
Quote:
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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
crubel@compro.net
User


Joined: 12 Aug 2010
Posts: 74
Location: Melbourne, FL USA

PostPosted: Tue Apr 28, 2015 4:00 pm    Post subject:
Reply with quote

Hi Robert,

I am not so sure I can change the include order or not. The QT project I am trying to compile pulls in the QT OpenGL stuff by itself as part of its build process, I am not explicitly including any of the QT include files in my source files directly.

I will take a look and see.

Thank you!

Cheers,
Curtis
Back to top
View user's profile Send private message
crubel@compro.net
User


Joined: 12 Aug 2010
Posts: 74
Location: Melbourne, FL USA

PostPosted: Tue Apr 28, 2015 7:33 pm    Post subject:
Reply with quote

Hi Robert,

After much searching, I finally found the issue on my system. One of our 3rdparty products had its own copy of GL/glxxxx.x files in it and this one was unfortunately being found first.

Renaming this old include directory seems to have solved this issue.

Thank you for pointing me in the correct direction...

Cheers,
Curtis
Back to top
View user's profile Send private message
crubel@compro.net
User


Joined: 12 Aug 2010
Posts: 74
Location: Melbourne, FL USA

PostPosted: Tue Apr 28, 2015 8:26 pm    Post subject:
Reply with quote

Hi Robert,

I do not see any place to close the post, or mark it as
solved. Am I missing something in the forum? I do
not want to leave it as is if there is something I need to do
after you helped me get this solved...

Thank you!

Cheers,
Curtis
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts GL3: non-GL3 version number: 1.0 pixelord General 12 Thu Oct 12, 2017 3:36 am View latest post
No new posts [EXTERNAL] Re: Is there a binary dist... Brian Davis General 8 Thu Oct 05, 2017 6:00 pm View latest post
No new posts Is there a binary distribution availa... Brian Davis General 1 Thu Oct 05, 2017 7:02 am View latest post
No new posts Specifying the GL context version to ... Sandro Mani General 17 Mon Aug 21, 2017 11:43 am View latest post
No new posts how to convert osgb files to old version Haojia General 1 Fri Jun 02, 2017 4:35 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP