Hi Robert,

now I understand the problem. I have managed to solve it. Here are the steps
I have followed, just in case someone needs them:

I have downloaded  the collada-dom-2.2 version and I have built it using the
solution for VS2010 (.\collada-dom-2.2\dom\projects\vc10-1.4)
I have configured the cmake of OSG with the libraries
(./collada-dom-2.2/dom/build/vc10-1.4/libcollada14dom22.lib, and so on) and
the external libraries (./collada-dom-2.2/dom/external-libs/).
Then, in cmake, Configure and Generate, open the OSG solution and then build
dae plugin.
When finished, I have copied the osgdb_daed.dll in my osgPlugins folder and
also the libcollada14dom22-d.dll in my root folder.

And now I can load dae files without problems.

Thank you to everybody who has helped!

Héctor

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Robert
Milharcic
Sent: viernes, 09 de septiembre de 2011 16:51
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG Collada plugin


As Jean-Sebastien  already said, If the dae plugin is linked against, for
example, msvcr90d.dll, then it is generally good idea to link all its
dependant dlls to the same runtime (msvcr90d.dll). That usually means you
will have to recompile collada and all its external libs from source. Of
course, it is posible that the problem is elsewhere...

Robert Milharcic

> -----Original Message-----
> From: [email protected] [mailto:osg-users- 
> [email protected]] On Behalf Of Héctor Martínez
> Sent: Friday, September 09, 2011 12:15 PM
> To: 'OpenSceneGraph Users'
> Subject: Re: [osg-users] OSG Collada plugin
> 
> Hi,
> 
> I am still having the same problem. Does somebody have any idea of 
> what is happening?
> 
> Thank you.
> 
> Héctor
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of 
> Héctor Martínez
> Sent: miércoles, 24 de agosto de 2011 9:29
> To: 'OpenSceneGraph Users'
> Subject: Re: [osg-users] OSG Collada plugin
> 
> Hi Jean-Sebastien,
> 
> thank you for your response. It is possible that I am missing 
> something, but it seems that every library is in debug mode. I have 
> checked with Dependency Walker the libs and I have all the debug 
> dependencies in the folder. I have exported one single cube with 
> Blender, just to check that there are no problems with textures and the
same problem is happening.
> 
> If I try to run the application from command line instead of from 
> Visual Studio, this is the error that I find:
> 
>       HEAP CORRUPTION DETECTED: after Normal block (#37612) at 0x0047CF58.
>       CRT detected that the application wrote to memory after end of heap 
> buffer.
> 
> And I have seen that the messages in the command line goes a bit 
> further than in VS:
>       ReaderWriterDAE( "OSG/box.dae" )
>       URI loaded: OSG/box.dae
>       Adding parent0039C498
>       Adding parent0039C498
> 
> Maybe those lines can be helpful to see where the problem is...
> 
> Héctor
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Jean- 
> Sébastien Guay
> Sent: martes, 23 de agosto de 2011 15:35
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] OSG Collada plugin
> 
> Hi Héctor,
> 
> > I am having some problems to load collada files into my project. I 
> > have used the collada dom lib (libcollada14dom21) to build the plugin.
> >
> > The line that is throwing the breakpoint is:
> >
> > osg::ref_ptr<osg::Node> model = osgDB::readNodeFile(modelFilePath);
> 
> This line will be loading the collada plugin, as well as the collada 
> DOM DLLs and others the plugin depends on. So if that line is making 
> your app crash, I would suspect the common gotcha about linking debug 
> and release together (or in general, different runtimes).
> 
> So check your compile settings and make sure all your libs and DLLs 
> (even the collada ones and its dependencies) are differentiated 
> between debug and release, and that they all match in the linker settings.
> 
> Hope this helps,
> 
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                                 http://www.cm-labs.com/
>                      http://whitestar02.dyndns-web.com/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> org
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> org
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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

Reply via email to