Compile on Mac 10.6

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

andrija.petrovic
Just popping in
Just popping in
Posts: 2
Joined: Wed May 26, 2010 13:07

Compile on Mac 10.6

Postby andrija.petrovic » Thu May 27, 2010 11:13

There is an issue that makes CEGUIOpenGLRenderer unbuildable:

glew.h states

Code: Select all

typedef unsigned long GLuint;


gl.h states

Code: Select all

typedef unsigned int GLuint;


Mac 10.6 is 64-bit, so
unsigned long != unsigned int

Now, CEGUIOpenGLTexture depends on glew.h, and CEGUIOpenGLRenderer depends on gl.h, so you get an unresolved symbol for
CEGUIOpenGLRenderer::createTexture(GLuint,const Size&);

Simply, edit glew.h so that it states:

Code: Select all

typedef unsigned int GLuint;


and the build succeeds.

Cheers,
Andrija

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Compile on Mac 10.6

Postby CrazyEddie » Thu May 27, 2010 11:32

Which version of CEGUI is this, and is there any other information you could give, because I do not get this error, and I can't make any change unless I can first reproduce the issue. Thanks :)

[Edit]
I think maybe you're targeting a different SDK? If you can confirm, I'll look into it.

CE.

andrija.petrovic
Just popping in
Just popping in
Posts: 2
Joined: Wed May 26, 2010 13:07

Re: Compile on Mac 10.6

Postby andrija.petrovic » Thu May 27, 2010 14:21

CEGUI Version 0.7.1,
Mac OS X Version 10.6.3
Xcode Version 3.2.2 64 bit

And I'm targeting Mac OS X 10.6, am I wrong here? Should it be 10.5?

Andrija

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Compile on Mac 10.6

Postby CrazyEddie » Fri May 28, 2010 08:35

Thanks for the info. I guess it's due to targeting 10.6 - the default SDK for CEGUI is still set to 10.4. We certainly don't expect people to stick to that though, and now I have more details I will test this out and address any issues I find - either by updating to a newer GLEW version, or making the change you suggested :)

I'll also mention that we do not have 64bit support on the Mac yet (due to there being no carbon support), though this is in the pipeline for the next release series (0.8.x).

CE.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Compile on Mac 10.6

Postby CrazyEddie » Sat May 29, 2010 09:10

Ok, I ran some tests and the issue was indeed related to the target SDK. I have taken the opportunity to update to the latest GLEW version, and also to patch that so that the correct definitions are used depending upon the OS X SDK that's being targeted.

Thanks for raising the issue :)

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 13 guests