Compilation issue with Irrlicht (virtual functions)

Compilation issue with Irrlicht (virtual functions)

Postby Gallaecio » 15 Jul 2011, 07:27

{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?
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Compilation issue with Irrlicht (virtual functions)

Postby hiker » 15 Jul 2011, 12:41

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Compilation issue with Irrlicht (virtual functions)

Postby Gallaecio » 15 Jul 2011, 13:54

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.
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Compilation issue with Irrlicht (virtual functions)

Postby Auria » 16 Jul 2011, 00:40

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compilation issue with Irrlicht (virtual functions)

Postby Gallaecio » 16 Jul 2011, 20:50

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!
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Compilation issue with Irrlicht (virtual functions)

Postby Auria » 16 Jul 2011, 21:13

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?
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compilation issue with Irrlicht (virtual functions)

Postby Gallaecio » 17 Jul 2011, 00:19

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
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Compilation issue with Irrlicht (virtual functions)

Postby Auria » 17 Jul 2011, 02:34

Hmm indeed, make sure you have a clean build, maybe someone you got a bad build by going between versions
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compilation issue with Irrlicht (virtual functions)

Postby Gallaecio » 26 Jul 2011, 22:45

Finally, I got it working! :D Thanks a lot for the invaluable help! Here I leave the link to Irrlicht topic.
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Compilation issue with Irrlicht (virtual functions)

Postby Kinsu » 27 Jul 2011, 03:47

Thank you for taking the time to tell the conclusion of this problem :)
User avatar
Kinsu
 
Posts: 476
Joined: 15 Mar 2011, 14:28

Who is online

Users browsing this forum: No registered users and 1 guest