Hi,

I am trying to load an .fbx file in my viewer. I get the error 

" Could not find plugin to read objects from file ... .fbx"

I have built the .lib and the .dll files and I am sure that my program can find 
them. I have no compile or linking problems.

My configuration is OpenSceneGraph 3.0.0 on windows7 64bit. Developing in VS 
2008.

Before posting I have to say that the specific program did run flawlessly on 
winXP so I started debugging to see what was going wrong. After debugging step 
by step, the problem arose in the osgDB file DynamicLibrary.cpp and 
specifically when the function 

DynamicLibrary::HANDLE DynamicLibrary::getLibraryHandle( const std::string& 
libraryName)

tries to execute line 100 -->
handle = LoadLibrary( libraryName.c_str() ); 

which should load the dll

My file path in the variable libraryName seems ok as seen in the watch list.

When executing this line I get in the output these peculiar messages  
Loaded 'C:\osg3libs\osgPlugins-3.0.0\osgdb_fbxd.dll'
Unloaded 'C:\osg3libs\osgPlugins-3.0.0\osgdb_fbxd.dll'

I tried to recompile osgDB by changing the line 100 with the following,
handle = LoadLibraryW(  convertUTF8toUTF16(libraryName).c_str() );
converting to utf16 but nothing happened

All my projects are in debug mode so Its hard to think of this as a 
"Debug-Release" issue. The project in winXP is identical (even the file paths 
and names)

If more information is needed please feel free to ask! 

Thank you!

Cheers,
Stefanos

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





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

Reply via email to