Using TinyXML and CEGUI together in an application

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Ceacy
Just popping in
Just popping in
Posts: 16
Joined: Sun May 22, 2005 20:28
Location: France, Paris.
Contact:

Using TinyXML and CEGUI together in an application

Postby Ceacy » Sat Nov 26, 2005 14:17

Hi,
I'm trying to load XML files inside my application : in order to do this, I downloaded TinyXML sources and added them to my project.
Everything compiles fine, without any error, but when i run the executable, CEGUI::SchemeManager::getSingleton().loadScheme() causes a segfault (before i added tinyxml, it worked).
I finally (after some tests) understood that having tinyxml twice (in the CEGUI lib and in my src dir) wasn't possible. But i still want to use TinyXML classes : how can i do it ?

Thanks,
Ceacy.

User avatar
Exsortis
CEGUI Team (Retired)
Posts: 42
Joined: Mon Feb 07, 2005 17:13
Location: Palmdale, CA
Contact:

Re: Using TinyXML and CEGUI together in an application

Postby Exsortis » Sat Nov 26, 2005 15:32

Ceacy wrote:
Everything compiles fine, without any error, but when i run the executable, CEGUI::SchemeManager::getSingleton().loadScheme() causes a segfault (before i added tinyxml, it worked).
I finally (after some tests) understood that having tinyxml twice (in the CEGUI lib and in my src dir) wasn't possible.


Actually, it is possible to have it both places: I'm doing the same thing myself. Have you run your program through a debugger to see why it's segfaulting at loadScheme()?

-E

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Using TinyXML and CEGUI together in an application

Postby lindquist » Sat Nov 26, 2005 15:34

There was some problems with the bundled tinyxml. A patch has been applied that puts tinyxml inside it's own namespace. This could fix your problems. not sure though.
If you do a CVS update on your cegui_mk2 directory you will get these fixes plus many more.

Or wait for the 0.4.1 release which CE is finishing up right now. So it should be out during the next few days.

User avatar
Ceacy
Just popping in
Just popping in
Posts: 16
Joined: Sun May 22, 2005 20:28
Location: France, Paris.
Contact:

Re: Using TinyXML and CEGUI together in an application

Postby Ceacy » Mon Nov 28, 2005 22:14

I finally put "my" tinyxml in a namespace, so the problem disappeared ;)
Thanks !

User avatar
Exsortis
CEGUI Team (Retired)
Posts: 42
Joined: Mon Feb 07, 2005 17:13
Location: Palmdale, CA
Contact:

Re: Using TinyXML and CEGUI together in an application

Postby Exsortis » Tue Nov 29, 2005 06:29

Ceacy wrote:
I finally put "my" tinyxml in a namespace, so the problem disappeared ;)
Thanks !


Heh, I did the same thing, and didn't even remember. :oops:

-E


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests