Ogre 1.9 - Solution to MaterialPtr compilation errors

255

17-11-2014 20:35:57

If you get compilation errors with Ogre 1.9 and ETM, replace

// forward declarations
namespace Ogre
{
class SceneManager;
class MaterialPtr;
class Vector3;
};

with

// forward declarations
namespace Ogre
{
class SceneManager;
//class MaterialPtr; //replacing this, since in 1.9 MaterialPtr is a typedef
class Material;
template<class T> class SharedPtr;
typedef SharedPtr<Material> MaterialPtr;
class Vector3;
};

in ETTerrainManager.h

There are other errors but they are all straigthforward, apart the EditableTerrainManager.lib one which the solution for is here:
viewtopic.php?f=16&t=29638#p100726