Re: [osg-users] [build] How does the solution build determine whether or not to compile a plugin
Hi On 11 June 2016 at 12:58, Dave Sargrad wrote: > Hi, > I've discovered that you can turn on CMKAKE diagnostics to see if > SETUP_PLUGIN is being called. Is it true that if you see an entry indicating > that SETUP_PLUGIN has been called then that plugin should be placed into the > solution for build? Or are there other factors that would cause a plugin not > to be included within the solution? Where do I look in the build chain to > determine whether or not the plugin has indeed been placed into the solution > for build? The OpenSceneGraph/src/osgPlugins/CMakeLists.txt contains all the references to the plugins. The optional plugins are enclosed in if () blocks where the test is usually checking for the presense of a 3rd party dependency that that plugin requires. The Find scripts that locate the 3rd part plugins are invoked in the the OpenSceneGraph/CMakeLists.txt, just look for Find*(). Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] How does the solution build determine whether or not to compile a plugin
Hi, I've discovered that you can turn on CMKAKE diagnostics to see if SETUP_PLUGIN is being called. Is it true that if you see an entry indicating that SETUP_PLUGIN has been called then that plugin should be placed into the solution for build? Or are there other factors that would cause a plugin not to be included within the solution? Where do I look in the build chain to determine whether or not the plugin has indeed been placed into the solution for build? Code: in -->SETUP_PLUGIN<-- osg-->C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/AlphaFunc.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/AnimationPath.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/AnimationPathCallback.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Array.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/AudioSink.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/AudioStream.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/AutoTransform.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Billboard.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/BlendColor.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/BlendEq uation.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/BlendEquationi.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/BlendFunc.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/BlendFunci.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Box.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Callback.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Camera.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/CameraView.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Capsule.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ClampColor.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ClearNode.cpp;C:/osg/OpenSceneGraph-3.4.0/Open SceneGraph-3.4.0/src/osgWrappers/serializers/osg/ClipControl.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ClipNode.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ClipPlane.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ClusterCullingCallback.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ColorMask.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ColorMaski.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ColorMatrix.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/CompositeShape.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ComputeBoundingBoxCallback.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ComputeBoundingSphereCallback.cpp;C:/osg/OpenS ceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Cone.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ConvexHull.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/ConvexPlanarOccluder.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/CoordinateSystemNode.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/CullFace.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Cylinder.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Depth.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Drawable.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/DrawPixels.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/EllipsoidModel.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSc eneGraph-3.4.0/src/osgWrappers/serializers/osg/Fog.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/FragmentProgram.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/FrontFace.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Geode.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Geometry.cpp;C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgWrappers/serializers/osg/Group.cpp;C:/osg/OpenSceneGraph-3.4
[osg-users] [build] How does the solution build determine whether or not to compile a plugin
Hi, I'm trying to figure out how the solution decides whether or not to build a plugin. Sometimes I see plugins built as in the following, sometimes not. -- Build started: Project: Plugins dae, Configuration: Debug x64 -- 190> Building Custom Rule C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgPlugins/dae/CMakeLists.txt 190> CMake does not need to re-run because C:\osg\OpenSceneGraph-3.4.0\build64\src\osgPlugins\dae\CMakeFiles\generate.stamp is up-to-date. Its not clear to me which build file contains the logic that makes this decision. Please help me to understand where I can find that logic. Thank you! Cheers, Dave -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67573#67573 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Drawable getBoundingBox() question
On 10 June 2016 at 23:02, Rick Irons wrote: > Shouldn’t the inlined getBoundingBox() method in include/osg/Drawable set > _boundingBoxComputed to ‘true’ or am I missing something? The later :-) From git master: /** Get BoundingBox of Drawable. * If the BoundingBox is not up to date then its updated via an internal call to computeBond(). */ inline const BoundingBox& getBoundingBox() const { if(!_boundingSphereComputed) { _boundingBox = _initialBound; if (_computeBoundCallback.valid()) _boundingBox.expandBy(_computeBoundCallback->computeBound(*this)); else _boundingBox.expandBy(computeBoundingBox()); if(_boundingBox.valid()){ _boundingSphere.set(_boundingBox.center(), _boundingBox.radius()); } else { _boundingSphere.init(); } _boundingSphereComputed = true; } return _boundingBox; } ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org