Problem linking against CEGUI on Mac OS X

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
tiennou
Just popping in
Just popping in
Posts: 2
Joined: Wed Nov 09, 2005 16:31

Problem linking against CEGUI on Mac OS X

Postby tiennou » Thu Nov 10, 2005 08:09

Hi there !

I'm trying to compile CEGUI for use with Ogre. I got CEGUI to compile with TinyXML (I don't know if Xerces give advantages, any opinion on this ?), but each time I use the CEGUI framework elsewhere (e.g. in one of Ogre samples), I get loads of errors about #include <malloc.h>, and #include "CEGUI**something**.h".

I know that #include <malloc.h> must be changed in <malloc/malloc.h> (what a hassle !), but I don't know for the other ones...

If someone could give me advice on this, thanks.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Problem linking against CEGUI on Mac OS X

Postby martignasse » Thu Nov 10, 2005 12:39

(I don't know if Xerces give advantages, any opinion on this ?)
Xerces give you xml validation by xsd files.

for the rest, i don't know

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

Re: Problem linking against CEGUI on Mac OS X

Postby lindquist » Thu Nov 10, 2005 17:54

sounds like you need to do something like this:

Code: Select all

#include "OgreNoMemoryMacros.h"
#include "CEGUI.h"
#include "OgreMemoryMacros.h"

User avatar
tiennou
Just popping in
Just popping in
Posts: 2
Joined: Wed Nov 09, 2005 16:31

Re: Problem linking against CEGUI on Mac OS X

Postby tiennou » Mon Nov 14, 2005 15:54

Hmm, I changed every #include <malloc.h> to #ifdef __APPLE__ #include <malloc/malloc.h>. This seemed to do the trick, but if there's a link between those malloc's and Ogre Memory functions I might come to a few problems.

For the ones regarding "CEGUI...Thing.h", I found out that once the files where copied into the framework, the #include "" path is no longer correct (Thing hidden in elements and falagard subfolder are not seen), so I changed all references, and I worked (yay!).

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

Re: Problem linking against CEGUI on Mac OS X

Postby Exsortis » Tue Nov 15, 2005 21:30

tiennou wrote:
Hmm, I changed every #include <malloc.h> to #ifdef __APPLE__ #include <malloc/malloc.h>. This seemed to do the trick, but if there's a link between those malloc's and Ogre Memory functions I might come to a few problems.

For the ones regarding "CEGUI...Thing.h", I found out that once the files where copied into the framework, the #include "" path is no longer correct (Thing hidden in elements and falagard subfolder are not seen), so I changed all references, and I worked (yay!).


Changing all the references in code is just silly. Add the framework's header path to your header search path in your Xcode project.

Code: Select all

/Library/Frameworks/CEGUI.framework/Headers
/usr/include/malloc


Don't mess with the code by adding conditionals. Just update your project file.

-E


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 8 guests