Compile errors using CEGUI on OSX

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
froody
Just popping in
Just popping in
Posts: 1
Joined: Mon Jul 11, 2005 03:14

Compile errors using CEGUI on OSX

Postby froody » Mon Jul 11, 2005 03:28

I've had a horrible time getting CEGUI to work on OSX - there is literally no documentation for getting it to work on OSX

I managed to get it to compile by commenging out "#define CEGUI_WITH_XERCES", removing the xerces library reference from the Xcode project and building, and then I put the two frameworks in /Library/Frameworks, edited the .pc file to give '-framework CEGUI -framework OpenGLRenderer' for --cflags and --libs, and that seemed to work!

Now when I try to compile, I'm including the following

Code: Select all

#include <CEGUI/CEGUI.h>
#include <OpenGLRenderer/openglrenderer.h>


and I get the following errors when I try to build the menu file in my project:

Code: Select all

src/Menu/Menu.cpp: In function 'int Menu::startup()':
src/Menu/Menu.cpp:184: error: incomplete type 'CEGUI::PushButton' used in nested name specifier
src/Menu/Menu.cpp:189: error: incomplete type 'CEGUI::PushButton' used in nested name specifier
src/Menu/Menu.cpp:194: error: incomplete type 'CEGUI::PushButton' used in nested name specifier
src/Menu/Menu.cpp:201: error: incomplete type 'CEGUI::PushButton' used in nested name specifier
src/Menu/Menu.cpp:206: error: incomplete type 'CEGUI::PushButton' used in nested name specifier
src/Menu/Menu.cpp:211: error: incomplete type 'CEGUI::PushButton' used in nested name specifier


The lines referred to in the errors are all similar to this (the first one):

Code: Select all

myRoot->getChild("main")->getChild("m_quit")->subscribeEvent(
      CEGUI::PushButton::EventClicked,
      CEGUI::Event::Subscriber(button_click_handler));


Any ideas what to do? I tried copying the "elements" directory from the source distribution into the framework headers folder, but that made more errors, so I renamed the includes (from "elements/<name>" to "<name>") and ended up with the exact same errors as above.

What am I doing wrong?

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

Re: Compile errors using CEGUI on OSX

Postby CrazyEddie » Mon Jul 11, 2005 08:28

None of the CEGUI devs have OS X, and we don't have an OS X build maintainer at the moment - so I don't know what to advise :(

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Compile errors using CEGUI on OSX

Postby _mental_ » Wed Jul 13, 2005 03:13

You are on your own I'm afraid. As CE said none of the core team have access to an OSX machine. If you do work it out feel free to post a patch.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests