Hi Hartmut,
On 1/22/07, Hartmut Seichter <[EMAIL PROTECTED]> wrote:
I am currently reworking our osgART project to be more OSG conform. One
path I would like to pursue is to let it load and save AR scenes like
osgSim and/or osgFX. However, I am a bit stuck with getting osgDB
loading my osgdb_osgART.dll part (emptied parts of osgSim in there). It
finds the dll but log messages tell (running osgviewer with a osgART::*
node):
FindFileInPath() : trying C:\Program
Files\OpenSceneGraph\bin/osgdb_osgART.dll ...
FindFileInPath() : USING C:\Program
Files\OpenSceneGraph\bin/osgdb_osgART.dll
DynamicLibrary::failed loading "osgdb_osgART.dll"
The fact that its looking for osgdb_osgART is a good thing, that does
at least suggest the naming is correct. I can't say what it might
have failed though. Best guess would be to check the compile settings
to ensure that they are the same as the OSG's i.e. multi-threaded
dll's etc.
One thing I was wondering is that the DLLs don' t have a DLL entry point
(DLLmain). so how does osgFX or osgSim get loaded through LoadLibrary
when there is no entry point?
The plugins have a global proxy object that is automatically
constructed when the library is loaded, this proxy object registers
the custom ReaderWriter* class with the osgDB::Registry.
Robert,
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/