[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetype] Compiling 2.1.7 on Mac OS X

From: Steve Hartwell
Subject: Re: [Freetype] Compiling 2.1.7 on Mac OS X
Date: Sat, 13 Mar 2004 06:35:45 -0800

Hi, Werner,

On Mar 11, 2004, at 10:28 PM, Werner LEMBERG wrote:
I would try adding -no-cpp-precomp to the CFLAGS variable.

If that works please tell us so that we can add a note to FreeType.


The error is in the source file ftmac.c, which includes a Mac-specific header using 'inline' keywords by default. The problem comes from the -ansi switch to gcc, as Garrick Meeker has recently reported, which causes gcc not to recognize 'inline'.

The simple solution is to change builds/unix/configure to not use -ansi if $host matches *-apple*. However it would be a shame to disable -ansi for the whole build; do you know how to tweak the builds/unix makefile so that only ftmac.c is built without -ansi? I guess it would have to be separated out from ftbase.c in that case...


On Mar 11, 2004, at 7:57 AM, Michael Schmeling wrote:
What am I doing wrong?


Dear Michael,

Not wrong, but it would have been more helpful if you had looked at the file that gave the error: /usr/include/libkern/ppc/OSByteOrder.h:42 syntax error before "uint16_t" and saw that it was a macro OS_INLINE. I'm sure that it would have given you some useful ideas about the problem, and you might have been able to report the solution to us instead of waiting for us to find it ;-)

mit freundlichem Gruß

reply via email to

[Prev in Thread] Current Thread [Next in Thread]