hi, all
          I write a simple app to write out osg file using static library as 
follows( write to ive is right ):
          I use windows, vs 2003, osg 2.6. 
         The static lib name : osgdb_osg_s.lib, osgdb_ive_s.lib ...
         
         #include ...
 #pragma comment (lib, ...) 
         #pragma comment (lib, "osgdb_osg_s.lib") 

USE_GRAPHICSWINDOW();
USE_OSGPLUGIN(ive);
USE_OSGPLUGIN(png);
USE_OSGPLUGIN(...);
USE_OSGPLUGIN(osg);

int main(...)
{
         ...
         std:: string fileNameOut = "a.osg";
        osgDB::ReaderWriter::WriteResult result = 
osgDB::Registry::instance()->writeNode 
(*root,fileNameOut,osgDB::Registry::instance()->getOptions());
   return 0;
}
---------------------------------------------------------------------------------------
I found that the output file was 0 k.

Set OSG_NOTIFY_LEVEL=info, the output info is :  
.....
Opened DynamicLibrary osgPlugins-2.6.0/osgdb_osg.dll
DynamicLibrary::failed loading "osg.dll"
.....
Closing DynamicLibrary osgPlugins-2.6.0/osgdb_osg.dll
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to