Hi Ashley,

Static building with the OSG isn't fully and cleanly implemented yet,
the plugins are what introduces complexities.  I had a bash at better
static build last year but only could test under Linux, and the work
didn't cover all plugins.  The osgstaticviewer is what I used as the
test bed.  Further improvements to the CMake support is probably
required across platforms, as well as to the plugins. Which plugins
have you tried so far?

Robert.

On Sat, Feb 2, 2008 at 10:44 PM, Ashley Smith <[EMAIL PROTECTED]> wrote:
> Hi there,
>
>  I am using osg statically in a little personal project and am having
>  some troubles with plug-ins.
>
>  Basically every time I load a .osg file using the
>  osgDB::ReaderWriter::readNode() function it seems to fail with an error
>  reading the file. I have followed it through and it seems to get to
>  ReaderWriterOSG::readNode() but then it won't load any of the nodes in
>  Registry::readObject(). However if I use a .ive file, it works.
>
>  I am using the macro USE_OSGPLUGIN(...) to get the linker to include the
>  plug-ins. Am I missing anything?
>
>  Sorry if this question has been asked before. But any help is very much
>  appreciated!
>
>  On another note, I had to add /D OSG_LIBRARY_STATIC ect. in cmake to get
>  it to make the build files as static in the first place. Is this
>  something I could contribute/help with? (Haven't really done it before)
>
>  Thanks
>  Ash
>  _______________________________________________
>  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

Reply via email to