I think what Paul was asking is, if you build and install OSG, is there any
state retained anywhere (in a #define in a config.h or something) that
indicates _if_ OSG itself WAS built with OSG_STATIC, and therefore if the
application needs to configure its own #if blocks to automatically
instantiate the USE_OSGPLUGIN code.

And the secondary question is -- is there any harm in having USE-OSGPLUGIN
blocks in an application that is using OSG dynamically linked?

I tried to answer the question, but discovered that I don't actually know
these answers.


On Sat, Mar 8, 2014 at 1:22 AM, Robert Osfield <[email protected]>wrote:

> Hi Paul,
>
>
> On 7 March 2014 20:50, Paul Martz <[email protected]> wrote:
>
>> If OSG is linked statically, obviously I need to reference a plugin with
>> the USE_OSGPLUGIN macro.
>>
>> Is there any way I can determine at compile time whether the OSG I'm
>> linking against was built as static or dynamic? I want to use USE_OSGPLUGIN
>> if OSG was built static, and not use it otherwise, right?
>>
>> Should USE_OSGPLUGIN be defined as a no-op if OSG is built dynamic?
>>
>
> My inclination would be to simply put the block of USE_OSGPLUGIN in the
> end user application into a #if #endif block rather than making
> USE_OSGPLUGIN something that itself contains an #if #endif block.
>
> Robert.
>
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected]
http://www.alphapixel.com/
Training * Consulting * Contracting
3D * Scene Graphs (Open Scene Graph/OSG) * OpenGL 2 * OpenGL 3 * OpenGL 4 *
GLSL * OpenGL ES 1 * OpenGL ES 2 * OpenCL
Digital Imaging * GIS * GPS * osgEarth * Terrain * Telemetry * Cryptography
* Digital Audio * LIDAR * Kinect * Embedded * Mobile * iPhone/iPad/iOS *
Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to