[osg-users] [osgPlugins] Problems with dae plugin

Nikita Petrov nikitapetroff at gmail.com
Mon Apr 8 10:15:23 PDT 2019


Thanks for suggestion, I've checked for DLLs and strangely some were not loaded from PATH variable paths.
I copied the needed ones to OSG bin and now it launches.

But still dae is not loading. It throws an exception on the second "if" of D:\OSG\base\sources\collada-dom\dom\src\dae\daeIOPluginCommon.cpp:


Code:

  if (parentElement == NULL) {
          // This is the root element. Check the COLLADA version.
          daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute( "xmlns" )->getWritableMemory( element ));
          if ( strcmp( xmlns->getURI(), element->getDAE()->getColladaNamespace() ) != 0 ) {
              // Invalid COLLADA version
              daeErrorHandler::get()->handleError("Trying to load an invalid COLLADA version for this DOM build!");
              return NULL;
          }
      }



I will also attach screenshot with this exception and a call stack.

I use this string path as an argument to osgviewer.exe: D:/OSG/123/test.dae.

I guess that this question is not directly connected with OSG (because error occurs in collada-dom library), but maybe someone could confirm this error with latest sources or show me what am I doing wrong.


Chris Hanson wrote:
> This usually means the plugin was not found or failed to load.
> 
> Can you trace with something like SysInternals tools and see if the DLL file is found and what other dependency files it might have tried to load?
> 
> 
> On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov < ()> wrote:
> 
> 
> > Hi,
> > 
> > I am trying to build dae plugin to open dae files with osgviewer.
> > Everything builds great, but when I try to open dae file (I tried several) I get the following error:
> > 
> > 
> > Code:
> > Error reading file .test.dae: read error (Could not find plugin to read objects from file ".test.dae".)
> > 
> > 
> > I use stable OSG tags/3.6.3. (http://3.6.3.)
> > Windows 10 x64.
> > Visual Studio 2015 Update 3.
> > Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff, proj.4, geotiff are built from sources.
> > 
> > For Collada-dom library I tried 2 options:
> > 
> > - use vcpkg to build collada-dom (built DLL filename: collada-dom2.5-dp-vc130-mt.dll).
> > - build collada-dom from sources (built DLL filename: collada-dom2.5-dp-vc100-mt.dll).
> > 
> > I copied the collada DLL to OSG bin folder.
> > 
> > Is it possible that dae plugin is broken? What am I doing wrong?
> > 
> > Thank you!
> > 
> > Best regards,
> > Nikita[/list]
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=75795#75795 (http://forum.openscenegraph.org/viewtopic.php?p=75795#75795)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
> 
> -- 
> Chris 'Xenon' Hanson, omo sanza lettere.  http://www.alphapixel.com/ (http://www.alphapixel.com/)
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
> @alphapixel (https://twitter.com/alphapixel) facebook.com/alphapixel (http://facebook.com/alphapixel) (775) 623-PIXL [7495]
> 
>  ------------------
> Post generated by Mail2Forum


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




Attachments: 
http://forum.openscenegraph.org//files/screenshot_2_622.png




More information about the osg-users mailing list