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 

Qt, Collada & OSG


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty]
View previous topic :: View next topic  
Author Message
SCGrant327
Newbie


Joined: 03 Dec 2009
Posts: 12

PostPosted: Mon Aug 30, 2010 9:10 pm    Post subject:
Qt, Collada & OSG
Reply with quote

Hi,

I am trying to get the three to play nice together. Can someone please give me a quick tutorial on getting OSG w/Collada working in QT?


Thank you!

Cheers,
Samuel
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12264

PostPosted: Tue Aug 31, 2010 7:54 am    Post subject:
Qt, Collada & OSG
Reply with quote

HI Samuel,

Collada and QT are two independent issues. There is several
osgviewerQT* examples to illustrate OSG/Qt integration. Collada
integration is just a case of building the OSG against the COLLADA
dom. There are docs on openscenegraph.org on COLLADA. Go do a search
for it.

Robert.

On Mon, Aug 30, 2010 at 10:10 PM, Samuel Grant <> wrote:
Quote:
Hi,

I am trying to get the three to play nice together. Can someone please give me a quick tutorial on getting OSG w/Collada working in QT?


Thank you!

Cheers,
Samuel

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









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


Joined: 23 May 2009
Posts: 621

PostPosted: Tue Aug 31, 2010 8:03 am    Post subject:
Reply with quote

Hi,

If you are using MSVC2008, there are prebuild collada binaries in the 3rdParty packages, so it is easy to build OSG against it.

As soon as Robert adds my last submission, your CMake will even find the libraries it self.


Cheers,
Torben
Back to top
View user's profile Send private message
SCGrant327
Newbie


Joined: 03 Dec 2009
Posts: 12

PostPosted: Tue Aug 31, 2010 12:52 pm    Post subject:
Reply with quote

I did already do a search...and tried to build...and tried to build...and tried to build...

So now I am asking the community!

Specifically, I can get OSG to build with Collada support. I did everything according to the Wiki, and it all works OK. The examples build, and run fine...no problems there. That is, no problems when using M$ VS2005.

My deal is that I want to build OSG with Collada support so that I can use it in a QT 4.6 environment.

If I build using MingW32 or VS2005, and try to use the libs & dlls in QT, I get the dreaded "undefined referece to _imp__Z..." errors. I know this is due to name mangling, but it happens even if I use the MingW32 compiler...

So, again...any help would greatly be appreciated.

Thank you!

Cheers,
Samuel
Back to top
View user's profile Send private message
zonk
Appreciator


Joined: 23 May 2009
Posts: 621

PostPosted: Tue Aug 31, 2010 1:03 pm    Post subject:
Reply with quote

Hi,

do you build static or dynamic?


Cheers,
Torben
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12264

PostPosted: Tue Aug 31, 2010 1:06 pm    Post subject:
Qt, Collada & OSG
Reply with quote

Hi Samuel,

On Tue, Aug 31, 2010 at 1:52 PM, Samuel Grant <> wrote:
Quote:
If I build using MingW32 or VS2005, and try to use the libs & dlls in QT, I get the dreaded "undefined referece to _imp__Z..." errors. I know this is due to name mangling, but it happens even if I use the MingW32 compiler...

This doesn't really sound like an OSG specific issue. I would suggest
Mingw and Qt communities would be the best place to look into this
problem.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Peter Kilpatrick
Guest





PostPosted: Tue Aug 31, 2010 3:25 pm    Post subject:
Qt, Collada & OSG
Reply with quote

Hello,

I have OSG 2.8.0, Qt 4.5, and Collada working together (compiled with Visual
Studio 2005 (vc8))

I built my application with Qt and OSG at first and later added the Collada
dae plugin.

The following information might be of interest (debug build):

Collada from collada-dom-2.2.zip

OSG dae plugin linker/input/additional dependencies includes:
E:\Collada\collada-dom-2.2\collada-dom\dom\build\vc8-1.4-d\libcollada14dom21-d.lib
(I compiled this)
E:\Collada\collada-dom-2.2\collada-dom\dom\external-libs\boost\lib\vc8\libboost_system-d.lib
(precompiled)

OSG CMake:
COLLADA_DYNAMIC_LIBRARY_DEBUG:
E:/Collada/collada-dom-2.2/collada-dom/dom/build/vc8-1.4-d/libcollada14dom21-d.lib
COLLADA_INCLUDE_DIRECTORY:
E:/Collada/collada-dom-2.2/collada-dom/dom/include

DLL:
libcollada14dom21-d.dll


Cheers,
Peter



--
This message has been scanned for viruses and
dangerous content by Pinpoint, and is
believed to be clean.



------------------
Post generated by Mail2Forum
Back to top
SCGrant327
Newbie


Joined: 03 Dec 2009
Posts: 12

PostPosted: Tue Aug 31, 2010 4:06 pm    Post subject:
Reply with quote

Peter,

Thank you!

Mind if I ask a few more questions as I go along?

Cheers,
Samuel
Back to top
View user's profile Send private message
SCGrant327
Newbie


Joined: 03 Dec 2009
Posts: 12

PostPosted: Tue Sep 21, 2010 8:21 pm    Post subject:
QT, Collada & OSG
Reply with quote

Hi,

STILL having issues with this. I can get OSG w/Collada to compile under MingGW under MSYS with no issues.

However, I still get the mangled names when trying to compile my app under QT w/MinGW...

Any thoughts on fixing this? I have tried compiling OSG & Collada as Release and Debug, but still have issues.


Thank you!

Cheers,
Samuel
Back to top
View user's profile Send private message
Norman Vine
Guest





PostPosted: Wed Sep 22, 2010 3:35 am    Post subject:
Qt, Collada & OSG
Reply with quote

On Sep 21, 2010, at 4:21 PM, Samuel Grant wrote:
Quote:
Hi,

STILL having issues with this. I can get OSG w/Collada to compile under MingGW under MSYS with no issues.

However, I still get the mangled names when trying to compile my app under QT w/MinGW...

Any thoughts on fixing this? I have tried compiling OSG & Collada as Release and Debug, but still have issues.



Compile all from Source ...


HTH

------------------
Post generated by Mail2Forum
Back to top
SCGrant327
Newbie


Joined: 03 Dec 2009
Posts: 12

PostPosted: Wed Sep 22, 2010 1:14 pm    Post subject:
Reply with quote

Yeah, trying that now. I had already recompiled the Collada DOM and OSG under MSYS/MinGW. Recompiling QT there now too...

We'll see how it goes!

Thank you!

Cheers,
Samuel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty] 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 Collada Importer with Blender Flogo General 0 Fri Dec 01, 2017 10:04 am View latest post
No new posts Fix for Collada loader Farshid Lashkari Submission 1 Tue Oct 24, 2017 6:32 pm View latest post
No new posts Collada and OSG umadevi2193 General 4 Tue Jan 03, 2017 12:03 pm View latest post
No new posts Crash using current OSG master with c... zonk General 1 Wed Oct 12, 2016 9:17 am View latest post
No new posts Collada in VS2013 cambienta Plugins [osgPlugins] 0 Mon Jul 18, 2016 5:32 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