rendered paste bodyndex: src/lugre_ogrewrapper.cpp
===================================================================
--- src/lugre_ogrewrapper.cpp (revision 294)
+++ src/lugre_ogrewrapper.cpp (working copy)
@@ -30,6 +30,15 @@
+#define LUGRE_STATIC_BUILD
+
+#ifdef LUGRE_STATIC_BUILD
+// set include paths so the compiler finds this, and sub-includes
+// probably the searchpath has to point to ogre1.4.6/ogrenew/RenderSystems/GL/include
+#include <OgreGLPlugin.h>
+#include <OgreParticleFXPlugin.h>
+#endif
+
+
using namespace OIS;
using namespace Ogre;
@@ -315,6 +324,13 @@
mRoot = new Root(PATH_PLUGIN_CFG);
lugre_loadOgrePlugins_linux(mRoot,PATH_PLUGIN_CFG_TEMPLATE,sLugreOgrePluginDir.c_str());
#endif
+
+
+#ifdef LUGRE_STATIC_BUILD
+ // edit iris/bin/plugins_linux.cfg and remove lines with Plugin=.....so
+ Root::getSingleton().installPlugin(new Ogre::GLPlugin());
+ Root::getSingleton().installPlugin(new Ogre::ParticleFXPlugin());
+#endif
//setupResources();