My environment is:
Windows 7 64 bit
OgreSDK_vc11_v1-9-0
Microsoft Visual Studio 2010 Ultimate
cegui-0.8.2
cegui-deps-0.8.x-src
Compiling log for CEGUIOgreRenderer-0
Code: Select all
Build started 2014/9/22 6:35:24.
1>Project "F:\3rdParty\cegui\cegui-0.8.2\cegui\src\RendererModules\Ogre\CEGUIOgreRenderer-0.vcxproj" on node 3 (build target(s)).
1>InitializeBuildStatus:
Touching "CEGUIOgreRenderer-0.dir\Debug\CEGUIOgreRenderer-0.unsuccessfulbuild".
CustomBuild:
All outputs are up-to-date.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\boost" /I"F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\include\OGRE" /I"F:/3rdParty/cegui/cegui-0.8.2/cegui/include" /I"F:/3rdParty/cegui/cegui-0.8.2/cegui/include/RendererModules/Ogre" /Zi /nologo /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D _CRT_SECURE_NO_WARNINGS /D NOMINMAX /D "CMAKE_INTDIR=\"Debug\"" /D CEGUIOGRERENDERER_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"CEGUIOgreRenderer-0.dir\Debug\\" /Fd"F:/3rdParty/cegui/cegui-0.8.2/bin/CEGUIOgreRenderer-0_d.pdb" /Gd /TP /analyze- /errorReport:prompt GeometryBuffer.cpp ImageCodec.cpp Renderer.cpp ResourceProvider.cpp Texture.cpp TextureTarget.cpp WindowTarget.cpp
GeometryBuffer.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(104): error C2079: 'CEGUI::OgreGeometryBuffer::BatchInfo::texture' uses undefined class 'Ogre::TexturePtr'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Texture.h(98): error C2079: 'CEGUI::OgreTexture::d_texture' uses undefined class 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(352): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(354): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>GeometryBuffer.cpp(158): warning C4244: 'argument' : conversion from 'const float' to 'size_t', possible loss of data
1>GeometryBuffer.cpp(158): warning C4244: 'argument' : conversion from 'const float' to 'size_t', possible loss of data
1>GeometryBuffer.cpp(158): warning C4244: 'argument' : conversion from 'const float' to 'size_t', possible loss of data
1>GeometryBuffer.cpp(158): warning C4244: 'argument' : conversion from 'const float' to 'size_t', possible loss of data
1>GeometryBuffer.cpp(162): error C2664: 'void Ogre::RenderSystem::_setTexture(size_t,bool,const Ogre::TexturePtr &)' : cannot convert parameter 3 from 'const int' to 'const Ogre::TexturePtr &'
Reason: cannot convert from 'const int' to 'const Ogre::TexturePtr'
Source or target has incomplete type
1>GeometryBuffer.cpp(215): error C2079: 't' uses undefined class 'Ogre::TexturePtr'
1>GeometryBuffer.cpp(217): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>GeometryBuffer.cpp(217): error C2440: '=' : cannot convert from 'Ogre::TexturePtr' to 'int'
Source or target has incomplete type
ImageCodec.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Texture.h(98): error C2079: 'CEGUI::OgreTexture::d_texture' uses undefined class 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(352): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(354): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreSceneManager.h(747): error C2079: 'Ogre::SceneManager::mNullShadowTexture' uses undefined class 'Ogre::TexturePtr'
1>ImageCodec.cpp(113): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
1>ImageCodec.cpp(113): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
Renderer.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(104): error C2079: 'CEGUI::OgreGeometryBuffer::BatchInfo::texture' uses undefined class 'Ogre::TexturePtr'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Texture.h(98): error C2079: 'CEGUI::OgreTexture::d_texture' uses undefined class 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(352): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(354): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreSceneManager.h(747): error C2079: 'Ogre::SceneManager::mNullShadowTexture' uses undefined class 'Ogre::TexturePtr'
1>Renderer.cpp(621): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
1>Renderer.cpp(622): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
ResourceProvider.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
Texture.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Texture.h(98): error C2079: 'CEGUI::OgreTexture::d_texture' uses undefined class 'Ogre::TexturePtr'
1>F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\include\OGRE\OgreTextureManager.h(352): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\include\OGRE\OgreTextureManager.h(354): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>Texture.cpp(45): warning C4244: 'return' : conversion from 'const float' to 'size_t', possible loss of data
1>Texture.cpp(48): warning C4244: 'return' : conversion from 'const float' to 'size_t', possible loss of data
1>Texture.cpp(52): warning C4244: 'return' : conversion from 'const float' to 'size_t', possible loss of data
1>Texture.cpp(61): warning C4244: 'return' : conversion from 'float' to 'size_t', possible loss of data
1>Texture.cpp(65): warning C4244: 'return' : conversion from 'float' to 'size_t', possible loss of data
1>Texture.cpp(160): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>Texture.cpp(160): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::ushort', possible loss of data
1>Texture.cpp(160): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::ushort', possible loss of data
1>Texture.cpp(160): error C2440: '=' : cannot convert from 'Ogre::TexturePtr' to 'int'
Source or target has incomplete type
1>Texture.cpp(163): error C2228: left of '.isNull' must have class/struct/union
type is 'int'
1>Texture.cpp(167): error C2227: left of '->getWidth' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(168): error C2227: left of '->getHeight' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(176): error C2228: left of '.isNull' must have class/struct/union
type is 'int'
1>Texture.cpp(183): warning C4244: 'argument' : conversion from 'float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(183): warning C4244: 'argument' : conversion from 'float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(184): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(184): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(184): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(184): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(185): error C2227: left of '->getBuffer' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(185): error C2227: left of '->blitFromMemory' must point to class/struct/union/generic type
1>Texture.cpp(191): error C2228: left of '.isNull' must have class/struct/union
type is 'int'
1>Texture.cpp(195): warning C4244: 'argument' : conversion from 'float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(195): warning C4244: 'argument' : conversion from 'float' to 'Ogre::uint32', possible loss of data
1>Texture.cpp(196): error C2227: left of '->getBuffer' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(196): error C2227: left of '->blitToMemory' must point to class/struct/union/generic type
1>Texture.cpp(235): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>Texture.cpp(235): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint', possible loss of data
1>Texture.cpp(235): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint', possible loss of data
1>Texture.cpp(235): error C2440: '=' : cannot convert from 'Ogre::TexturePtr' to 'int'
Source or target has incomplete type
1>Texture.cpp(238): error C2228: left of '.isNull' must have class/struct/union
type is 'int'
1>Texture.cpp(242): error C2227: left of '->getWidth' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(243): error C2227: left of '->getHeight' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(257): error C2664: 'CEGUI::OgreTexture::setOgreTexture' : cannot convert parameter 1 from 'Ogre::TexturePtr' to 'Ogre::TexturePtr'
Source or target has incomplete type
1>Texture.cpp(269): error C2228: left of '.isNull' must have class/struct/union
type is 'int'
1>Texture.cpp(270): error C2227: left of '->getHandle' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(272): error C2228: left of '.setNull' must have class/struct/union
type is 'int'
1>Texture.cpp(317): error C2440: '=' : cannot convert from 'Ogre::TexturePtr' to 'int'
Source or target has incomplete type
1>Texture.cpp(320): error C2228: left of '.isNull' must have class/struct/union
type is 'int'
1>Texture.cpp(322): error C2227: left of '->getWidth' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(323): error C2227: left of '->getHeight' must point to class/struct/union/generic type
type is 'int'
1>Texture.cpp(334): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>Texture.cpp(334): error C2079: 'CEGUI::OgreTexture::getOgreTexture' uses undefined class 'Ogre::TexturePtr'
TextureTarget.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Texture.h(98): error C2079: 'CEGUI::OgreTexture::d_texture' uses undefined class 'Ogre::TexturePtr'
1>F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\include\OGRE\OgreTextureManager.h(352): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\include\OGRE\OgreTextureManager.h(354): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>TextureTarget.cpp(103): error C2079: 'rttTex' uses undefined class 'Ogre::TexturePtr'
1>TextureTarget.cpp(107): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>TextureTarget.cpp(107): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint', possible loss of data
1>TextureTarget.cpp(107): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint', possible loss of data
1>TextureTarget.cpp(107): error C2440: 'initializing' : cannot convert from 'Ogre::TexturePtr' to 'int'
Source or target has incomplete type
1>TextureTarget.cpp(109): error C2227: left of '->getBuffer' must point to class/struct/union/generic type
type is 'int'
1>TextureTarget.cpp(109): error C2227: left of '->getRenderTarget' must point to class/struct/union/generic type
1>TextureTarget.cpp(112): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
1>TextureTarget.cpp(112): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
1>TextureTarget.cpp(125): error C2664: 'CEGUI::OgreTexture::setOgreTexture' : cannot convert parameter 1 from 'int' to 'Ogre::TexturePtr'
Source or target has incomplete type
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(104): error C2079: 'CEGUI::OgreGeometryBuffer::BatchInfo::texture' uses undefined class 'Ogre::TexturePtr'
WindowTarget.cpp
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgrePrerequisites.h(324): error C2371: 'Ogre::TexturePtr' : redefinition; different basic types
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
command-line arguments : see previous definition of 'NOMINMAX'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(352): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>f:\3rdparty\engine\ogre\ogresdk_vc10_v1-9-0\include\ogre\OgreTextureManager.h(354): error C2027: use of undefined type 'Ogre::TexturePtr'
F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/Renderer.h(57) : see declaration of 'Ogre::TexturePtr'
1>WindowTarget.cpp(72): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
1>WindowTarget.cpp(72): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
1>F:\3rdParty\cegui\cegui-0.8.2\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(104): error C2079: 'CEGUI::OgreGeometryBuffer::BatchInfo::texture' uses undefined class 'Ogre::TexturePtr'
Generating Code...
1>Done Building Project "F:\3rdParty\cegui\cegui-0.8.2\cegui\src\RendererModules\Ogre\CEGUIOgreRenderer-0.vcxproj" (build target(s)) -- FAILED.
Build FAILED.
Time Elapsed 00:00:15.15
My c/c++ -> General -> Additional Include DIrectories is
Code: Select all
$(BOOST_ROOT)
F:\3rdParty\Engine\Ogre\OgreSDK_vc10_v1-9-0\include\OGRE
F:/3rdParty/cegui/cegui-0.8.2/cegui/include
F:/3rdParty/cegui/cegui-0.8.2/cegui/include/RendererModules/Ogre
%(AdditionalIncludeDirectories)
I found the code in OgrePrerequisites.h:
Code: Select all
namespace Ogre {
...
template<typename T> class SharedPtr;
...
typedef SharedPtr<Texture> TexturePtr;
}
And the code in Renderer.h
Code: Select all
namespace Ogre
{
class Root;
class RenderSystem;
class RenderTarget;
class TexturePtr;
class Matrix4;
}
I think the code in Renderer.h is just a declearation. Why it is a redefinition error?