[SOLVED] Build Cegui 0.8x with Ogre 1.9 Stable, dll error

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Fransferdy
Just popping in
Just popping in
Posts: 1
Joined: Sun Dec 22, 2013 14:09

[SOLVED] Build Cegui 0.8x with Ogre 1.9 Stable, dll error

Postby Fransferdy » Sun Dec 22, 2013 14:25

Well asking help in forums is normally the last thing I do, when I'm practically giving up of the system, I have already looked into every topic about cegui and ogre 1.9 I could find here, but none had the solution for what I'm having, some appeared to be the solution but didn't work.

I'm using Windows 8, Visual Studio 2012(Visual Studio 11)
Using Latest Cegui from Mercurial
The Cegui dependencies (0.8.x) are compiled and put in the source folder.
Cmake return no error.
Using Ogre 1.9 Stable.

On the CEGUIOgreRenderer and Ogre Sample project, I have added include :
OgreSDK_vc11_v1-9-0\boost
and lib :
OgreSDK_vc11_v1-9-0\boost\lib

Config.h ->

#ifndef CEGUI_OGRE_VERSION_MAJOR
# define CEGUI_OGRE_VERSION_MAJOR 1
#endif
#ifndef CEGUI_OGRE_VERSION_MINOR
# define CEGUI_OGRE_VERSION_MINOR 9
#endif
#ifndef CEGUI_OGRE_VERSION_PATCH
# define CEGUI_OGRE_VERSION_PATCH 0
#endif

However When I try to compile I get the following error messages:


Code: Select all

