[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Anyone able to get freetype to compile for iPad?
From: |
address@hidden |
Subject: |
[ft] Anyone able to get freetype to compile for iPad? |
Date: |
Wed, 19 May 2010 14:42:58 +0000 |
The configure script invocation that has been working great for me for
several months with the iPhone-only version of my app is now choking
when trying to build for the iPad.
This works:
./configure --prefix=/usr/local/iphone --host=arm-apple-darwin
--enable-static=yes --enable-shared=no
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 CFLAGS="-arch armv6 -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/libxml2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="-arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -Wl,-dead_strip
-miphoneos-version-min=2.0"
This does not:
./configure --prefix=/usr/local/iphone --host=arm-apple-darwin
--enable-static=yes --enable-shared=no
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 CFLAGS="-arch armv7 -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/libxml2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="-arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -Wl,-dead_strip
-miphoneos-version-min=2.0"
The invocation differences are:
armv6 --> armv7
arm-apple-darwin9-gcc-4.0.1 --> arm-apple-darwin10-gcc-4.2.1
The failure looks like:
checking build system type... i386-apple-darwin10.3.0
checking host system type... arm-apple-darwin
checking for arm-apple-darwin-gcc...
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
checking for C compiler default output file name...
configure: error: in `/Users/xyz/Desktop/freetype-2.3.12_IPAD/builds/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details.
The config log looks like:
configure:2517: checking for C compiler default output file name
configure:2539:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 -arch armv7 -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -mthumb -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/libxml2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -Wl,-dead_strip -miphoneos-version-min=2.0 conftest.c
>&5
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-arch"
conftest.c:1: error: -fasm-blocks option not supported for ARM
configure:2543: $? = 1
configure:2581: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "FreeType"
| #define PACKAGE_TARNAME "freetype"
| #define PACKAGE_VERSION "2.3.12"
| #define PACKAGE_STRING "FreeType 2.3.12"
| #define PACKAGE_BUGREPORT "address@hidden"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2587: error: in
`/Users/xyz/Desktop/freetype-2.3.12_IPAD/builds/unix':
configure:2590: error: C compiler cannot create executables
See `config.log' for more details.
Strangely, when I leave "armv7" but roll back to
"arm-apple-darwin9-gcc-4.0.1", it will complete successfully and then
"make" runs fine. But, I need to be using 4.2.x for iPad builds, so I
need to get this working with the 4.2.1 gcc.
I posted this on the iPhone SDK forum as well, but it may be something
specific to the freetype config system, which is pretty complicated, so
I figured it couldn't hurt to cross post it here. The other one's not
getting mu attention anyway.
Anyone know how I might be able to get this to work?
Thanks.