Hi Robert, Static linking of plugins is a bit awkward in some cases due to the way that they use auto registeration via proxy objects - this approach is used to create a loosely coupled implementation that is easy to extend, but the loose coupling fools the static linking into thinking that one doesn't need them when they are in fact essential. The way around it is to explicitly add the symbols in in a way that forces the static linker to link in all the .o's. Its a bit of pain to do this as it breaks the loosely coupling that the proxy object system strives for. Since it is a bit of pain not all the plugins have been made static build friendly yet, if you want a specifc one to work with the static build you'll need to roll your sleeves up and help set up the code to do it.
Robert. On Thu, Jan 31, 2008 at 8:47 PM, Kramer, Robert W <[EMAIL PROTECTED]> wrote: > Nobody responded to my earlier question three weeks ago, so I'm > reposting: > > Can OpenFlight be linked statically? I compiled the osgstaticviewer and > it does not read *.flt files. The osgviewer that uses the shared object > version seems to work fine. I guess my question is--which plugins do I > need to register in my application and which global variables need to be > specified in order to link the openflt library statically? > > Any help is appreciated! > > Robert Kramer > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org