Page 1 of 1
Problem linking against CEGUI on Mac OS X
Posted: Thu Nov 10, 2005 08:09
by tiennou
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.
Re: Problem linking against CEGUI on Mac OS X
Posted: Thu Nov 10, 2005 12:39
by martignasse
(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
Re: Problem linking against CEGUI on Mac OS X
Posted: Thu Nov 10, 2005 17:54
by lindquist
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
Posted: Mon Nov 14, 2005 15:54
by tiennou
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!).
Re: Problem linking against CEGUI on Mac OS X
Posted: Tue Nov 15, 2005 21:30
by Exsortis
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