[osg-users] Statically linking everything.

Robert Osfield robert.osfield at gmail.com
Tue Feb 16 01:37:38 PST 2016


HI Scott,

On 16 February 2016 at 01:51, Scott Duensing <scott at duensing.com> wrote:
> Okay, after more tinkering I have it linking.  I'm still not entirely sure what all the macros should be.  If I use USE_DOTOSGWRAPPER_LIBRARY() for anything, I get link errors again.

The build should be as simple as changing the CMake options
DYNAMIC_OPENSCENEGRAPH and DYNAMIC_OPENTHREADS to OFF.

When compiling + linking applications you have to explictly link to
the plugins and any wrappers.  The osgstaticviewer example
(examples/osgstaticviewer) illustrates how.

Robert.



More information about the osg-users mailing list