problems with OGRE 1.7.4 and CEGUI 0.7.9

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

RdlP
Just popping in
Just popping in
Posts: 3
Joined: Tue Jul 09, 2013 20:58

problems with OGRE 1.7.4 and CEGUI 0.7.9

Postby RdlP » Tue Jul 09, 2013 21:00

Hello everybody.

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

RdlP
Just popping in
Just popping in
Posts: 3
Joined: Tue Jul 09, 2013 20:58

Re: problems with OGRE 1.7.4 and CEGUI 0.7.9

Postby RdlP » Wed Jul 10, 2013 20:39

I solved it! I change the header:

#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/Ogre/CEGUIOgreRenderer.h>



to

#include <CEGUI/RendererModules/Ogre/CEGUIOgreRenderer.h>
#include <CEGUI/CEGUI.h>


The errors continue appear but now it compile and run :D

I have other question but I am going to open a new topic.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 5 guests