Google

CEGUI-related build error in OceanDemo

Problems building or running the engine, queries about how to use features etc.

Moderators: OGRE Team, Moderators

CEGUI-related build error in OceanDemo

Postby hamilton » Tue Mar 14, 2006 4:52 am

Code: Select all
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../OgreMain/include  -I../../../Samples/OceanDemo/include -I../../../OgreMain/include -I../../../Samples/Common/CEGUIRenderer/include -I../../../Samples/Common/include -I/usr/include/CEGUI      -g -O2 -fPIC  -MT OceanDemo.o -MD -MP -MF ".deps/OceanDemo.Tpo" \
  -c -o OceanDemo.o `test -f 'OceanDemo.cpp' || echo './'`OceanDemo.cpp; \
then mv -f ".deps/OceanDemo.Tpo" ".deps/OceanDemo.Po"; \
else rm -f ".deps/OceanDemo.Tpo"; exit 1; \
fi
OceanDemo.cpp: In member function `void OceanDemo::initComboBoxes()':
OceanDemo.cpp:347: error: call of overloaded `setItemSelectState(CEGUI::uint, bool)' is ambiguous
/usr/include/CEGUI/elements/CEGUICombobox.h:727: note: candidates are: void CEGUI::Combobox::setItemSelectState(CEGUI::ListboxItem*, bool)
/usr/include/CEGUI/elements/CEGUICombobox.h:749: note:                 void CEGUI::Combobox::setItemSelectState(size_t, bool)
OceanDemo.cpp: In member function `void OceanDemo::configureShaderControls()':
OceanDemo.cpp:709: warning: comparison between `const enum ShaderValType' and `enum Ogre::GpuProgramType'
make[3]: *** [OceanDemo.o] Error 1
make[3]: Leaving directory `/home/hamilton/ogrenew/Samples/OceanDemo/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hamilton/ogrenew/Samples/OceanDemo'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hamilton/ogrenew/Samples'
make: *** [all-recursive] Error 1
This occurs when building OGRE 1.2.0RC1 with CEGUI 0.4.1. CEGUI was compiled with devil image loading support and the openGL renderer. This is on Gentoo Linux, amd64.

It looks like a CEGUI update broke OceanDemo, or OceanDemo has not been updated in response to a change in API. Heads up!
hamilton
Newcomer
 
Posts: 13
Joined: Fri May 13, 2005 1:48 pm

Postby libolt » Tue Mar 14, 2006 6:51 am

I'm getting this same exact error on my debian-amd64 system. I've got CEGUI 0.4.1 installed from the debian package. I'm also building 1.2.0 RC1

Mike
libolt
Familiar face
 
Posts: 28
Joined: Wed Jan 19, 2005 4:48 am

Postby MWeb » Tue Mar 14, 2006 1:15 pm

This error is because CEGUI chanaged the method

(CEGUI 0.4.0)
Code: Select all
setItemSelecteState(CEGUI::uint, bool)


to

(CEGUI 0.4.1)
Code: Select all
setItemSelecteState(size_t, bool)


i'm not shure who to do this correct but a cast to size_t instead to CEGUI::uint. should help. This needs to be changed in OceanDemo.cpp on line 347. This worked for me to build the example on linux.
MWeb
Familiar face
 
Posts: 46
Joined: Fri Sep 24, 2004 10:04 am
Location: Luzern, Switzerland

Postby sinbad » Tue Mar 14, 2006 3:19 pm

I built OGRE 1.2 on Linux using the latest from the 'v0-4' branch on CEGui. Clearly that doesn't pick up these changes. We won't be changing this code in OGRE since we've frozen the version of CEGui in use now, you can adapt your local copy if you wish.
User avatar
sinbad
OGRE Founder, Ex-Lead
OGRE Founder, Ex-Lead
 
Posts: 25661
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands


Return to Help

Who is online

Users browsing this forum: betajaen, Jubei and 7 guests