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.
Problem linking against CEGUI on Mac OS X
Moderators: CEGUI MVP, CEGUI Team
- martignasse
- 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
Xerces give you xml validation by xsd files.(I don't know if Xerces give advantages, any opinion on this ?)
for the rest, i don't know
- 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
sounds like you need to do something like this:
Code: Select all
#include "OgreNoMemoryMacros.h"
#include "CEGUI.h"
#include "OgreMemoryMacros.h"
Re: Problem linking against CEGUI on Mac OS X
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!).
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!).
- 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
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: No registered users and 2 guests