Errors when compiling demo

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
Shift
Just popping in
Just popping in
Posts: 8
Joined: Wed Jan 12, 2005 12:06

Errors when compiling demo

Postby Shift » Sat Jun 26, 2004 19:27

Here is what I have done so far :

[list:aa54f4d385]Downloaded CEGUI-mk2 CVS
Compiled Boost, freetype and xerces
Compiled CEGUI engine
[/list:u:aa54f4d385]
After spending some time figuring out the previous, here is what I am trying to do :

Compile ogre_gui_demo4

Here is what I am getting :

:\ogrenew\CEGUI\cegui_mk2\include\CEGUIEvent.h(150) : warning C4251: 'CEGUI::Event::d_sig' : class 'boost::signal1<R,T1>' needs to have dll-interface to be used by clients of class 'CEGUI::Event'
with
[
R=void,
T1=const CEGUI::EventArgs &
]
c:\ogrenew\CEGUI\cegui_mk2\include\CEGUIEventSet.h(172) : warning C4251: 'CEGUI::EventSet::d_events' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'CEGUI::EventSet'
with
[
_Kty=CEGUI::String,
_Ty=CEGUI::Event *
]
c:\ogrenew\CEGUI\cegui_mk2\include\CEGUIImagesetManager.h(198) : warning C4251: 'CEGUI::ImagesetManager::d_imagesets' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'CEGUI::ImagesetManager'
with
[
_Kty=CEGUI::String,
_Ty=CEGUI::Imageset *
]

...and another 25 similar warnings....

c:\ogrenew\CEGUI\ogre_gui_demo4\CEGUIOgre_TestDriver1.cpp(278) : error C2039: 'setBackgoundEnabled' : is not a member of 'CEGUI::StaticText'
c:\ogrenew\CEGUI\cegui_mk2\include\elements\CEGUIStaticText.h(42) : see declaration of 'CEGUI::StaticText'
c:\ogrenew\CEGUI\ogre_gui_demo4\CEGUIOgre_TestDriver1.cpp(286) : error C2039: 'setBackgoundEnabled' : is not a member of 'CEGUI::StaticText'

...and another 10 similar errors...

Obviously, I am missing something here, but I can't figure out what it is. Any ideas to what I might be doing wrong?

Edit: Should I also add that commenting out all the "setBackgroundEnabled" alows me to run the executable, which in turn immediately chashes with an "Assertion Failed!" box followed by a couple of "unhandled exception" messages.

User avatar
Shift
Just popping in
Just popping in
Posts: 8
Joined: Wed Jan 12, 2005 12:06

Errors when compiling demo

Postby Shift » Sun Jun 27, 2004 01:36

After experimentation, the error messages disapeared after downloading latest OGRE source and recompiling cleanly. The demo works great now!

I still worry about the warnings. They don't seem to be relevant. Anybody knows what these warnings could mean?

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

Errors when compiling demo

Postby CrazyEddie » Sun Jun 27, 2004 06:27

Hey Shift.

Glad you got it working. The errors are caused by the fact I had a spelling mistake in one of the method names - I fixed this yesterday, but of course this means that all client code (like the demo) that uses that method is then broken and requires fixing.

The compiler warnings are due to the way Win32 requires all DLL exports to be explicitly labelled as such. The warning is saying that in order to be exported from the DLL (and so be usable by clients of the containing CEGUI class) the named class needs a __declspec(dllexport) specifier. As you found, these warnings are mostly harmless - in all the CEGUI MSVC projects I have this warning disabled in the settings.

HTH

CE.

User avatar
Shift
Just popping in
Just popping in
Posts: 8
Joined: Wed Jan 12, 2005 12:06

Errors when compiling demo

Postby Shift » Sun Jun 27, 2004 13:32

Thanks! Ended up fixing my own problems :oops: ... but at least you taught me some, CE :) .

The demo example is pretty demonstrative and the implementation of CEGUI looks pretty simple. I can't wait to start integrating it in my own game replacing the current built-in OGRE GUI. This engine is definitely great work, CE! :D

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

Errors when compiling demo

Postby CrazyEddie » Sun Jun 27, 2004 20:21

Thanks for the kind words. Glad you like it :D


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests