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 

osg and Qt5 and debian wheezy


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
wartburgritter
Newbie


Joined: 19 Apr 2014
Posts: 7

PostPosted: Sat Apr 19, 2014 11:15 am    Post subject:
osg and Qt5 and debian wheezy
Reply with quote

OK delete all links Sad

Hi All,
I'm new to the forum. I provide a linuxbuild of IfcPlusPlus. It is a viewer to display digital modells of building in file format ifc.

The linuxbuild is on github .../berndhahnebach/IFCPlusPlus. Branch linuxbuild-qt4 runs smooth on debian wheezy using the osg of wheezy. See on github .../berndhahnebach/IFCPlusPlus/blob/linuxbuild-qt4/README.Linux

The original code I use for my build (master branch) is linked against Qt5. I would like to link against qt5 as well to minimise changes. In branch linuxbuild-qt5 on github .../berndhahnebach/IFCPlusPlus/blob/linuxbuild-qt5/README.Linux . I tried to build IfcPlusPlus agiainst Qt5, it builds but gives Segmentgation Fault at Startup. I found the binary uses libQtGui.so.4 which is of Qt4.

My assumtion is this is because libopenscenegraph99 in debian wheezy depends on Qt4libs. That is why I can not link against Qt5.

Does this mean if I would like to build IfcPlusPlus against Qt5 I need to build osg against Qt5 myself to use it with IfcPlusPlus?

Thank you! Cheers, Bernd

If you would like to try IfcPlusPlus:
search for IfcOpenHouse.ifc or for digital210king if you would like to treat IfcPlusPlus
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11923

PostPosted: Mon Apr 21, 2014 12:40 pm    Post subject:
osg and Qt5 and debian wheezy
Reply with quote

Hi Bernd,

If you application is using the osgQt library and this lib is linked
to Qt4 then mixing the viability of mixing Qt5 libs in your
application will be down to Qt4/5 compatibility, something I can't
answer as I'm no Qt expert but I guess it's reasonable to assume that
this could cause problems.

If you can't mix Qt5 and Qt4 within a single application then you'll
either have to rebuild the OSG against Qt5 or avoid using components
of the OSG that use Qt - primarily this is osgQt but there a few
plugins use it too. Non of the core OSG libraries use Qt so
fundamentally the OSG will be Qt agnostic, so I you avoiding osgQt and
used your own OSG/WIndow integration or just used the OSG's osgViewer
native windowing support you'll be fine.

Robert.

On 19 April 2014 12:15, Bernd Hahnebach <> wrote:
Quote:
OK delete all links :-(

Hi All,
I'm new to the forum. I provide a linuxbuild of IfcPlusPlus. It is a viewer to display digital modells of building in file format ifc.

The linuxbuild is on github .../berndhahnebach/IFCPlusPlus. Branch linuxbuild-qt4 runs smooth on debian wheezy using the osg of wheezy. See on github .../berndhahnebach/IFCPlusPlus/blob/linuxbuild-qt4/README.Linux

The original code I use for my build (master branch) is linked against Qt5. I would like to link against qt5 as well to minimise changes. In branch linuxbuild-qt5 on github .../berndhahnebach/IFCPlusPlus/blob/linuxbuild-qt5/README.Linux . I tried to build IfcPlusPlus agiainst Qt5, it builds but gives Segmentgation Fault at Startup. I found the binary uses libQtGui.so.4 which is of Qt4.

My assumtion is this is because libopenscenegraph99 in debian wheezy depends on Qt4libs. That is why I can not link against Qt5.

Does this mean if I would like to build IfcPlusPlus against Qt5 I need to build osg against Qt5 myself to use it with IfcPlusPlus?

Thank you! Cheers, Bernd

If you would like to try IfcPlusPlus:
search for IfcOpenHouse.ifc or for digital210king if you would like to treat IfcPlusPlus

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
wartburgritter
Newbie


Joined: 19 Apr 2014
Posts: 7

PostPosted: Tue Apr 22, 2014 7:44 pm    Post subject:
Re: osg and Qt5 and debian wheezy
Reply with quote

Hi Robert, Thanks for your answer, and your informations regarding the topic. It helped a lot.

robertosfield wrote:
...
If you application is using the osgQt library and this lib is linked
to Qt4 then mixing the viability of mixing Qt5 libs in your
application will be down to Qt4/5 compatibility, something I can't
answer as I'm no Qt expert but I guess it's reasonable to assume that
this could cause problems...

It actually uses osgQt which uses Qt4
Code:

$ ldd IfcPlusPlusViewer | grep libosgQt
libosgQt.so.99 => /usr/lib/libosgQt.so.99 (0x00007f5960fab000)
$ ldd /usr/lib/libosgQt.so.99 | grep Qt
libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f7223e6e000)
libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f72231c4000)
libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f7222ec6000)
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 make install_ld_conf does not work n ... wartburgritter Build system [build] 1 Fri Dec 22, 2017 7:44 pm View latest post
No new posts compile osg on Debian Jessie, after b... wartburgritter Build system [build] 3 Mon Dec 18, 2017 12:24 pm View latest post
No new posts getting collada support in debian Sébastien Barthélemy General 0 Mon Jul 19, 2010 1:58 pm View latest post
No new posts osgPPU - Debian 64-bit J.P. Delport osgPPU [osgPPU] 3 Fri Oct 23, 2009 11:48 am View latest post
No new posts Using cpack to create debian packages Robert Osfield General 3 Wed Feb 04, 2009 4:25 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