>------ Build started: Project: CEGUIOgreRenderer-9999, Configuration: Debug Win32 ------
2>Build started 22/12/2013 12:01:31.
2>InitializeBuildStatus:
2>  Touching "CEGUIOgreRenderer-9999.dir\Debug\CEGUIOgreRenderer-9999.unsuccessfulbuild".
2>CustomBuild:
2>  All outputs are up-to-date.
2>ClCompile:
2>  GeometryBuffer.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C2143: syntax error : missing ',' before '&'
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C2143: syntax error : missing ',' before '*'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(123): error C2512: 'CEGUI::GeometryBuffer' : no appropriate default constructor available
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(158): warning C4244: 'argument' : conversion from 'const float' to 'size_t', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(205): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(205): error C2143: syntax error : missing ',' before '&'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(207): error C2065: 'vertex' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(211): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(211): error C2143: syntax error : missing ',' before '*'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(228): error C2065: 'vertex_count' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(232): error C2065: 'vertex_count' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(234): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(234): error C2143: syntax error : missing ';' before '&'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(234): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(234): error C2065: 'vbuff' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(236): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(236): error C2228: left of '.position' must have class/struct/union
2>          type is ''unknown-type''
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(236): error C2228: left of '.d_x' must have class/struct/union
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(237): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(237): error C2228: left of '.position' must have class/struct/union
2>          type is ''unknown-type''
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(237): error C2228: left of '.d_y' must have class/struct/union
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(238): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(238): error C2228: left of '.position' must have class/struct/union
2>          type is ''unknown-type''
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(238): error C2228: left of '.d_z' must have class/struct/union
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(239): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(239): error C2228: left of '.colour_val' must have class/struct/union
2>          type is ''unknown-type''
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(240): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(240): error C2228: left of '.tex_coords' must have class/struct/union
2>          type is ''unknown-type''
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(240): error C2228: left of '.d_x' must have class/struct/union
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(241): error C2065: 'vs' : undeclared identifier
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(241): error C2228: left of '.tex_coords' must have class/struct/union
2>          type is ''unknown-type''
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\GeometryBuffer.cpp(241): error C2228: left of '.d_y' must have class/struct/union
2>  ImageCodec.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\ImageCodec.cpp(113): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
2>  Renderer.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C2143: syntax error : missing ',' before '&'
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C2143: syntax error : missing ',' before '*'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(254): error C2259: 'CEGUI::OgreRenderer' : cannot instantiate abstract class
2>          due to following members:
2>          'CEGUI::GeometryBuffer &CEGUI::Renderer::createGeometryBufferTextured(CEGUI::RefCounted<T>)' : is abstract
2>          with
2>          [
2>              T=CEGUI::RenderMaterial
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/Renderer.h(134) : see declaration of 'CEGUI::Renderer::createGeometryBufferTextured'
2>          'CEGUI::GeometryBuffer &CEGUI::Renderer::createGeometryBufferColoured(CEGUI::RefCounted<T>)' : is abstract
2>          with
2>          [
2>              T=CEGUI::RenderMaterial
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/Renderer.h(157) : see declaration of 'CEGUI::Renderer::createGeometryBufferColoured'
2>          'CEGUI::RefCounted<T> CEGUI::Renderer::createRenderMaterial(const CEGUI::DefaultShaderType) const' : is abstract
2>          with
2>          [
2>              T=CEGUI::RenderMaterial
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/Renderer.h(421) : see declaration of 'CEGUI::Renderer::createRenderMaterial'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(263): error C2259: 'CEGUI::OgreRenderer' : cannot instantiate abstract class
2>          due to following members:
2>          'CEGUI::GeometryBuffer &CEGUI::Renderer::createGeometryBufferTextured(CEGUI::RefCounted<T>)' : is abstract
2>          with
2>          [
2>              T=CEGUI::RenderMaterial
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/Renderer.h(134) : see declaration of 'CEGUI::Renderer::createGeometryBufferTextured'
2>          'CEGUI::GeometryBuffer &CEGUI::Renderer::createGeometryBufferColoured(CEGUI::RefCounted<T>)' : is abstract
2>          with
2>          [
2>              T=CEGUI::RenderMaterial
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/Renderer.h(157) : see declaration of 'CEGUI::Renderer::createGeometryBufferColoured'
2>          'CEGUI::RefCounted<T> CEGUI::Renderer::createRenderMaterial(const CEGUI::DefaultShaderType) const' : is abstract
2>          with
2>          [
2>              T=CEGUI::RenderMaterial
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/Renderer.h(421) : see declaration of 'CEGUI::Renderer::createRenderMaterial'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(318): error C2259: 'CEGUI::OgreGeometryBuffer' : cannot instantiate abstract class
2>          due to following members:
2>          'void CEGUI::GeometryBuffer::appendGeometry(const std::vector<_Ty> &)' : is abstract
2>          with
2>          [
2>              _Ty=float
2>          ]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/GeometryBuffer.h(214) : see declaration of 'CEGUI::GeometryBuffer::appendGeometry'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(329): error C2440: 'initializing' : cannot convert from 'std::_Vector_iterator<_Myvec>' to 'std::_Vector_iterator<_Myvec>'
2>          with
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::OgreGeometryBuffer *>>
2>          ]
2>          and
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::GeometryBuffer *>>
2>          ]
2>          No constructor could take the source type, or constructor overload resolution was ambiguous
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(331): error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'std::_Vector_iterator<_Myvec>' (or there is no acceptable conversion)
2>          with
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::OgreGeometryBuffer *>>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\exception(522): could be 'bool std::operator !=(const std::exception_ptr &,const std::exception_ptr &)' [found using argument-dependent lookup]
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\exception(527): or       'bool std::operator !=(std::nullptr_t,const std::exception_ptr &)' [found using argument-dependent lookup]
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\exception(532): or       'bool std::operator !=(const std::exception_ptr &,std::nullptr_t)' [found using argument-dependent lookup]
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\system_error(443): or       'bool std::operator !=(const std::error_code &,const std::error_condition &) throw()' [found using argument-dependent lookup]
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\system_error(450): or       'bool std::operator !=(const std::error_condition &,const std::error_code &) throw()' [found using argument-dependent lookup]
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\tuple(572): or       'bool std::operator !=(const std::tuple<> &,const std::tuple<> &)' [found using argument-dependent lookup]
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5176): or       'bool CEGUI::operator !=(const CEGUI::String &,const CEGUI::String &)'
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5182): or       'bool CEGUI::operator !=(const CEGUI::String &,const std::string &)'
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5188): or       'bool CEGUI::operator !=(const std::string &,const CEGUI::String &)'
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5194): or       'bool CEGUI::operator !=(const CEGUI::String &,const CEGUI::utf8 *)'
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5200): or       'bool CEGUI::operator !=(const CEGUI::utf8 *,const CEGUI::String &)'
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5338): or       'bool CEGUI::operator !=(const CEGUI::String &,const char *)'
2>          C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/String.h(5344): or       'bool CEGUI::operator !=(const char *,const CEGUI::String &)'
2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\vector(208): or       'bool std::_Vector_const_iterator<_Myvec>::operator !=(const std::_Vector_const_iterator<_Myvec> &) const'
2>          with
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::OgreGeometryBuffer *>>
2>          ]
2>          while trying to match the argument list '(std::_Vector_iterator<_Myvec>, std::_Vector_iterator<_Myvec>)'
2>          with
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::OgreGeometryBuffer *>>
2>          ]
2>          and
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::GeometryBuffer *>>
2>          ]
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(333): error C2664: 'std::_Vector_iterator<_Myvec> std::vector<_Ty>::erase(std::_Vector_const_iterator<_Myvec>)' : cannot convert parameter 1 from 'std::_Vector_iterator<_Myvec>' to 'std::_Vector_const_iterator<_Myvec>'
2>          with
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::OgreGeometryBuffer *>>,
2>              _Ty=CEGUI::OgreGeometryBuffer *
2>          ]
2>          and
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::GeometryBuffer *>>
2>          ]
2>          and
2>          [
2>              _Myvec=std::_Vector_val<std::_Simple_types<CEGUI::OgreGeometryBuffer *>>
2>          ]
2>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(621): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Renderer.cpp(622): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>  ResourceProvider.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>  Texture.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(45): warning C4244: 'return' : conversion from 'const float' to 'size_t', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(48): warning C4244: 'return' : conversion from 'const float' to 'size_t', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(52): warning C4244: 'return' : conversion from 'const float' to 'size_t', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(61): warning C4244: 'return' : conversion from 'float' to 'size_t', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(65): warning C4244: 'return' : conversion from 'float' to 'size_t', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(160): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::ushort', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(167): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(168): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(183): warning C4244: 'argument' : conversion from 'float' to 'Ogre::uint32', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(184): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint32', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(195): warning C4244: 'argument' : conversion from 'float' to 'Ogre::uint32', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(235): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(242): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(243): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(322): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\Texture.cpp(323): warning C4244: '=' : conversion from 'Ogre::uint32' to 'float', possible loss of data
2>  TextureTarget.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\TextureTarget.cpp(107): warning C4244: 'argument' : conversion from 'const float' to 'Ogre::uint', possible loss of data
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\TextureTarget.cpp(112): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C2143: syntax error : missing ',' before '&'
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C2143: syntax error : missing ',' before '*'
2>  WindowTarget.cpp
2>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
2>          command-line arguments :  see previous definition of 'NOMINMAX'
2>..\..\..\..\..\cegui\src\RendererModules\Ogre\WindowTarget.cpp(72): warning C4244: 'argument' : conversion from 'Ogre::uint32' to 'const float', possible loss of data
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(81): error C2143: syntax error : missing ',' before '&'
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\MYSQL\Ceguii\cegui\cegui\include\CEGUI/RendererModules/Ogre/GeometryBuffer.h(82): error C2143: syntax error : missing ',' before '*'
2>  Generating Code...
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:50.17
3>------ Build started: Project: CEGUISampleFramework-9999.0, Configuration: Debug Win32 ------
3>Build started 22/12/2013 12:02:21.
3>InitializeBuildStatus:
3>  Touching "CEGUISampleFramework-9999.0.dir\Debug\CEGUISampleFramework-9999.0.unsuccessfulbuild".
3>CustomBuild:
3>  All outputs are up-to-date.
3>ClCompile:
3>  CEGuiOgreBaseApplication.cpp
3>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
3>          command-line arguments :  see previous definition of 'NOMINMAX'
3>..\..\samples_framework\src\CEGuiOgreBaseApplication.cpp(341): warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data
3>  SamplesFrameworkBase.cpp
3>c:\mysql\ogresdk_vc11_v1-9-0\include\ogre\OgreString.h(228): warning C4005: 'NOMINMAX' : macro redefinition
3>          command-line arguments :  see previous definition of 'NOMINMAX'
3>  Generating Code...
3>LINK : fatal error LNK1104: cannot open file '..\lib\CEGUIOgreRenderer-9999_d.lib'
3>
3>Build FAILED.
3>
3>Time Elapsed 00:00:45.60
4>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
4>Build started 22/12/2013 12:03:07.
4>InitializeBuildStatus:
4>  Creating "Win32\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.
4>CustomBuild:
4>  Build all projects
4>FinalizeBuildStatus:
4>  Deleting file "Win32\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
4>  Touching "Win32\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".
4>
4>Build succeeded.
4>
4>Time Elapsed 00:00:00.21
5>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
6>Project not selected to build for this solution configuration
========== Build: 2 succeeded, 2 failed, 30 up-to-date, 2 skipped ==========



