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?