Page 1 of 1

workaround: compile error 0.7.3 and irr 1.8.0

PostPosted: 08 Jan 2012, 22:03
by olonys
Hi!

I got an error when compiling 0.7.3


I downloaded supertuxkart-0.7.3-src.tar.bz2 sourcecode.

And grabbed the last from irrlicht 1.8.0 branch (http://irrlicht.convextech.ca/).
Compiling Irrlicht (make NDEBUG=1) and installing libs.

Then I ran into error on returntype for member getOverrideColor() in files
CGUIEditBox.cpp
CGUIEditBox.h

Workaround:
Chage returntype of getOverrideColor() by removing "const &" from returntype

Snippet from my file:
//virtual video::SColor const & getOverrideColor() const;
virtual video::SColor getOverrideColor() const;

There is only one occurence in the each of the two files and nowhere else (as I saw).
The it compiled nicely and works very well on my Dell Dimension 8400 running Ubuntu 11.04.

Just thought this might help someone out.

Cheers!

Re: workaround: compile error 0.7.3 and irr 1.8.0

PostPosted: 09 Jan 2012, 01:47
by hiker
Hi,

STK 0.7. 3 needs a specific irrlicht version to work (our dependency packages use r3995 iirc), we haven't tested if STK 0.7.3 might have a problem with any other changes done in irrlicht since r3995. We have switched to latest irrlicht SVN in our current development trunk (with the idea of using irrlicht 1.8 once it is released).

Cheers,
Joerg

Re: workaround: compile error 0.7.3 and irr 1.8.0

PostPosted: 09 Jan 2012, 22:42
by olonys
OK Hiker,

I downloaded and used the latest revision. r4028 if I understood that labeling correctly.

Regards,
Olof