ogre 1.0 and CEGUI 0.1.1 - linking error

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
paddy
Not too shy to talk
Not too shy to talk
Posts: 30
Joined: Wed Jan 12, 2005 12:06

ogre 1.0 and CEGUI 0.1.1 - linking error

Postby paddy » Mon Feb 07, 2005 00:08

I just upgraded to Ogre 1.0 and got that to compile fine, it uses CEGUI as a dependancy, but I also have CEGUI already in my project. When I compiled my app, I got a DLL entry point error at runtime, so I figured it must be a different version of CEGUI in the DLL that came with Ogre and the version I have in my app.

So, I DLed the latest CEGUI version, compiled it, and it all worked until the Ogre stuff:

Code: Select all

--------------------Configuration: OgreRenderer - Win32 Release--------------------
Linking...
   Creating library ../../../../../lib/OgreGUIRenderer.lib and object ../../../../../lib/OgreGUIRenderer.exp
ogretexture.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::DataChunk::~DataChunk(void)" (__imp_??1DataChunk@Ogre@@UAE@XZ)
ogretexture.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::DataChunk::DataChunk(void *,unsigned int)" (__imp_??0DataChunk@Ogre@@QAE@PAXI@Z)
../../../../../bin/OgreGUIRenderer.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

OgreGUIRenderer.dll - 3 error(s), 0 warning(s)


I am thinking I must still be doing something wrong when it comes to the versions. I would try to center everything around the Ogre Dependancy version of CEGUI but I want to use whatever is most up to date and keep it up to date, right now my additional directories refer to the CEGUI I installed manually and not the ogre dependancy version.

What should I do to resolve this?

User avatar
paddy
Not too shy to talk
Not too shy to talk
Posts: 30
Joined: Wed Jan 12, 2005 12:06

Re: ogre 1.0 and CEGUI 0.1.1 - linking error

Postby paddy » Mon Feb 07, 2005 01:21

Okay, that was dumb - I managed to open the backup in a different location, not my proper project.

I do get these errors though:

Code: Select all

--------------------Configuration: OgreRenderer - Win32 Release--------------------
Compiling...
ogrerenderer.cpp
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogrerenderer.cpp(517) : error C2664: 'convertColourValue' : cannot convert parameter 2 from 'unsigned long *' to 'unsigned int *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
OgreResourceProvider.cpp
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(40) : error C2039: 'DataChunk' : is not a member of 'Ogre'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(40) : error C2065: 'DataChunk' : undeclared identifier
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(40) : error C2146: syntax error : missing ';' before identifier 'input'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(40) : error C2065: 'input' : undeclared identifier
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(41) : error C2039: '_findResourceData' : is not a member of 'ArchiveManager'
        C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\include\OgreArchiveManager.h(37) : see declaration of 'ArchiveManager'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(49) : error C2228: left of '.getSize' must have class/struct/union type
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(51) : error C2228: left of '.getPtr' must have class/struct/union type
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(53) : error C2228: left of '.clear' must have class/struct/union type
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(60) : error C2039: 'DataChunk' : is not a member of 'Ogre'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(60) : error C2146: syntax error : missing ';' before identifier 'input'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(61) : error C2039: '_findResourceData' : is not a member of 'ArchiveManager'
        C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\include\OgreArchiveManager.h(37) : see declaration of 'ArchiveManager'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(68) : error C2228: left of '.getSize' must have class/struct/union type
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(70) : error C2228: left of '.getPtr' must have class/struct/union type
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\OgreResourceProvider.cpp(71) : error C2228: left of '.clear' must have class/struct/union type
ogretexture.cpp
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(78) : error C2440: 'type cast' : cannot convert from 'class Ogre::SharedPtr<class Ogre::Resource>' to 'class Ogre::Texture *'
        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(89) : error C2664: 'load' : cannot convert parameter 2 from 'enum Ogre::TextureType' to 'const class _STL::basic_string<char,class _STL::char_traits<char>
,class _STL::allocator<char> > &'
        Reason: cannot convert from 'enum Ogre::TextureType' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(127) : error C2146: syntax error : missing ';' before identifier 'odc'
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(127) : error C2734: 'DataChunk' : const object must be initialized if not extern
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(127) : error C2065: 'odc' : undeclared identifier
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(159) : error C2664: 'class Ogre::TexturePtr __thiscall Ogre::TextureManager::createManual(const class _STL::basic_string<char,class _STL::char_traits<char
>,class _STL::allocator<char> > &,const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > &,enum Ogre::TextureType,unsigned int,unsigned int,int,enum Ogre::PixelFormat,int,class Ogre::ManualResourceLoader *)'
: cannot convert parameter 2 from 'enum Ogre::TextureType' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > &'
        Reason: cannot convert from 'enum Ogre::TextureType' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
C:\Files\General Files\Projects\C_Libs\cegui_mk2\src\renderers\OgreGUIRenderer\ogretexture.cpp(185) : error C2039: 'destroy' : is not a member of 'Texture'
        C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\include\OgreTexture.h(90) : see declaration of 'Texture'
Generating Code...
Error executing cl.exe.

OgreGUIRenderer.dll - 22 error(s), 0 warning(s)


I am still at a loss as to why the errors come up, is there a difference in the versions of ogre/cegui compatibility wise?

User avatar
pjcast
Quite a regular
Quite a regular
Posts: 47
Joined: Wed Jan 12, 2005 12:06

Re: ogre 1.0 and CEGUI 0.1.1 - linking error

Postby pjcast » Mon Feb 07, 2005 06:06

Download CEGUI from cvs... The versions on the download page seems to not be recent.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ogre 1.0 and CEGUI 0.1.1 - linking error

Postby CrazyEddie » Mon Feb 07, 2005 09:29

For Ogre 1.0 you currently need to use the CVS-HEAD codebase. I am hoping to get a compatible release of cegui_mk2 out by next weekend.

Also of note is that cegui 0.1.1 will be the last release that is compatible with Ogre versions prior to 1.0.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests