In order to solve it, I had to edit the file "cegui/src/ScriptModules/Python/bindings/generators/include/python_CEGUIOgreRenderer.h" in the source folder, which looked like this:
Code: Select all
#include "CEGUI/String.h"
#include "CEGUI/GeometryBuffer.h"
#include "CEGUI/Texture.h"
#include "CEGUI/TextureTarget.h"
#include "CEGUI/GUIContext.h"
#include "CEGUI/RendererModules/Ogre/Renderer.h"
#include "CEGUI/RendererModules/Ogre/ResourceProvider.h"
#include "CEGUI/RendererModules/Ogre/ImageCodec.h"
namespace Ogre
{
class RenderTarget {};
class TexturePtr {};
class Matrix4 {};
}
and replace it for the following, which I took from "cegui/include/CEGUI/RendererModules/Ogre/Renderer.h" (I added curly brackets where necessary):
Code: Select all
#include "CEGUI/String.h"
#include "CEGUI/GeometryBuffer.h"
#include "CEGUI/Texture.h"
#include "CEGUI/TextureTarget.h"
#include "CEGUI/GUIContext.h"
#include "CEGUI/RendererModules/Ogre/Renderer.h"
#include "CEGUI/RendererModules/Ogre/ResourceProvider.h"
#include "CEGUI/RendererModules/Ogre/ImageCodec.h"
namespace Ogre
{
class Root{};
class RenderSystem{};
class RenderTarget{};
#if (CEGUI_OGRE_VERSION < ((1 << 16) | (9 << 8) | 0))
class TexturePtr{};
#else
template<typename T> class SharedPtr{};
class Texture{};
typedef SharedPtr<Texture> TexturePtr;
#endif
class Matrix4{};
}
After this, it compiled OK.