[cairo] Cairo on mac with icc
Augusto Radtke
radtke at radtke.com.br
Tue Sep 30 09:59:48 PDT 2008
On Tue, Sep 30, 2008 at 8:22 AM, David Turner <david at freetype.org> wrote:
> I don't know if this will help, but I had exactly the same problem when
> installing XCode 3.1.
> I had to hack around with something like this:
>
> #if defined(__APPLE__)
> /* the following hack is needed in order to build with XCode 3.1
> * don't ask me why, but it seems that there were changes in the
> * GCC compiler that require this
> */
> #ifndef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
> #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ MAC_OS_X_VERSION_10_4
> #endif
> #import <Carbon/Carbon.h>
>
> for the record, this was only needed because I'm building this program with
> a pre-compiled version of GCC (don't ask).
> If I use the gcc binary provided with the new SDK, the error disappeared.
> However, for various technical reasons, I
> cannot use it, hence the hack.
>
> I don't know if this is exactly the same problem you're facing, just hope it
> will save your several hours of wonder/debugging
I solved it adding -mmacosx-version-min=10.5 to the Makefile, I saw on
Availability.h that this option was mandatory, seems to be default on
Apple's GCC, but not on ICC.
Augusto
More information about the cairo
mailing list