[Mac OS X] Problems building Taharez Look

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
RuprechtTheMonkeyBoy
Just popping in
Just popping in
Posts: 17
Joined: Wed Jan 12, 2005 12:06
Location: Here
Contact:

[Mac OS X] Problems building Taharez Look

Postby RuprechtTheMonkeyBoy » Mon Sep 27, 2004 15:52

I'm trying to build Taharez Look in Xcode (1.5, GCC 3.3), but I get the following error when compiling TLButtonProperties.cpp:

Code: Select all

cegui_mk2/WidgetSets/TaharezLook/src/TLButtonProperties.cpp:47: error: `CEGUI::RenderableImage::HorzFormatting' is not an aggregate type


My C++ skills are rusty, so I'm not sure what this means or how to fix/get around it. :oops: Any help is appreciated.

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

[Mac OS X] Problems building Taharez Look

Postby CrazyEddie » Mon Sep 27, 2004 18:00

Right, who submitted the patch with those properties in :?:

Nah, my fault for not checking it properly :oops:

The error is caused becuase the code contains lines that use the enumeration name as a scope; but enums do not introduce any new scope, so you get the error.

Here's a patch (basically, remove the ::HorzFormatting and ::VertFormatting bits from that file).

Code: Select all

Index: WidgetSets/TaharezLook/src/TLButtonProperties.cpp
===================================================================
RCS file: /cvsroot/crayzedsgui/cegui_mk2/WidgetSets/TaharezLook/src/TLButtonProperties.cpp,v
retrieving revision 1.1
diff -u -r1.1 TLButtonProperties.cpp
--- WidgetSets/TaharezLook/src/TLButtonProperties.cpp   22 Sep 2004 10:54:16 -0000   1.1
+++ WidgetSets/TaharezLook/src/TLButtonProperties.cpp   27 Sep 2004 17:54:40 -0000
@@ -44,8 +44,8 @@
 {
    RenderableImage * image = new RenderableImage();
    image->setImage(PropertyHelper::stringToImage(value));
-   image->setHorzFormatting(RenderableImage::HorzFormatting::HorzStretched);
-   image->setVertFormatting(RenderableImage::VertFormatting::VertStretched);
+   image->setHorzFormatting(RenderableImage::HorzStretched);
+   image->setVertFormatting(RenderableImage::VertStretched);
    static_cast<TLButton*>(receiver)->setNormalImage(image);
 }
 
@@ -59,8 +59,8 @@
 {
    RenderableImage * image = new RenderableImage();
    image->setImage(PropertyHelper::stringToImage(value));
-   image->setHorzFormatting(RenderableImage::HorzFormatting::HorzStretched);
-   image->setVertFormatting(RenderableImage::VertFormatting::VertStretched);
+   image->setHorzFormatting(RenderableImage::HorzStretched);
+   image->setVertFormatting(RenderableImage::VertStretched);
    static_cast<TLButton*>(receiver)->setPushedImage(image);
 }
 
@@ -74,8 +74,8 @@
 {
    RenderableImage * image = new RenderableImage();
    image->setImage(PropertyHelper::stringToImage(value));
-   image->setHorzFormatting(RenderableImage::HorzFormatting::HorzStretched);
-   image->setVertFormatting(RenderableImage::VertFormatting::VertStretched);
+   image->setHorzFormatting(RenderableImage::HorzStretched);
+   image->setVertFormatting(RenderableImage::VertStretched);
    static_cast<TLButton*>(receiver)->setHoverImage(image);
 }
 


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests