I have a problem with CEGUI (0.7.9)and OGRE (1.7.4). It seem how Eclipse don't find CEGUI 0.7.9. First of all, I use Linux(Ubuntu 13.04), Eclipse juno. I compiled (from the source) both Ogre and CEGUI.
In order to compile CEGUI I execute the next commands.
Code: Select all
$ ./bootstrap && mkdir build && cd build
$ ../configure && make -j2
$ sudo make install
$ sudo ldconfig
In my eclipse project in C/C++ Build > Settings GCC C++ Compiler > Includes I have the following include path:
Code: Select all
- /usr/local/include/OGRE
- /usr/local/include/CEGUI
- /usr/local/include
- /usr/include/OIS
In C/C++ Build > Settings GCC C++ Linker > Libraries I have the following libraries:
Code: Select all
- OgreMain
- CEGUIBase
- CEGUIOgreRender
- OgreTerrain
- OIS
And I have the following Library search path:
Code: Select all
- /usr/local/lib
Well, when I compile BasicTutorial7 (http://www.ogre3d.org/tikiwiki/tiki-ind ... ial7Source) I have some errors:
Code: Select all
quit->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&BasicTutorial7::quit, this));
That line show me the next error:
Code: Select all
'subscribeEvent' is ambiguous '
Candidates are:
CEGUI::RefCounted<CEGUI::BoundSlot> subscribeEvent(const CEGUI::String &, CEGUI::SubscriberSlot)
CEGUI::RefCounted<CEGUI::BoundSlot> subscribeEvent(const CEGUI::String &, unsigned int, CEGUI::SubscriberSlot)
CEGUI::RefCounted<CEGUI::BoundSlot> subscribeEvent(const CEGUI::String &, #0, #1)
CEGUI::RefCounted<CEGUI::BoundSlot> subscribeEvent(const CEGUI::String &, unsigned int, #0, #1)
'
and this line:
Code: Select all
imageSet.defineImage("RTTImage",
CEGUI::Point(0.0f, 0.0f),
CEGUI::Size(guiTex.getSize().d_width,
guiTex.getSize().d_height),
CEGUI::Point(0.0f, 0.0f));
Show me the following errors.
Code: Select all
Invalid arguments '
Candidates are:
void defineImage(const CEGUI::String &, const ? &, const CEGUI::Size &, const ? &)
void defineImage(const CEGUI::String &, const CEGUI::Rect &, const ? &)
'
Function 'Point' could not be resolved
Field 'd_width' could not be resolved
Why do this errors appear?
Thanks you