Page 1 of 1

Compilation issue with Irrlicht (virtual functions)

PostPosted: 15 Jul 2011, 07:27
by Gallaecio
{l Code}: {l Select All Code}
guiengine/widgets/text_box_widget.cpp: In member function ‘virtual void GUIEngine::TextBoxWidget::add()’:
guiengine/widgets/text_box_widget.cpp:95:58: error: cannot allocate an object of abstract type ‘MyCGUIEditBox’
guiengine/widgets/text_box_widget.cpp:33:1: note:   because the following virtual functions are pure within ‘MyCGUIEditBox’:
/usr/include/irrlicht/IGUIEditBox.h:33:21: note:        virtual irr::gui::IGUIFont* irr::gui::IGUIEditBox::getOverrideFont() const
/usr/include/irrlicht/IGUIEditBox.h:38:21: note:        virtual irr::gui::IGUIFont* irr::gui::IGUIEditBox::getActiveFont() const
/usr/include/irrlicht/IGUIEditBox.h:64:16: note:        virtual void irr::gui::IGUIEditBox::setDrawBackground(bool)
make[2]: *** [text_box_widget.o] Erro 1


This is what I’m getting while trying to compile STK. It happens with SVN versions of Irrlicht 3777 and 3882. Which version of Irrlicht do you use? If you use the same I do, which steps do you follow to compile it?

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 15 Jul 2011, 12:41
by hiker
Hi,

Gallaecio {l Wrote}:This is what I’m getting while trying to compile STK. It happens with SVN versions of Irrlicht 3777 and 3882. Which version of Irrlicht do you use? If you use the same I do, which steps do you follow to compile it?

We are using r3843 for our 0.7.2 release (and I just noticed that configure in 0.7.2 will recommend an older version *sigh*). The missing functions were introduced in r3861 of irrlicht.

Irrlicht's r3843 should also work with our current trunk. Now that we have 0.7.2 released, we should soon find time to fix our trunk to work with irrlicht's current trunk ;)

Cheers,
Joerg

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 15 Jul 2011, 13:54
by Gallaecio
Also tested with Irrlicht SVN 3843 and 3861, same error. I must be doing something really wrong. Maybe an optional dependency of Irrlicht needed for STK because it contains a definition for those functions? I have really no idea… :(

EDIT: compiled Irrlicht with “make sharedlib”, that’s why I think it might be a dependency or something.

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 16 Jul 2011, 00:40
by Auria
Gallaecio, with irrlicht r3843 it should definitely have worked, can you double-check that you were using the right headers? Maybe you had headers from a more recent version laying around

However, another option is to sue STK trunk, where latest irrlicht is already supported

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 16 Jul 2011, 20:50
by Gallaecio
K, STK SVN compiles. It does not run ([IrrDriver Temp Logger] Level 3: Could not load texture: /usr/share/games/supertuxkart//data/gui//skins/peach/background.jpg), but I guess that’s just a matter of waiting a couple of days for another revision and try again. Thanks!

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 16 Jul 2011, 21:13
by Auria
Gallaecio {l Wrote}:K, STK SVN compiles. It does not run ([IrrDriver Temp Logger] Level 3: Could not load texture: /usr/share/games/supertuxkart//data/gui//skins/peach/background.jpg), but I guess that’s just a matter of waiting a couple of days for another revision and try again. Thanks!


hmm that one is not expected! Did you issue make install?

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 17 Jul 2011, 00:19
by Gallaecio
Seems the problem there is with Irrlicht, there are a couple of lines above saying:
{l Code}: {l Select All Code}
JPEG FATAL ERROR: JPEG parameter struct mismatch: library thinks size is 656, caller expects 624

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 17 Jul 2011, 02:34
by Auria
Hmm indeed, make sure you have a clean build, maybe someone you got a bad build by going between versions

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 26 Jul 2011, 22:45
by Gallaecio
Finally, I got it working! :D Thanks a lot for the invaluable help! Here I leave the link to Irrlicht topic.

Re: Compilation issue with Irrlicht (virtual functions)

PostPosted: 27 Jul 2011, 03:47
by Kinsu
Thank you for taking the time to tell the conclusion of this problem :)