The first line in Ogre Geometry that is 'wrong' is the following:
virtual void appendVertex(const Vertex& vertex);
And Vertex& is highlighted as undefined.

It looks like Cegui expects something from Ogre that it can't find, but as I said Config.h looks right, I don't know what more to do, I've already tried to link against ogre 1.9 unstable thinking that Cegui could be outdated, and something have changed from ogre 1.9 unstable to stable, but no success.

Please help me T.T

Thanks in Advance.

Edit: I've read somewhere that default branch of cegui is higly flammable and should not be used, so I'm switching to V8.3 branch, I'll see if this fix my problems.

Edi2: yeah that was it ^, solved by my self, also, to anybody struggling with linking errors, link OgreMain.lib and Ogremain_d.lib,Ois.lib and Ois_d.lib and libboost_system-vc110-mt-1_55.lib and libboost_system-vc110-mt-gd-1_55.lib against ceguiogrerender and sampleframework in its respective builds.

Well, Cegui is now 'correctly built', however I tried to run Sample Browser, and got a error about missing OIS.dll, then I put every dll of my ogre build inside the bin folder of Cegui, now when I open the SampleFramework, I get the following error:
Image

Any ideas?

Edi3: Well, debug version is working, just release doesn't work.

Edi4: Got it working, my project was using ogre 1.9 unstable dlls and I was using Ogre 1.9 stable, don't know why the error just popped now though, I fixed the dll problem, everything is running fine now.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Build Cegui 0.8x with Ogre 1.9 Stable, dll error

Postby Ident » Sun Dec 29, 2013 22:08

you probably did not compile cegui correctly against the right ogre version or something like that. in either case - great that u could figure the problem out and fix it!
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests