Great !! I'm on this now: I will need to find how to retrieve the symbols in
lib file under linux then how to force gcc to include specific symbols, then
how to tell CMake to force gcc to do this :-)
I'll tell you as soon as I find something.
Manu.
2007/5/23, Robert Osfield <[EMAIL PROTECTED]>:
Forgot to mention my change is now checked in.
On 5/23/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
> Hi Manu,
>
> My suggested change to CMakeModules/OsgMacroUtils.cmake works just
> fine, both dynamic and static builds work, with both libs and plugins
> compiling as static when requested.
>
> osgviewer tells me that it can't find plugins or
> windowsysteminterface, but hey you've been there before.
>
> So how did you go about fixing these?
>
> Robert.
>
>
> On 5/23/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
> > Hi Manu,
> >
> > On 5/23/07, Emmanuel Roche <[EMAIL PROTECTED]> wrote:
> > > And changing this 'MODULE' variable tout "STATIC" leads to the
construction
> > > of static plugin libs ! bingo !
> > >
> > > I guess someone should include somewhere the test done for the core
libs to
> > > decide here if we should have "SHARED" or "STATIC"... what was this
'MODULE'
> > > used for in fact ??
> >
> > The plugin macro in OpenSceneGraph/CMakeModules/OsgMacroUtils.cmake,
> > and the macro specifically is:
> >
> > MACRO(SETUP_PLUGIN PLUGIN_NAME)
> >
> > ...
> >
> >
> > It should be easy to put a conditional, looking at the compile of core
> > libs, it looks like it should be possible to use:
> >
> > IF (DYNAMIC_OPENSCENEGRAPH)
> > ADD_LIBRARY(${TARGET_TARGETNAME} MODULE ${TARGET_SRC}
${TARGET_H})
> > ELSE (DYNAMIC_OPENSCENEGRAPH)
> > ADD_LIBRARY(${TARGET_TARGETNAME} STATIC ${TARGET_SRC}
${TARGET_H})
> > ENDIF(DYNAMIC_OPENSCENEGRAPH)
> >
> >
> > I'll do a clean dynamic build, then try out the static build too.
> >
> > Robert.
> >
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/