CMake Error on Ubuntu 12.04

Found a bug? Report it here.

Moderator: PPS-Leaders

User avatar
Mozork
Mogthorgar, the mighty
Posts: 134
Joined: Wed Sep 24, 2008 3:27 pm

Re: CMake Error on Ubuntu 12.04

Post by Mozork » Fri Sep 07, 2012 12:06 pm

You have to also get packages libtolua-dev and libtolua++5.1-dev from the repos.

The Jo
General DuGalle
Posts: 121
Joined: Mon Mar 01, 2010 7:43 pm

Re: CMake Error on Ubuntu 12.04

Post by The Jo » Fri Sep 07, 2012 2:41 pm

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
Fail. Fail again. Fail better.

User avatar
beni
Baron Vladimir Harkonnen
Posts: 949
Joined: Tue Oct 03, 2006 9:15 am
Location: Zurich
Contact:

Re: CMake Error on Ubuntu 12.04

Post by beni » Sun Sep 09, 2012 11:13 am

Thank you. I can build it now perfectly and get the CEGui error when starting it.
"I'm Commander Shepard and this is my favorite forum on the internet."

The Jo
General DuGalle
Posts: 121
Joined: Mon Mar 01, 2010 7:43 pm

Re: CMake Error on Ubuntu 12.04

Post by The Jo » Fri Oct 05, 2012 11:56 am

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.
Fail. Fail again. Fail better.

User avatar
beni
Baron Vladimir Harkonnen
Posts: 949
Joined: Tue Oct 03, 2006 9:15 am
Location: Zurich
Contact:

Re: CMake Error on Ubuntu 12.04

Post by beni » Fri Oct 05, 2012 2:26 pm

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.
"I'm Commander Shepard and this is my favorite forum on the internet."

The Jo
General DuGalle
Posts: 121
Joined: Mon Mar 01, 2010 7:43 pm

Re: CMake Error on Ubuntu 12.04

Post by The Jo » Sun Oct 07, 2012 7:40 pm

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.
Fail. Fail again. Fail better.

User avatar
beni
Baron Vladimir Harkonnen
Posts: 949
Joined: Tue Oct 03, 2006 9:15 am
Location: Zurich
Contact:

Re: CMake Error on Ubuntu 12.04

Post by beni » Mon Oct 08, 2012 12:24 pm

Okay, that is neat. I guess that's okay for now.
"I'm Commander Shepard and this is my favorite forum on the internet."

The Jo
General DuGalle
Posts: 121
Joined: Mon Mar 01, 2010 7:43 pm

Re: CMake Error on Ubuntu 12.04

Post by The Jo » Thu Nov 08, 2012 8:45 pm

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?
Fail. Fail again. Fail better.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests