Page 2 of 2

Re: CMake Error on Ubuntu 12.04

Posted: Fri Sep 07, 2012 12:06 pm
by Mozork
You have to also get packages libtolua-dev and libtolua++5.1-dev from the repos.

Re: CMake Error on Ubuntu 12.04

Posted: Fri Sep 07, 2012 2:41 pm
by The Jo
What got in the trunk:
http://www.orxonox.net/timeline?from=20 ... ion=second
(see the latest three commits)

I updated the dependencies. Sorry about that.
http://www.orxonox.net/wiki/LinuxUbuntu

Re: CMake Error on Ubuntu 12.04

Posted: Sun Sep 09, 2012 11:13 am
by beni
Thank you. I can build it now perfectly and get the CEGui error when starting it.

Re: CMake Error on Ubuntu 12.04

Posted: Fri Oct 05, 2012 11:56 am
by The Jo
I found a dirty workaround to circumvent the problem. Just install the old cegui packages. See http://www.orxonox.net/wiki/LinuxUbuntu for further details.

I try to find a better solution - but don't expect too much.

Re: CMake Error on Ubuntu 12.04

Posted: Fri Oct 05, 2012 2:26 pm
by beni
Simple and dirty. Well a solution would be to maintain CEGUI by ourselves, right? That would mean less dependencies, but probably an old version of CEGUI for Orxonox.

Just hope you never need the newer packages for anything and that the system never tries to update them.

Re: CMake Error on Ubuntu 12.04

Posted: Sun Oct 07, 2012 7:40 pm
by The Jo
In fact the system would automatically update the packages. The ubuntu user would be force to de-select the cegui packages during each update.

I added to the wikipage a way how to tell the system to keep the specified version of the package via Synaptic.

Re: CMake Error on Ubuntu 12.04

Posted: Mon Oct 08, 2012 12:24 pm
by beni
Okay, that is neat. I guess that's okay for now.

Re: CMake Error on Ubuntu 12.04

Posted: Thu Nov 08, 2012 8:45 pm
by The Jo
I asked a developer from the CEGUi project for hints how to tackle the bug. He Suggests to change the default xml-parser:
I have been able to test this a little bit this morning, and was able
to reproduce the issue easily with the TinyXML parser. Unfortunately I
did not easily discover a cause for the issue - and therefore no
solution involving TinyXML.

The only way I could get past the issue was to override the use of
TinyXML as the XML parser in favour of the Expat module (which is also
included with the packages on (K)ubuntu). If you want to go that route,
you can do so by adding a call the the static function:

System::setDefaultXMLParserName("ExpatParser");

prior to creating the main CEGUI system object.

The fact that Expat works and TinyXML does not would seem to indicate
some issue with the way we use TinyXML in 0.7.5 (and above,
presumably). I will add a ticket to our mantis tracker to investigate
that further at some point, and of course, should you find the cause
yourself, please let me know :)
So far I wasn't able to really digg further in this issue. I installed the expat package ( http://packages.ubuntu.com/precise/expat ) via synaptic. (There does not seem to be something like a expat-dev package.)
I guess that the code line

Code: Select all

System::setDefaultXMLParserName("ExpatParser");
has to be placed in our GUIManager - probably at line 265.

What further steps are necessary to use the ExpatParser? Is there any way to keep tinyXML for our issues and let CEGUI use Expat?