freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] building freetype 2.3.11 on Mac OS X 10.6


From: Sean McBride
Subject: [ft-devel] building freetype 2.3.11 on Mac OS X 10.6
Date: Sun, 25 Oct 2009 22:13:24 -0400

Hi all,

I just got around to trying 2.3.11 on 10.6, like so:

export CC=/Developer/usr/bin/clang
export CXX=/Developer/usr/bin/llvm-gcc-4.2
export CFLAGS="-Wall -Wextra -arch i386"
export CXXFLAGS="-Wall -Wextra -arch i386"

There are many messages like this:

ld: warning: in /Users/sean/Downloads/freetype-2.3.11/objs/.libs/
ftsystem.o, file is not of required architecture

If I instead use -arch x86_64 those warnings do not appear.  I suspect
that something is assuming architectures or something is not passing my
arch flag to something else.  Note that on 10.5 the compiler defaults to
i386 (32 bit) but on 10.6 it defaults to x86_64 (64 bit).

Other than that, there is only one compiler warning:

/Users/sean/Downloads/freetype-2.3.11/src/tools/apinames.c:268:39:
warning: field precision should have type 'int', but argument has type 'long'
      [-Wformat]
              fprintf( stderr, ">>> %.*s\n", p-name, name );
                                      ^      ~~~~~~
This surprised me, but the 'printf' man page does say that '*' expects
an int.  It doesn't seem likely that p-name would overflow an int, so I
guess a cast would be ok.

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 address@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada






reply via email to

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