CEGUI 0.8.2 w/ Ogre 1.9 compilation problems OS X
Posted: Fri Aug 30, 2013 10:19
Hello,
Newbie here. I am trying to compile CEGUI for use with OGRE 1.9.
This is my OGRE configuration (which I have compiled successfully as a .framework):
--Built from the latest mercurial.
-- LibC++ dependencies and support enabled.
Now, on to CEGUI
-- I downloaded the dependencies and the latest source here.
-- I compiled the dependencies using CMake
-- I dragged the compiled dependencies folder into the source folder of CEGUI
-- I configured the CEGUI source using CMAKE for Xcode, enabling CEGUI_BUILD_RENDERER_OGRE, CEGUI_BUILD_STATIC_CONFIGURATION, and CEGUI_BUILD_SHARED_LIBS_WITH_STATIC_DEPENDENCIES
-- I opened the Xcode project and manually entered the "header search paths" to my boost directory (I had to do that, as I have installed boost using the Ogre dependencies package for libc++, so the headers are not in the default directory, and they could not be found).
-- I tried to compile the Ogre renderer target.
-- The CEGUI base compiles normally. However, the Ogre renderer gives me errors:
My guess is that it seems that there are some things that have changed in the texturing system in Ogre 1.9, and CEGUI expects to find something else. Can anyone help with this?
Newbie here. I am trying to compile CEGUI for use with OGRE 1.9.
This is my OGRE configuration (which I have compiled successfully as a .framework):
--Built from the latest mercurial.
-- LibC++ dependencies and support enabled.
Now, on to CEGUI
-- I downloaded the dependencies and the latest source here.
-- I compiled the dependencies using CMake
-- I dragged the compiled dependencies folder into the source folder of CEGUI
-- I configured the CEGUI source using CMAKE for Xcode, enabling CEGUI_BUILD_RENDERER_OGRE, CEGUI_BUILD_STATIC_CONFIGURATION, and CEGUI_BUILD_SHARED_LIBS_WITH_STATIC_DEPENDENCIES
-- I opened the Xcode project and manually entered the "header search paths" to my boost directory (I had to do that, as I have installed boost using the Ogre dependencies package for libc++, so the headers are not in the default directory, and they could not be found).
-- I tried to compile the Ogre renderer target.
-- The CEGUI base compiles normally. However, the Ogre renderer gives me errors:
Code: Select all
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:28:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/WindowTarget.h:31:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/RenderTarget.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreMatrix4.h:32:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgrePrerequisites.h:324:32: error: typedef redefinition with different types ('SharedPtr<Ogre::Texture>' vs 'Ogre::TexturePtr')
typedef SharedPtr<Texture> TexturePtr;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:28:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/WindowTarget.h:31:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/RenderTarget.h:32:
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h:57:7: note: previous definition is here
class TexturePtr;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:92:48: warning: 'Ogre::TextureManager::createOrRetrieve' hides overloaded virtual function [-Woverloaded-virtual]
virtual ResourceCreateOrRetrieveResult createOrRetrieve(
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreResourceManager.h:166:42: note: hidden overloaded virtual function 'Ogre::ResourceManager::createOrRetrieve' declared here
virtual ResourceCreateOrRetrieveResult createOrRetrieve(const String& name,
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:126:28: warning: 'Ogre::TextureManager::prepare' hides overloaded virtual function [-Woverloaded-virtual]
virtual TexturePtr prepare(
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreResourceManager.h:397:23: note: hidden overloaded virtual function 'Ogre::ResourceManager::prepare' declared here
virtual ResourcePtr prepare(const String& name,
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:161:28: warning: 'Ogre::TextureManager::load' hides overloaded virtual function [-Woverloaded-virtual]
virtual TexturePtr load(
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreResourceManager.h:417:23: note: hidden overloaded virtual function 'Ogre::ResourceManager::load' declared here
virtual ResourcePtr load(const String& name,
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:338:20: error: incomplete result type 'Ogre::TexturePtr' in function definition
TexturePtr createManual(const String & name, const String& group,
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:28:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/WindowTarget.h:31:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/RenderTarget.h:32:
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h:57:7: note: forward declaration of 'Ogre::TexturePtr'
class TexturePtr;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:343:11: error: calling 'createManual' with incomplete return type 'Ogre::TexturePtr'
return createManual(name, group, texType, width, height, 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreTextureManager.h:289:28: note: 'createManual' declared here
virtual TexturePtr createManual(const String & name, const String& group,
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:28:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/WindowTarget.h:31:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/RenderTarget.h:32:
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h:57:7: note: forward declaration of 'Ogre::TexturePtr'
class TexturePtr;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:35:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreViewport.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreFrustum.h:444:22: warning: 'Ogre::Frustum::isVisible' hides overloaded virtual function [-Woverloaded-virtual]
virtual bool isVisible(const AxisAlignedBox& bound, FrustumPlane* culledBy = 0) const;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:35:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreViewport.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreFrustum.h:32:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreMovableObject.h:292:22: note: hidden overloaded virtual function 'Ogre::MovableObject::isVisible' declared here
virtual bool isVisible(void) const;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:35:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreViewport.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreFrustum.h:457:22: warning: 'Ogre::Frustum::isVisible' hides overloaded virtual function [-Woverloaded-virtual]
virtual bool isVisible(const Sphere& bound, FrustumPlane* culledBy = 0) const;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:35:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreViewport.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreFrustum.h:32:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreMovableObject.h:292:22: note: hidden overloaded virtual function 'Ogre::MovableObject::isVisible' declared here
virtual bool isVisible(void) const;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:35:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreViewport.h:34:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreFrustum.h:470:22: warning: 'Ogre::Frustum::isVisible' hides overloaded virtual function [-Woverloaded-virtual]
virtual bool isVisible(const Vector3& vert, FrustumPlane* culledBy = 0) const;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:30:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreRenderTarget.h:35:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreViewport.h:34:
In file included from /Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreFrustum.h:32:
/Users/soulstorm/Library/Frameworks/Ogre.framework/Headers/OgreMovableObject.h:292:22: note: hidden overloaded virtual function 'Ogre::MovableObject::isVisible' declared here
virtual bool isVisible(void) const;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:85:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/./RenderTarget.inl:31:
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:104:26: error: field has incomplete type 'Ogre::TexturePtr'
Ogre::TexturePtr texture;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:28:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/WindowTarget.h:31:
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/RenderTarget.h:32:
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h:57:7: note: forward declaration of 'Ogre::TexturePtr'
class TexturePtr;
^
In file included from /Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:85:
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/./RenderTarget.inl:50:5: warning: field 'd_viewportValid' will be initialized after field 'd_viewDistance' [-Wreorder]
d_viewportValid(false),
^
/Users/soulstorm/Downloads/cegui-0.8.2/cegui/src/RendererModules/Ogre/WindowTarget.cpp:39:5: note: in instantiation of member function 'CEGUI::OgreRenderTarget<CEGUI::RenderTarget>::OgreRenderTarget' requested here
OgreRenderTarget<>(owner, rs)
^
7 warnings and 4 errors generated.
My guess is that it seems that there are some things that have changed in the texturing system in Ogre 1.9, and CEGUI expects to find something else. Can anyone help with this?