Hi,

I've compiled OSG 3.0.1 in Windows 7 64 bits in both release and debug mode
with the MingW compiler.

When running a little app I have written to test the installation, I got no
display at all and a warning message in debug mode:

*Warning: Could not find plugin to read objects from file "cow.osgt"*

In release mode, everything goes fine.

I have taken a look inside the *osgPlugins-3.0.1 *folder and the plugin
names lack the final 'd', as in the release mode. The osg libraries, on the
contrary, all end with a 'd', i. e. *libOpenThreadsd.dll

*
Here's the code I'm using:

#include <osgDB/ReadFile>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>

int main( int argc, char** argv )
{
  osg::ref_ptr<osg::Node> root = osgDB::readNodeFile("avatar.osg");
  osgViewer::Viewer viewer;
  viewer.setUpViewInWindow(50,50,640,400);
  viewer.addEventHandler( new osgViewer::StatsHandler );
  viewer.addEventHandler( new osgViewer::WindowSizeHandler );
  viewer.setSceneData( root.get() );
  viewer.realize();
  return viewer.run();
}

Do you have any idea of what the problem could be?
Thanks!
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to