[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Anyone able to get freetype to compile for iPad?
From: |
address@hidden |
Subject: |
Re: [ft] Anyone able to get freetype to compile for iPad? |
Date: |
Wed, 19 May 2010 15:27:25 +0000 |
I just tried the following:
// hello.c
#include <stdio.h>
int main()
{
printf("HELLO!!!\n");
return 0;
};
kungfu:Desktop xyz$
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x
objective-c -arch armv6 -fmessage-length=0 -pipe -std=c99
-Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable
-DDLL -DUNIX -DCOPYRIGHT_CLEAN -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk
-gdwarf-2 -mthumb -miphoneos-version-min=2.0 hello.c
works (gcc-4.2/armv6)
kungfu:Desktop xyz$
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x
objective-c -arch armv7 -fmessage-length=0 -pipe -std=c99
-Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable
-DDLL -DUNIX -DCOPYRIGHT_CLEAN -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk
-gdwarf-2 -mthumb -miphoneos-version-min=2.0 hello.c
works (gcc-4.2/armv7)
kungfu:Desktop xyz$
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 -x objective-c -arch armv7 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable -DDLL -DUNIX -DCOPYRIGHT_CLEAN -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -gdwarf-2 -mthumb -miphoneos-version-min=2.0
hello.c
cc1obj: error: unrecognized command line option "-arch"
BOOM! (arm-apple-darwin10-gcc-4.2.1/armv7)
But, this still yields the same failure....
... oh wait! it's a failure, but it's not the same when you look
closely at the log!
The new failure is:
conftest.c:1: error: -fasm-blocks option not supported for ARM
removing "-fasm-blocks" allows it to complete successfully now!!!
AND "make" runs successfully too!
Thanks!
On May 19, 2010 08:05:06 A.M. MST, Werner LEMBERG <address@hidden> wrote:
cc1: error: unrecognized command line option "-arch"
This error comes directly from gcc 4.2.1...
I posted this on the iPhone SDK forum as well, but it may be
something specific to the freetype config system, [...]
I don't think so, since the compiler doesn't like the `-arch' flag
which you explicitly specify with the CFLAGS variable.
Werner