ndex: 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 +#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 Plugin=RenderSystem_GL.so + Ogre::GLPlugin* myGLPlugin = new GLPlugin(); + Root::getSingleton().installPlugin(myGLPlugin); +#endif //setupResources();